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

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
m (→‎Usage: better example)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
Line 6: Line 6:
  
 
It will automatically include the diagram in [[:Category:Templates for railway lines of Australia]].
 
It will automatically include the diagram in [[:Category:Templates for railway lines of Australia]].
 
 
Adding an optional parameter will create a sort key under which the template will be filed under in [[:Category:Templates for railway lines of Australia]]. If omitted, the page name will be used.
 
  
  
Line 17: Line 14:
 
will change the first line of the template to:
 
will change the first line of the template to:
  
{{box|grey|3=This is a route-map template for the [[Kalamunda Zig Zag]], an Australian railway.}}
+
{{divbox|grey|3=This is a route-map template for the [[Kalamunda Zig Zag]], a railway in Australia.}}
  
  
The optional named parameter {{para|type}} will change “an Australian railway” to “an Australian ''alternate text''. For example,
+
The optional named parameter {{para|type}} will change “a railway in Australia” to “a ''alternate text'' in Australia”. For example,
  
 
<code><nowiki>{{Australian-railway-routemap|type=tramway}}</nowiki></code>
 
<code><nowiki>{{Australian-railway-routemap|type=tramway}}</nowiki></code>
Line 26: Line 23:
 
will change the first line of the template to:
 
will change the first line of the template to:
  
{{box|grey|3=This is a route-map template for an Australian tramway.}}
+
{{divbox|grey|3=This is a route-map template for a tramway in Australia.}}
  
 
and,
 
and,
  
<code><nowiki>{{Australian-railway-routemap|line=Dulwich Hill Line|type=[[light rail]] line}}</nowiki></code>
+
<code><nowiki>{{Australian-railway-routemap|line=Inner West Light Rail|type=[[light rail]] line}}</nowiki></code>
  
 
will change the first line of the template to:
 
will change the first line of the template to:
  
{{box|grey|3=This is a route-map template for the [[Dulwich Hill Line]], an Australian [[light rail]] line.}}
+
{{divbox|grey|3=This is a route-map template for the [[Inner West Light Rail]], a [[light rail]] line in Australia.}}
  
  
The optional named parameter {{para|place}} will change “an Australian railway line” to “a''alternate text'' railway line”. For example,
+
The optional named parameter {{para|place}} will change “a railway in Australia” to “a railway in ''alternate text''. For example,
  
<code><nowiki>{{Australian-railway-routemap|place=[[Tasmania]]n}}</nowiki></code>
+
<code><nowiki>{{Australian-railway-routemap|place=[[Tasmania]]}}</nowiki></code>
  
 
will change the first line of the template to:
 
will change the first line of the template to:
  
{{box|grey|3=This is a route-map template for a [[Tasmania]]n railway line.}}
+
{{divbox|grey|3=This is a route-map template for a railway in [[Tasmania]].}}
  
  
Line 51: Line 48:
 
{{ryrmSeeAlso}}
 
{{ryrmSeeAlso}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
  
Line 60: Line 57:
 
[[Category:Australian railway-related lists]]
 
[[Category:Australian railway-related lists]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 23:25, 23 April 2020

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