Difference between revisions of "Template:BRC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(→‎Usage: tidier)
imported>Mattbuck
Line 6: Line 6:
 
There are several ways of display, changed by adding a second parameter, e.g. {{tlc|BRC|158|f}}
 
There are several ways of display, changed by adding a second parameter, e.g. {{tlc|BRC|158|f}}
  
*f - full link, eg [[British Rail Class 158]]
+
{|class="wikitable"
*fs - full link plural, eg [[British Rail Class 158]]s
+
|-
*c (default) - class link, eg [[British Rail Class 158|Class 158]]
+
!2nd parameter!!Meaning!!Usage!!Result
*cs - class plural, eg [[British Rail Class 158|Class 158s]]
+
|-
*n - number only, eg [[British Rail Class 158|158]]
+
|f||Full||{{tlc|BRC|158|f}}||{{brc|158|f}}
*ns - number plural, eg [[British Rail Class 158|158s]]
+
|-
 +
|f||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, ''but this is not linked''. E.g.  
 
You can also add a third parameter to indicate subclasses, ''but this is not linked''. E.g.  

Revision as of 10:51, 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
f 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, but this is not linked. E.g.