Template:Rail-interchange: Difference between revisions
m →Hong Kong: fixed #ifeq: |
Empatpuluh (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
| birmingham=[[File:MidlandMetroGenericSymbol.svg|{{{size|13}}}px|link={{{link|Midland Metro}}}|alt={{{alt|{{{link|Midland Metro}}}}}}]] |
| birmingham=[[File:MidlandMetroGenericSymbol.svg|{{{size|13}}}px|link={{{link|Midland Metro}}}|alt={{{alt|{{{link|Midland Metro}}}}}}]] |
||
| blackpool=[[File:Blackpool Transport simple logo.png|{{{size|x20}}}px|link={{{link|Blackpool tramway}}}|alt={{{alt|{{{link|Blackpool tramway}}}}}}]] |
| blackpool=[[File:Blackpool Transport simple logo.png|{{{size|x20}}}px|link={{{link|Blackpool tramway}}}|alt={{{alt|{{{link|Blackpool tramway}}}}}}]] |
||
| bonn=[[File:U-Bahn.svg|{{{size|10}}}px| |
| bonn=[[File:U-Bahn.svg|{{{size|10}}}px|MAlink={{{link|Bonn Stadtbahn}}}|alt={{{alt|{{{link|Bonn Stadtbahn}}}}}}]] |
||
| caltrain=[[File:Caltrain logo.svg|{{{size|20}}}px|link={{{link|Caltrain}}}|alt={{{alt|{{{link|Caltrain}}}}}}]] |
| caltrain=[[File:Caltrain logo.svg|{{{size|20}}}px|link={{{link|Caltrain}}}|alt={{{alt|{{{link|Caltrain}}}}}}]] |
||
| ctfastrak=[[File:CTfastrak symbol.svg|{{{size|16}}}px|mrlink={{{link|CTfastrak}}}|alt={{{alt|{{{link|CTfastrak}}}}}}]] |
| ctfastrak=[[File:CTfastrak symbol.svg|{{{size|16}}}px|mrlink={{{link|CTfastrak}}}|alt={{{alt|{{{link|CTfastrak}}}}}}]] |
||
Line 1,322: | Line 1,322: | ||
| 7|erl1={{RouteBox|7|KLIA Ekspres|#{{KLRT color|7}}}} |
| 7|erl1={{RouteBox|7|KLIA Ekspres|#{{KLRT color|7}}}} |
||
| 8|erl2={{RouteBox|8|KLIA Transit|#{{KLRT color|8}}}} |
| 8|erl2={{RouteBox|8|KLIA Transit|#{{KLRT color|8}}}} |
||
| 9={{RouteBox|9| |
| 9|mrt1={{RouteBox|9|MRT Sungai Buloh-Kajang Line|#{{KLRT color|9}}}} |
||
| 10| |
| 10|ktmk3={{RouteBox|10|Railway_electrification_in_Malaysia#Terminal_Skypark_Line|#{{KLRT color|10}}}} |
||
| 11| |
| 11|lrt3={{RouteBox|11|Bandar Utama-Klang Line|#{{KLRT color|11}}}} |
||
| 12| |
| 12|mrt2={{RouteBox|12|MRT Sungai Buloh-Serdang-Putrajaya Line|#{{KLRT color|12}}}} |
||
| 13={{RouteBox|13| |
| 13|mrt3={{RouteBox|13|MRT Circle Line|#{{KLRT color|13}}}} |
||
| |
| B1={{RouteBox|B1|BRT Sunway Line|#{{KLRT color|B1}}}} |
||
| B2={{RouteBox|B2|BRT Federal Line|#{{KLRT color|B2}}}} |
|||
| blue|goklb=[[File:MadridMetro-EMT.svg|{{{size|14}}}px|link={{{link|Go KL City Bus}}}]] |
| blue|goklb=[[File:MadridMetro-EMT.svg|{{{size|14}}}px|link={{{link|Go KL City Bus}}}]] |
||
| green|goklg=[[File:MadridMetro-BusInterurbano.svg|{{{size|14}}}px|link={{{link|Go KL City Bus}}}]] |
| green|goklg=[[File:MadridMetro-BusInterurbano.svg|{{{size|14}}}px|link={{{link|Go KL City Bus}}}]] |
Revision as of 05:14, 27 July 2016
Add→{{rail-interchange}}
This template is used on approximately 39,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. |
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: | |
Add→{{rail-interchange}} | Code: {{rint|air|base}} or {{rint|airbase}} Alternative icon: {{rint|airbase|ex}} Use: Military air base Link: Military air base |
Code: {{rint|air|field}} or {{rint|airfield}} Use: Small airport or private airfield Link: Aerodrome | |
Code: | |
Code: | |
Code: {{rint|bus|rapid}} or …|bus|brt}} Use: Interchange with Bus Rapid Transit services Link: Bus rapid transit | |
Code: {{rint|bus|trolleybus}} or …|bus|trolley}} or …|bus|tb}} or {{rint|trolley}} or …|trolleybus}} Use: Interchange with local trolleybus services Link: Trolleybus | |
Code: | |
Code: | |
Code: | |
Code: | |
Code: {{rint|tram}} or …|light rail}} Alternative icon: {{rint|tram|1}} Use: Interchange with tram or light rail services Link: Tram or Light rail | |
Code: | |
Code: | |
Add→{{rail-interchange}} |
Code: |
Code: {{rint|heritage|rail}} Alternative icon: {{rint|heritage|rail|ex}} Use: Interchange with a heritage railway line Link: Heritage railway | |
Code: | |
Code: {{rint|bicycle}} or {{rint|bike}} Use: Bicycle facilities Link: Bicycle | |
Code: {{rint|park}} or {{rint|parking}} Alternative icon: {{rint|park|1}} or {{rint|parking|1}} Use: Parking Link: Parking | |
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
- Armenia
- Austria
- Australia
- Belarus
- Belgium
- Brazil
- Bulgaria
- Canada
- Chile
- Mainland China and Hong Kong
- Czech Republic
- Denmark
- France
- Germany
- Greece
- Hungary
- India
- Indonesia
- Ireland
- Israel
- Italy
- Japan
- Malaysia
- Mexico
- The Netherlands
- Norway
- The Philippines
- Poland
- Portugal
- Qatar
- Romania
- Russia
- Saudi Arabia
- Singapore
- Slovakia
- 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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Rail-interchange in articles based on its TemplateData.
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.
|
- Argentina
- Austria
- Australia
- Belgium
- Brazil
- Bulgaria: Template:Rail-interchange 3166
- Canada
- Chile
- Mainland China and Hong Kong
- Czech Republic
- Denmark
- France
- Germany
- Greece
- Hungary
- India
- Indonesia
- Ireland
- Japan
- Malaysia
- The Netherlands
- The Philippines
- Poland
- Portugal
- Qatar
- Romania
- Russia
- Saudi Arabia
- Singapore
- South Korea
- Spain
- Sweden
- Switzerland
- Thailand
- Turkey
- Ukraine
- United Arab Emirates
- United Kingdom
- United States
This may need switching to Wikipedia:Template limits#A template for each array element.