Difference between revisions of "Template:Australian-railway-routemap"

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
m
imported>Useddenim
({{documentation}}; additional parameters)
Line 1: Line 1:
This is a route-map template for an Australian railway line.
+
This is a route-map template for {{#ifexist:{{{line}}}|the [[{{{line}}}]],|}} a{{{place|n Australian}}} {{{type|railway line}}}.
  
 
For information on use of this template, refer to [[Wikipedia:Route diagram template]].
 
For information on use of this template, refer to [[Wikipedia:Route diagram template]].
 
+
{{#ifeq:{{{cat}}}|no||[[Category:Templates for railway lines of Australia|{{{1|{{PAGENAME}}}}}]]}}<noinclude>
<!--For categories to be included by this template: -->
+
{{Documentation}}</noinclude>
<includeonly>
 
[[Category:Templates for railway lines of Australia|{{{1|{{PAGENAME}}}}}]]
 
</includeonly><noinclude>
 
'''Usage:''' <nowiki>{{Australian-railway-routemap|sort key}}</nowiki>
 
 
 
Sort key is the key which the template will be filed under in [[:Category:Templates for railway lines of Australia]]. If omitted, the page name will be used.
 
<!--For categories to which this template belongs: -->
 
[[Category:Australian railway-related lists]]
 
</noinclude>
 

Revision as of 00:56, 13 January 2016

This is a route-map template for an Australian railway line.

For information on use of this template, refer to Wikipedia:Route diagram template.

Template documentation[view] [edit] [history] [purge]

Usage

This template should be added to all Route Diagram Templates of Australian railways.

It will automatically include the diagram in Category:Templates for railway lines of Australia.


The optional named parameter |line= will include the railway name as a link, for example,

{{Australian-railway-routemap|line=Kalamunda Zig Zag}}

will change the first line of the template to:


The optional named parameter |type= will change “a railway in Australia” to “a alternate text in Australia”. For example,

{{Australian-railway-routemap|type=tramway}}

will change the first line of the template to:

and,

{{Australian-railway-routemap|line=Inner West Light Rail|type=[[light rail]] line}}

will change the first line of the template to:


The optional named parameter |place= will change “a railway in Australia” to “a railway in alternate text”. For example,

{{Australian-railway-routemap|place=[[Tasmania]]}}

will change the first line of the template to:


Adding the code |cat=no will suppress inclusion in Category:Templates for railway lines of Australia.

See also

Template:RyrmSeeAlso