Difference between revisions of "Template:BSsrws"
Jump to navigation
Jump to search
.
.
imported>Jc86035 m (swapped parameters to sync with other templates in this series) |
imported>Jc86035 m |
||
| Line 3: | Line 3: | ||
|- | |- | ||
| style="line-height:0.9em; padding:0; {{#if:{{{4|}}}|font-style:italic;|}} {{#if:{{{5|}}}|font-weight:bold;|}} text-align:inherit; {{#if:{{{bg2|}}}|background-color:{{{bg2}}};padding-left:0.5em;padding-right:0.5em;|}}" | [[{{{1|}}} {{{2|}}} {{{3|{{{S|railway station}}}}}}|{{{2|}}}]] | | style="line-height:0.9em; padding:0; {{#if:{{{4|}}}|font-style:italic;|}} {{#if:{{{5|}}}|font-weight:bold;|}} text-align:inherit; {{#if:{{{bg2|}}}|background-color:{{{bg2}}};padding-left:0.5em;padding-right:0.5em;|}}" | [[{{{1|}}} {{{2|}}} {{{3|{{{S|railway station}}}}}}|{{{2|}}}]] | ||
| − | | | + | |}</includeonly><noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 03:39, 24 June 2016
| This template uses Lua: |
Usage
This template expands a name – split over two lines – to link to the appropriate railway station article, without displaying "railway station".
- The text will inherit the alignment of the parent cell, but can be overridden by applying the parameter "
|align=left" or "|align=right". - The first and second parameters are the two lines. They are combined to form the station name. The words
railway stationare not needed. - The third parameter (alternatively "
|3=" or "|S=") will change the default words "railway station" in the link to its contents. - The fourth parameter (alternatively "
|4=") will change both lines to italic text. Any character or text can be used. - The fifth parameter (alternatively "
|5=") will change both lines to bold text. Any character or text can be used. - The separating line can be forced to appear by providing an argument for the parameter "
|line=anything". - Background colors can be specified by providing a valid html color or hex triplet for the parameters "
|bg1=" (top line) and "|bg2=" (bottom line).
For example:
{{BSsrws|Stratford|International}}links to[[Stratford International railway station]]and displays
| Stratford |
| International |
{{BSsrws|Stratford|International|station|it}}links to[[Stratford International station]]and displays
| Stratford |
| International |
Incorrect uses
If either line of text is empty, the page that the template is used on will be a member of Category:Pages using BSto or BSsrws with missing text values.
See also
- {{BSsplit}} for two lines of text with a wikilink
- {{BSto}} for two lines of unequal-height text
- {{BScvt}} for two distances
| The above documentation is transcluded from Template:BSsrws/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |