Difference between revisions of "Template:Australian-railway-routemap/doc"
imported>Useddenim m (→Usage: better example) |
imported>Useddenim (updated) |
||
| 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]]. | ||
| − | |||
| − | |||
| − | |||
| 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]], | + | {{box|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 | + | 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 | + | {{box|grey|3=This is a route-map template for a tramway in Australia.}} |
and, | and, | ||
| Line 34: | Line 31: | ||
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]], | + | {{box|grey|3=This is a route-map template for the [[Dulwich Hill Line]], a [[light rail]] line in Australia.}} |
| − | The optional named parameter {{para|place}} will change | + | 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]] | + | <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]] | + | {{box|grey|3=This is a route-map template for a railway in [[Tasmania]].}} |
Revision as of 23:18, 20 September 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.
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=Dulwich Hill Line|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