Difference between revisions of "Template:BRC"
Jump to navigation
Jump to search
Template documentation
imported>Mattbuck |
imported>Redrose64 (enclose documentation; cats) |
||
| Line 1: | Line 1: | ||
| − | [[British Rail Class {{{1}}}|{{#switch:{{{2}}}|f|full|brc|br = British Rail Class {{{1}}}|n = {{{1}}}|ns = {{{1}}}s|cs = Class {{{1}}}s|c|Class {{{1}}}}}]]<noinclude> | + | [[British Rail Class {{{1}}}|{{#switch:{{{2}}}|f|full|brc|br = British Rail Class {{{1}}}|n = {{{1}}}|ns = {{{1}}}s|cs = Class {{{1}}}s|c|Class {{{1}}}}}]]<noinclude>{{documentation|content= |
This template links to the British Rail Class #, eg <nowiki>{{BRC|43}}</nowiki> produces a link to [[British Rail Class 43|Class 43]]. | This template links to the British Rail Class #, eg <nowiki>{{BRC|43}}</nowiki> produces a link to [[British Rail Class 43|Class 43]]. | ||
| Line 10: | Line 10: | ||
*n - number only, eg [[British Rail Class 43|43]] | *n - number only, eg [[British Rail Class 43|43]] | ||
*ns - number plural, eg [[British Rail Class 43|43s]] | *ns - number plural, eg [[British Rail Class 43|43s]] | ||
| + | }} | ||
| + | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| + | [[Category:Internal link templates|{{PAGENAME}}]] | ||
| + | [[Category:Rail transport templates|{{PAGENAME}}]] | ||
| + | |||
</noinclude> | </noinclude> | ||
Revision as of 13:40, 12 July 2010
[[British Rail Class {{{1}}}|Class {{{1}}}]]
This template links to the British Rail Class #, eg {{BRC|43}} produces a link to Class 43.
There are several ways of display, changed by adding a second parameter, eg {{BRC|43|f}}
- f - full link, eg British Rail Class 43
- c (default) - class link, eg Class 43
- cs - class plural, eg Class 43s
- n - number only, eg 43
- ns - number plural, eg 43s
| 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. |