Misplaced Pages

Template:Rail-interchange: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 12:51, 5 October 2024 view sourceMackensen (talk | contribs)Autopatrolled, Administrators125,039 edits refactor Tianjin Metro← Previous edit Latest revision as of 14:02, 26 December 2024 view source Chlod (talk | contribs)Extended confirmed users, New page reviewers, Pending changes reviewers, Rollbackers, Template editors17,658 edits Adding Shanghai Airport Link per request of S5A-0043Tag: 2017 wikitext editor 
(11 intermediate revisions by 7 users not shown)
Line 11: Line 11:


| adelaide ={{#switch: {{lc: {{{2}}} }} | adelaide ={{#switch: {{lc: {{{2}}} }}
| rail =]
| bus =] | bus =]
| rail =]
| belair =]
| gawler =]
| grange =]
| outer harbor =]
| port dock =]
| seaford =]
| flinders =]
| tram =] | tram =]
| glenelg =] | glenelg =]
| belair =]
| flinders =]
| gawler =]
| grange =]
| outer harbor =]
| seaford =]
| tonsley =]
}} }}
Line 48: Line 48:
| 54 =] | 54 =]
}} }}

| asturias ={{#switch: {{lc: {{{2}}} }}
| renfe =]
| c | cercanias | cercanías =]
| c-1 =]
| c-2 =]
| c-3 =]
| c-4 =]
| c-5 =]
| c-5a =]
| c-6 =]
| c-7 =]
| c-8 =]
}}


| athens ={{rail icon|{{#switch:{{lc:{{{2}}}}} | athens ={{rail icon|{{#switch:{{lc:{{{2}}}}}
Line 468: Line 482:
| brown = ] | brown = ]
| ats =] | ats =]
}}

| chongqing ={{#switch: {{lc: {{{2}}} }}
| metro | crt = <!-- ] image deleted, commented out per TPER 2021-07-25 -->
| csr =]
| #default ={{Rail color box|Chongqing Rail Transit|{{lc: {{{2|}}}}}|route|type={{{3|}}}}}
| 3a ={{#switch: {{lc: {{{3}}} }}
| na ={{RouteBox|Airport|Line 3 (Chongqing Rail Transit)#Airport branch|#{{rail color|Chongqing Rail Transit|na}}}}
| #default ={{Rail color box|Chongqing Rail Transit|3|route|type=a}}
}}
| 6i ={{#switch: {{lc: {{{3}}} }}
| na ={{RouteBox|Int'l Expo|Line 6 (Chongqing Rail Transit)#International Expo branch|#{{rail color|Chongqing Rail Transit|na}}}}
| #default ={{Rail color box|Chongqing Rail Transit|6|route|type=i}}
}}
| s ={{#switch: {{lc: {{{4}}} }}
| na ={{RouteBox|S{{{3}}}|Line S{{{3}}} (Chongqing Suburban Railway)|#{{rail color|Chongqing Rail Transit|na}}}}
| #default ={{RouteBox|S{{{3}}}|Line S{{{3}}} (Chongqing Suburban Railway)|#{{rail color|Chongqing Rail Transit|s{{{3}}}}}}}
}}
}} }}


Line 1,274: Line 1,270:
| mexicocity ={{#switch: {{lc: {{{2}}} }} | mexicocity ={{#switch: {{lc: {{{2}}} }}
| mcm =] | mcm =]
| tl =] | tl =]
| fs =] | fs =]
| #default =] | #default =]
Line 1,886: Line 1,882:
| m | ml | maglev ={{RouteBox|Maglev|{{{link|Shanghai maglev train}}}|#{{rail color|Shanghai Metro|na}}}} | m | ml | maglev ={{RouteBox|Maglev|{{{link|Shanghai maglev train}}}|#{{rail color|Shanghai Metro|na}}}}
| p | pj | pujiang ={{RouteBox|Pujiang|{{{link|Pujiang line}}}|#{{rail color|Shanghai Metro|na}}}} | p | pj | pujiang ={{RouteBox|Pujiang|{{{link|Pujiang line}}}|#{{rail color|Shanghai Metro|na}}}}
| ap | all | airport link = {{RouteBox|Airport Link|{{{link|Airport link line (Shanghai Suburban Railway)|Airport Link}}}|#{{rail color|Shanghai Metro|ap}}}}
| #default ={{RouteBox|{{{2}}}|Line {{{2}}} (Shanghai Metro)|#{{rail color|Shanghai Metro|na}}}} | #default ={{RouteBox|{{{2}}}|Line {{{2}}} (Shanghai Metro)|#{{rail color|Shanghai Metro|na}}}}
}} }}
Line 1,897: Line 1,894:
| m | ml | maglev ={{RouteBox|Maglev|{{{link|Shanghai maglev train}}}|#{{rail color|Shanghai Metro|Maglev}}}} | m | ml | maglev ={{RouteBox|Maglev|{{{link|Shanghai maglev train}}}|#{{rail color|Shanghai Metro|Maglev}}}}
| p | pj | pujiang ={{RouteBox|Pujiang|{{{link|Pujiang line}}}|#{{rail color|Shanghai Metro|Pujiang}}}} | p | pj | pujiang ={{RouteBox|Pujiang|{{{link|Pujiang line}}}|#{{rail color|Shanghai Metro|Pujiang}}}}
| ap | all | airport link = {{RouteBox|Airport Link|{{{link|Airport link line (Shanghai Suburban Railway)|Airport Link}}}|#{{rail color|Shanghai Metro|ap}}}}
| #default ={{RouteBox|{{{2}}}|{{{link|Line {{{2}}} (Shanghai Metro)}}}|#{{rail color|Shanghai Metro|{{{2}}}}}}} | #default ={{RouteBox|{{{2}}}|{{{link|Line {{{2}}} (Shanghai Metro)}}}|#{{rail color|Shanghai Metro|{{{2}}}}}}}
}} }}
Line 2,009: Line 2,007:
| t1 | north | shore | western =] | t1 | north | shore | western =]
| t2 | inner | leppington =] | t2 | inner | leppington =]
| t3 | bankstown =] | t3 | bankstown =]
| t4 | eastern | illawarra =] | t4 | eastern | illawarra =]
| t5 | cumberland =] | t5 | cumberland =]
Line 2,102: Line 2,100:


| thessaloniki | thessalonika ={{#switch: {{lc: {{{2}}} }} | thessaloniki | thessalonika ={{#switch: {{lc: {{{2}}} }}
| 1 =] | m =]
| 2 =] | m1 | 1 =]
| r =] | m2 | 2 =]
| p =] | m3 | 3 =]
| ose | r =]
| p =]
| pr =] | pr =]
| Π1 | ∏1 | π1 | p1 =] | Π1 | ∏1 | π1 | p1 =]
Line 2,111: Line 2,111:
| Π3 | ∏3 | π3 | p3 ={{#if:{{{link|Proastiakos Thessaloniki}}}|*(%d*)*$|%1|plain=false}}/17*100 round 0}}%;padding-left:2px;padding-right:2px;" title="{{{alt|{{{link|Proastiakos Thessaloniki Line Π3}}}}}}">Π3</span>]]|<span style="background-color:#{{rcr|Proastiakos Thessaloniki|3}};color:white;font-weight:bold;font-size:{{#expr:{{#invoke:string|replace|{{{size|x15}}}|^*(%d*)*$|%1|plain=false}}/17*100 round 0}}%;padding-left:2px;padding-right:2px;" title="{{{alt|{{{link|Proastiakos Thessaloniki Line Π3}}}}}}">Π3</span>}} | Π3 | ∏3 | π3 | p3 ={{#if:{{{link|Proastiakos Thessaloniki}}}|*(%d*)*$|%1|plain=false}}/17*100 round 0}}%;padding-left:2px;padding-right:2px;" title="{{{alt|{{{link|Proastiakos Thessaloniki Line Π3}}}}}}">Π3</span>]]|<span style="background-color:#{{rcr|Proastiakos Thessaloniki|3}};color:white;font-weight:bold;font-size:{{#expr:{{#invoke:string|replace|{{{size|x15}}}|^*(%d*)*$|%1|plain=false}}/17*100 round 0}}%;padding-left:2px;padding-right:2px;" title="{{{alt|{{{link|Proastiakos Thessaloniki Line Π3}}}}}}">Π3</span>}}
| a =] | a =]
| ktel = <span style="background-color:#f59f27;border-radius:2px;font-weight:bold;font-size:80%;padding-left:2px;padding-right:2px;" title="{{{alt|{{{link|KTEL}}}}}}">]</span>
| arch = ]
}} }}


Line 2,535: Line 2,537:


| at ={{#switch: {{lc: {{{2}}} }} | at ={{#switch: {{lc: {{{2}}} }}
| öbb | obb =] | öbb | obb =]
| westbahn =] | westbahn =]
}} }}


| be ={{#switch: {{lc: {{{2}}} }} | be ={{#switch: {{lc: {{{2}}} }}
| eul =] | eul =]
| rail =] | rail =]
}} }}
Line 2,620: Line 2,622:
| egged =] | egged =]
| rail = ] | rail = ]
| railw = ]
| jerusalem light rail =] | jerusalem light rail =]
| tel aviv light rail | dankal =] | tel aviv light rail | dankal =]

Latest revision as of 14:02, 26 December 2024

Add→{{rail-interchange}}

Template documentation[view] [edit] [history] [purge]
WarningThis 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 Misplaced Pages 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 Misplaced Pages'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
Airport interchange

Code: {{rint|air}}
Use: Airport station
Link: List of airports

Airbase Code: {{rint|air|base}} or {{rint|airbase}}
Alternative icon: {{rint|airbase|ex}}
Use: Military air base
Link: Military air base
Airbase
Private airfield Code: {{rint|air|field}} or {{rint|airfield}}
Use: Small airport or private airfield
Link: Aerodrome
Heliport

Code: {{rint|heliport}}
Use: Heliport
Link: Heliport

Bus interchange

Code: {{rint|bus}}
Alternative icon: {{rint|bus|1}}
Use: Interchange with local bus services
Link: Bus

Bus interchange
Bus rapid transit Code: {{rint|bus|rapid}} or …|bus|brt}}
Use: Interchange with Bus Rapid Transit services
Link: Bus rapid transit
Trolleybus Code: {{rint|bus|trolleybus}} or …|bus|trolley}} or …|bus|tb}}
or {{rint|trolley}} or …|trolleybus}}
Use: Interchange with local trolleybus services
Link: Trolleybus
Mainline rail interchange

Code: {{rint|rail}}
Alternative icon: {{rint|rail|1}}
Use: Interchange with mainline rail services
Link: none

Mainline rail interchange
Express train

Code: {{rint|express}}
Use: Interchange with express rail services
Link: Express train

Metro interchange

Code: {{rint|metro}}
Use: Interchange with rapid transit services
Link: Rapid transit

Monorail

Code: {{rint|mono}}
Use: Interchange with monorail line
Link: Monorail

Tram interchange Code: {{rint|tram}} or …|light rail}}
Alternative icon: {{rint|tram|1}}
Use: Interchange with tram or light rail services
Link: Tram or Light rail
Tram interchange
ferry/water interchange

Code: {{rint|ferry}}
Use: Interchange with a passenger ferry or water bus service
Link: Ferry

Funicular

Code: {{rint|incline}}
Use: Interchange with a funicular
Link: Funicular

Cable car

Code: {{rint|cable}}
Use: Interchange with an aerial cable car
Link: Aerial lift

Heritage railway Code: {{rint|heritage|rail}}
Alternative icon: {{rint|heritage|rail|ex}}
Use: Interchange with a heritage railway line
Link: Heritage railway
Heritage railway
Heritage streetcar

Code: {{rint|heritage|tram}}
Alternative icon: {{rint|heritage|pcc}}
Use: Interchange with a heritage tram or streetcar line
Link: Heritage streetcar

Heritage streetcar
Bicycle facilities Code: {{rint|bicycle}} or {{rint|bike}}
Use: Bicycle facilities
Link: Bicycle
Parking Code: {{rint|park}} or {{rint|parking}}
Alternative icon: {{rint|park|1}} or {{rint|parking|1}}
Use: Parking
Link: Parking
Parking
Handicapped/disabled access

Code: {{rint|wheelchair}}
Alternative icon: {{rint|wheelchair|1}}
Use: Handicapped/disabled access
Link: Accessibility#Transportation

Handicapped/disabled access

Specific by country

This list:

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.

Please only use free content images. In most cases, using non-free logos in this manner will not comply with Misplaced Pages's non-free content policy.

See also

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 Misplaced Pages to be updated when a transport network switches operator, changes name or updates their logo.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Location or operator1

no description

Stringrequired
Line, route or service2

no description

Stringoptional
Modifier3

controls options for specific systems

Stringoptional
Modifier4

controls options for specific systems

Stringoptional
Sizesize

width of icon, in pixels

Numberoptional
Linklink

alternative Wikilink target for icon

Stringoptional
Alternative textalt

overrides default text

Stringoptional
Title caseTitle case

no description

Unknownoptional
lineline

no description

Unknownoptional
iconicon

no description

Unknownoptional
showtextshowtext

no description

Unknownoptional
texttext

no description

Unknownoptional
smallsmall

no description

Unknownoptional
The above documentation is transcluded from Template:Rail-interchange/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: