Difference between revisions of "Template:BRC"
Jump to navigation
Jump to search
Template documentation
imported>Mattbuck |
imported>Mattbuck (ah, missed a nowiki) |
||
| Line 1: | Line 1: | ||
| − | [[British Rail Class {{{1}}}|{{#switch:{{{2}}}|f|full|brc|br = British Rail Class {{{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> |
| + | {{documentation|content= | ||
This template links to the British Rail Class #, eg <nowiki>{{BRC|158}}</nowiki> produces a link to [[British Rail Class 158|Class 158]]. | This template links to the British Rail Class #, eg <nowiki>{{BRC|158}}</nowiki> produces a link to [[British Rail Class 158|Class 158]]. | ||
| Line 11: | Line 12: | ||
*n - number only, eg [[British Rail Class 158|158]] | *n - number only, eg [[British Rail Class 158|158]] | ||
*ns - number plural, eg [[British Rail Class 158|158s]] | *ns - number plural, eg [[British Rail Class 158|158s]] | ||
| + | |||
| + | |||
| + | You can also add a third parameter to indicate subclasses, ''but this is not linked''. Eg | ||
| + | *<nowiki>{{BRC|158|ns|9}}</nowiki> produces [[British Rail Class 158|158/9s]] | ||
| + | *<nowiki>{{BRC|158||0}}</nowiki> produces [[British Rail Class 158|Class 158/0]] | ||
}} | }} | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
Revision as of 17:08, 26 December 2015
[[British Rail Class {{{1}}}|Class {{{1}}}]]
This template links to the British Rail Class #, eg {{BRC|158}} produces a link to Class 158.
There are several ways of display, changed by adding a second parameter, eg {{BRC|158|f}}
- f - full link, eg British Rail Class 158
- fs - full link plural, eg British Rail Class 158s
- c (default) - class link, eg Class 158
- cs - class plural, eg Class 158s
- n - number only, eg 158
- ns - number plural, eg 158s
You can also add a third parameter to indicate subclasses, but this is not linked. Eg
- {{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. Subpages of this template. |