Template:Rail-interchange/doc: Difference between revisions
Ozycaevias (talk | contribs) |
en>RickyCourtney (Add PCC icon) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{High-use|demo={{ROOTPAGENAME}}}} | |||
{{High-use| | |||
The '''{{tlx|rail-interchange|…}}''' template is an abstraction layer to cope with rebranding and renaming of transport systems. The template maps {{math|''f'' (where, how) → to brand, link, icon(s)}} allowing the whole of Wikipedia to be easily updated when a transport network switches operator, changes name or updates their logo. | The '''{{tlx|rail-interchange|…}}''' template is an abstraction layer to cope with rebranding and renaming of transport systems. The template maps {{math|''f'' (where, how) → to brand, link, icon(s)}} allowing the whole of Wikipedia to be easily updated when a transport network switches operator, changes name or updates their logo. | ||
Line 80: | Line 79: | ||
|- | |- | ||
|style="text-align:center"|{{rail-interchange|heritage|rail}} | |style="text-align:center"|{{rail-interchange|heritage|rail}} | ||
| | | rowspan="2" | | ||
'''Code:''' <code><nowiki>{{rint|heritage|rail}}</nowiki></code><br> | '''Code:''' <code><nowiki>{{rint|heritage|rail}}</nowiki></code><br> | ||
'''Alternative icon:''' <code><nowiki>{{rint|heritage|rail|ex}}</nowiki></code><br> | |||
'''Use:''' Interchange with a heritage railway line<br> | '''Use:''' Interchange with a heritage railway line<br> | ||
'''Link:''' [[Heritage railway]] | '''Link:''' [[Heritage railway]] | ||
|- | |||
|style="text-align:center"|{{rail-interchange|heritage|rail|ex}} | |||
|- | |- | ||
|style="text-align:center"|{{rail-interchange|heritage|tram}} | |style="text-align:center"|{{rail-interchange|heritage|tram}} | ||
| | | rowspan="2" | | ||
'''Code:''' <code><nowiki>{{rint|heritage|tram}}</nowiki></code><br> | '''Code:''' <code><nowiki>{{rint|heritage|tram}}</nowiki></code><br> | ||
'''Alternative icon:''' <code><nowiki>{{rint|heritage|pcc}}</nowiki></code><br> | |||
'''Use:''' Interchange with a heritage tram or streetcar line<br> | '''Use:''' Interchange with a heritage tram or streetcar line<br> | ||
'''Link:''' [[Heritage streetcar]] | '''Link:''' [[Heritage streetcar]] | ||
|- | |||
|style="text-align:center"|{{rail-interchange|heritage|pcc}} | |||
|- | |- | ||
|style="text-align:center"|{{rail-interchange|bike}} | |style="text-align:center"|{{rail-interchange|bike}} | ||
Line 108: | Line 113: | ||
|} | |} | ||
== | ==Specific by country== | ||
{{collapse top|bg=white|title= | {{align|right|{{nowrap|1=<small>This list:</small> {{view||edit|template=Rail-interchange/doc/countries}}}}}}{{clear}} | ||
Variants exist for a number of different places around the world to display symbols which are specific to a country or city - for example, the London Underground logo on London specific articles. Note that these are the ''names'' of the main location involved, and not the ''brand'' used by the current franchise operator (which can change frequently). If the ''logo'' should change, it can be easily updated within this template. | |||
{{columns-list|colwidth=15em|{{Rail-interchange/doc/countries}}}} | |||
Please only use [[free content]] images. In most cases, using non-free logos in this manner will not comply with [[Wikipedia:Non-free content|Wikipedia's non-free content policy]]. | |||
==See also== | |||
*{{tl|Rail icon}} (abbreviated {{tl|ric}}) for a similar template that uses subpages of {{tl|Adjacent stations}}. | |||
==TemplateData== | |||
{{collapse top|bg=white|title=TemplateData}} | |||
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
Line 116: | Line 132: | ||
"1": { | "1": { | ||
"label": "Location or operator", | "label": "Location or operator", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"2": { | |||
"label": "Line, route or service", | "label": "Line, route or service", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"3": { | |||
"label": "Modifier", | "label": "Modifier", | ||
"description": "controls options for specific systems", | "description": "controls options for specific systems", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"4": { | |||
"label": "Modifier", | "label": "Modifier", | ||
"description": "controls options for specific systems", | "description": "controls options for specific systems", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"size": { | |||
"label": "Size", | "label": "Size", | ||
"description": "width of icon, in pixels", | "description": "width of icon, in pixels", | ||
"type": "number" | "type": "number" | ||
}, | }, | ||
"link": { | |||
"label": "Link", | "label": "Link", | ||
"description": "alternative Wikilink target for icon", | "description": "alternative Wikilink target for icon", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"alt": { | |||
"label": "Alternative text", | "label": "Alternative text", | ||
"description": "overrides default text", | "description": "overrides default text", | ||
"type": "string" | "type": "string" | ||
} | }, | ||
"Title case": {}, | |||
"line": {}, | |||
"icon": {}, | |||
"showtext": {}, | |||
"text": {}, | |||
"small": {} | |||
}, | }, | ||
"description": "This template is an abstraction layer to cope with rebranding and renaming of transport systems. It easily allows the whole of Wikipedia to be updated when a transport network switches operator, changes name or updates their logo.", | "description": "This template is an abstraction layer to cope with rebranding and renaming of transport systems. It easily allows the whole of Wikipedia to be updated when a transport network switches operator, changes name or updates their logo.", | ||
Line 157: | Line 177: | ||
{{collapse bottom}} | {{collapse bottom}} | ||
<includeonly>{{Sandbox other|| | |||
[[Category:Rail routemap templates]] | [[Category:Rail routemap templates]] | ||
}}</includeonly> |
Revision as of 22:10, 1 December 2022
This is a documentation subpage for Template:Rail-interchange. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 29,000 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.
Transclusion count updated automatically (see documentation). |
The {{rail-interchange|…}}
template is an abstraction layer to cope with rebranding and renaming of transport systems. The template maps
f (where, how) → to brand, link, icon(s) allowing the whole of Wikipedia to be easily updated when a transport network switches operator, changes name or updates their logo.
Avoid brandname, operator or sponsor names when choosing the location/link pair.
Usage
The optional named parameter |size=
will override the default height of the icon (between 10 and 20 pixels):
{{rail-interchange|buenosaires|A|size=10}}
| |
{{rail-interchange|buenosaires|A}}
| |
{{rail-interchange|buenosaires|A|size=20}}
|
The value for |size=
must be an integer and should not be any larger than the display height of the diagram icons themselves (20 pixels in most diagrams).
The icons' wikilink and alternate text can be overridden by adding the optional parameters |link=newlink
and |alt=othertext
. Note that if only the |link=
parameter is changed then the |alt=
parameter will change from the default to the new link text. (However, the |alt=
parameter can be changed without affecting the link target.)
In prose
Please avoid adding these icons within the prose of articles: per Wikipedia's Manual of Style for icons, "Icons should not be used in the article body... This breaks up the continuity of the text, distracting the reader".
In addition, icons used in this way are primarily decorative, e.g. "aesthetics are in the eye of the beholder: one reader's harmless decoration may be another reader's distraction": While the icons provide visual cues in certain circumstances, writing in prose will usually suffice. Instead, provide a link to the services directly.
Generic
The following symbols can be used to denote interchange:
Symbol | Usage |
---|---|
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: | |
Specific by country
Variants exist for a number of different places around the world to display symbols which are specific to a country or city - for example, the London Underground logo on London specific articles. Note that these are the names of the main location involved, and not the brand used by the current franchise operator (which can change frequently). If the logo should change, it can be easily updated within this template.
- Argentina
- Austria
- Australia
- Belgium
- Brazil
- Bulgaria
- Canada
- Chile
- Mainland China and Hong Kong
- Czech Republic
- Denmark
- France
- Germany
- Greece
- Hungary
- India
- Indonesia
- Ireland
- Japan
- Malaysia
- Mexico
- The Netherlands
- The Philippines
- Poland
- Portugal
- Qatar
- Romania
- Russia
- Saudi Arabia
- Singapore
- South Korea
- Spain
- Sweden
- Switzerland
- Taiwan
- Thailand
- Turkey
- Ukraine
- United Arab Emirates
- United Kingdom
- United States
Please only use free content images. In most cases, using non-free logos in this manner will not comply with Wikipedia's non-free content policy.
See also
- {{Rail icon}} (abbreviated {{ric}}) for a similar template that uses subpages of {{Adjacent stations}}.
TemplateData
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Rail-interchange This template is an abstraction layer to cope with rebranding and renaming of transport systems. It easily allows the whole of Wikipedia to be updated when a transport network switches operator, changes name or updates their logo.
|