Misplaced Pages

Template:Rail-interchange

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.

This is an old revision of this page, as edited by Cnbrb (talk | contribs) at 15:14, 10 January 2010 (add generic ferry link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 15:14, 10 January 2010 by Cnbrb (talk | contribs) (add generic ferry link)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Add→{{rail-interchange}}

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):

Add→{{rail-interchange}} {{rail-interchange|buenosaires|A|size=10}}
Add→{{rail-interchange}} {{rail-interchange|buenosaires|A}}
Add→{{rail-interchange}} {{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

Add→{{rail-interchange}} Code: {{rint|air|base}} or {{rint|airbase}}
Alternative icon: {{rint|airbase|ex}}
Use: Military air base
Link: Military air base
Airport interchange
Add→{{rail-interchange}} Code: {{rint|air|field}} or {{rint|airfield}}
Use: Small airport or private airfield
Link: Aerodrome
Add→{{rail-interchange}}

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 interchange Code: {{rint|bus|rapid}} or …|bus|brt}}
Use: Interchange with Bus Rapid Transit services
Link: Bus rapid transit
Add→{{rail-interchange}} 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
Add→{{rail-interchange}}

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

Add→{{rail-interchange}}

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

Add→{{rail-interchange}}

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

Tram/light rail 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/light rail interchange
ferry/water bus interchange

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

Add→{{rail-interchange}}

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

Add→{{rail-interchange}}

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

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

Add→{{rail-interchange}} Code: {{rint|bicycle}} or {{rint|bike}}
Use: Bicycle facilities
Link: Bicycle
Add→{{rail-interchange}} Code: {{rint|park}} or {{rint|parking}}
Alternative icon: {{rint|park|1}} or {{rint|parking|1}}
Use: Parking
Link: Parking
Add→{{rail-interchange}}
Add→{{rail-interchange}}

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

Add→{{rail-interchange}}

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
Category: