Difference between revisions of "Template:BRC"
Jump to navigation
Jump to search
imported>Redrose64 (move doc to subpage) |
imported>Primefac m (Protected "Template:BRC": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | [[British Rail Class {{{1}}}|{{#switch:{{{2}}}|f|full|brc|fs|br = British Rail Class {{{1}}}|n = {{{1}}}|s|cs|c|Class {{{1}}}}}{{#switch:{{{3}}}|1|2|3|4|5|6|7|8|9|0 = /{{{3}}}|}}{{#switch:{{{2}}}|fs|cs|ns = s|}}]]<noinclude> | + | [[British Rail Class {{{1}}}|{{#switch:{{{2}}}|f|full|brc|fs|br = British Rail Class {{{1}}}|ns|n = {{{1}}}|s|cs|c|Class {{{1}}}}}{{#switch:{{{3}}}|1|2|3|4|5|6|7|8|9|0 = /{{{3}}}|}}{{#switch:{{{2}}}|fs|cs|ns = s|}}]]<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:21, 10 January 2018
[[British Rail Class {{{1}}}|Class {{{1}}}]]
Usage
This template links to the British Rail Class #, e.g. {{BRC|158}} produces a link to Class 158.
There are several display options, selected by adding a second parameter as follows.
| 2nd parameter | Meaning | Usage | Result |
|---|---|---|---|
| f | Full | {{BRC|158|f}} |
British Rail Class 158 |
| fs | Full (plural) | {{BRC|158|fs}} |
British Rail Class 158s |
| c | Class (default) | {{BRC|158|c}} or {{BRC|158}} |
Class 158 |
| cs | Class (plural) | {{BRC|158|cs}} |
Class 158s |
| n | Number | {{BRC|158|n}} |
158 |
| ns | Number (plural) | {{BRC|158|ns}} |
158s |
You can also add a third parameter to indicate subclasses, however the link is still to the class page. E.g.
{{BRC|158|ns|9}}produces 158/9s{{BRC|158||0}}produces Class 158/0
| The above documentation is transcluded from Template:BRC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |