Difference between revisions of "Template:Australian-railway-routemap/doc"
imported>Useddenim (updated) |
imported>Useddenim m (→Usage: better example) |
||
| Line 13: | Line 13: | ||
The optional named parameter {{para|line}} will include the railway name as a link, for example, | The optional named parameter {{para|line}} will include the railway name as a link, for example, | ||
| − | <code><nowiki>{{Australian-railway-routemap|line= | + | <code><nowiki>{{Australian-railway-routemap|line=Kalamunda Zig Zag}}</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 [[ | + | {{box|grey|3=This is a route-map template for the [[Kalamunda Zig Zag]], an Australian railway.}} |
| − | The optional named parameter {{para|type}} will change “an Australian | + | The optional named parameter {{para|type}} will change “an Australian railway” to “an Australian ''alternate text''”. For example, |
<code><nowiki>{{Australian-railway-routemap|type=tramway}}</nowiki></code> | <code><nowiki>{{Australian-railway-routemap|type=tramway}}</nowiki></code> | ||
Revision as of 02:30, 4 February 2017
| This is a documentation subpage for Template:Australian-railway-routemap. It contains usage information, categories and other content that is not part of the original template page. |
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.
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.
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 “an Australian railway” to “an Australian alternate text”. For example,
{{Australian-railway-routemap|type=tramway}}
will change the first line of the template to:
and,
{{Australian-railway-routemap|line=Dulwich Hill Line|type=[[light rail]] line}}
will change the first line of the template to:
The optional named parameter |place= will change “an Australian railway line” to “aalternate text railway line”. For example,
{{Australian-railway-routemap|place=[[Tasmania]]n}}
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