Difference between revisions of "Template:BRC/doc"
Jump to navigation
Jump to search
imported>Redrose64 (→Usage: tidier) |
imported>Vanisaac |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
This template links to the British Rail Class #, e.g. {{tlc|BRC|158}} produces a link to [[British Rail Class 158|Class 158]]. | This template links to the British Rail Class #, e.g. {{tlc|BRC|158}} produces a link to [[British Rail Class 158|Class 158]]. | ||
| − | There are several | + | There are several display options, selected by adding a second parameter as follows. |
| − | + | {|class="wikitable" | |
| − | + | |- | |
| − | + | !2nd parameter!!Meaning!!Usage!!Result | |
| − | + | |- | |
| − | + | |f||Full||{{tlc|BRC|158|f}}||{{brc|158|f}} | |
| − | + | |- | |
| + | |fs||Full (plural)||{{tlc|BRC|158|fs}}||{{brc|158|fs}} | ||
| + | |- | ||
| + | |c||Class (default)||{{tlc|BRC|158|c}} or {{tlc|BRC|158}}||{{brc|158}} | ||
| + | |- | ||
| + | |cs||Class (plural)||{{tlc|BRC|158|cs}}||{{brc|158|cs}} | ||
| + | |- | ||
| + | |n||Number||{{tlc|BRC|158|n}}||{{brc|158|n}} | ||
| + | |- | ||
| + | |ns||Number (plural)||{{tlc|BRC|158|ns}}||{{brc|158|ns}} | ||
| + | |} | ||
| − | You can also add a third parameter to indicate subclasses, '' | + | You can also add a third parameter to indicate subclasses, however ''the link is still to the class page''. E.g. |
| − | *{{tlc|BRC|158|ns|9}} produces | + | *{{tlc|BRC|158|ns|9}} produces {{BRC|158|ns|9}} |
| − | *{{tlc|BRC|158| | + | *{{tlc|BRC|158||0}} produces {{BRC|158||0}} |
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
Latest revision as of 00:19, 24 April 2020
| This is a documentation subpage for Template:BRC. It contains usage information, categories and other content that is not part of the original template page. |
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