Difference between revisions of "Template:BRC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mattbuck
imported>Mattbuck
Line 24: Line 24:
  
 
You can also add a third parameter to indicate subclasses, however ''the link is still to the class page''. E.g.  
 
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 [[British Rail Class 158|158/9s]]
+
*{{tlc|BRC|158|ns|9}} produces {{BRC|158|ns|9}}
*{{tlc|BRC|158|<nowiki />|0}} produces [[British Rail Class 158|Class 158/0]]
+
*{{tlc|BRC|158||0}} produces {{BRC|158||0}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 10:53, 27 December 2015

Usage

This template links to the British Rail Class #, e.g. {{BRC|158}} produces a link to Class 158.

There are several ways of display, changed by adding a second parameter, e.g. {{BRC|158|f}}

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.