Difference between revisions of "Template:BRC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(create doc subpage)
 
imported>Redrose64
(→‎Usage: tidier)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
This template links to the British Rail Class #, e.g. {{tlx|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 ways of display, changed by adding a second parameter, e.g. {{tlx|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]]
 
*f - full link, eg [[British Rail Class 158]]
Line 14: Line 14:
  
 
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.  
*{{tlx|BRC|158|ns|9}} produces [[British Rail Class 158|158/9s]]
+
*{{tlc|BRC|158|ns|9}} produces [[British Rail Class 158|158/9s]]
*{{tlx|BRC|158|<nowiki />|0}} produces [[British Rail Class 158|Class 158/0]]
+
*{{tlc|BRC|158|<nowiki />|0}} produces [[British Rail Class 158|Class 158/0]]
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 10:26, 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}}

You can also add a third parameter to indicate subclasses, but this is not linked. E.g.