ਫਰਮਾ:Railway-routemap/doc
ਇਹ ਇੱਕ ਫਰਮਾ:Railway-routemap ਲਈ documentation ਉਪ ਸਫ਼ਾ ਹੈ। ਇਸ ਵਿੱਚ ਵਰਤੋਂ ਦੀ ਜਾਣਕਾਰੀ, ਸ਼੍ਰੇਣੀਆਂ ਅਤੇ ਹੋਰ ਸਮੱਗਰੀ ਜੋ ਮੂਲ ਦਾ ਹਿੱਸਾ ਨਹੀਂ ਹੈ, ਸ਼ਾਮਲ ਹੈ। ਫਰਮਾ page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is a universal template for all Route Diagram Templates (RDT). It adds the following text (without the surrounding box) to an RDT:
It will also place the template in the appropriate category (generally Category:Templates for railway lines in country or Category:Templates for railway lines of country) if placed in the template namespace.
Usage
ਸੋਧੋCountry is specified by any valid ISO 3166-1 country code.
Additional codes
ਸੋਧੋThe template also recognizes these unofficial codes:
Code | Location |
---|---|
AFR | Africa |
AA or ASA | Asia |
CT or CAT | Catalonia |
EU or EUR | Europe |
NIL | Northern Ireland |
UK | United Kingdom |
Optional parameters
ਸੋਧੋWhen included, the second (optional) parameter should be the parent article of the diagram.
{{Railway-routemap|UK|Stockton and Darlington Railway}}
will change the first line of the template to:
Including the optional named parameter |type=
will change “a railway in Country” to “a alternate text in Country”. For example,
{{Railway-routemap|FRA|type=high-speed rail line}}
will change the first line of the template to:
and,
{{Railway-routemap|CAN|Yellow Line (Montreal Metro)|type=[[Rapid transit|subway]]}}
will change the first line of the template to:
The optional named parameter |the=
anything will omit the word “the” before the linked page. For example,
{{Railway-routemap|NL|the=x|Centraal Station|type=[[railway terminal]]}}
will change the first line of the template to:
The optional named parameter |display=
will replace the text of the article link. If
is set to either display
or I
the article link will automatically be italicized. This is useful for named train services. For example,
i
{{Railway-routemap|US|Heartland Flyer|display=''Heartland Flyer''|type=[[Amtrak]] train service}}
and{{Railway-routemap|US|Heartland Flyer|display=i|type=[[Amtrak]] train service}}
will both change the first line of the template to:
The optional named parameter |place=
will change “a railway in Country” to “a railway in place, Country”. For example,
{{Railway-routemap|IN|place=[[Bangalore]]}}
will change the first line of the template to:
Categories
ਸੋਧੋBy default the template will be included in the appropriate category for that country. However, adding the parameter |cat=no
will exclude the template from all categories. Note that this parameter is not case sensitive: i.e. |cat=NO
produces the same result as |cat=no
.
Setting |cat=s
or
or =stn
will either Category:Station layout templates or the appropriate sub-category, and change the first line of the template to:
=station
For Australia (ISO 3166-1 country code AU or AUS), setting the category to one of the state abbreviations will include the template in the appropriate sub-category:
|cat= |
State | Category |
---|---|---|
N or NT | Northern Territory | |
NS or NSW | New South Wales | Category:New South Wales route diagram templates |
Q or QLD | Queensland | |
V or VIC | Victoria | Category:Victoria (state) route diagram templates |
SA | South Australia | |
T or TAS | Tasmania | |
W or WA | Western Australia |
This parameter is also not case sensitive.
The optional named parameter |catidx=
will add a sort key to the category.
See also
ਸੋਧੋ- Category:Rail routemap templates for all country categories
- General
- {{Railway-routemap}}
- {{Bus-routemap}}
- {{Trail-routemap}}
- {{Waterway-routemap}}
- Specific
- {{UK-railway-routemap}} United Kingdom
- {{UK-waterway-routemap}} United Kingdom waterway
- {{US-railway-routemap}} United States
- {{NYCS-routemap}} New York City Subway