Template:Rail-interchange/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search


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[edit]

The optional named parameter size will override the default height of the icon (from 10 to 20 pixels):

Línea A (SBASE) bullet.svg {{rail-interchange|buenosaires|A|size=10}}
Línea A (SBASE) bullet.svg {{rail-interchange|buenosaires|A}}
Línea A (SBASE) bullet.svg {{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[edit]

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[edit]

The following symbols can be used to denote interchange:

Symbol Usage
Airport interchange

Code: {{rail-interchange|air}}
Use: Airport station
Link: List of airports

Bus interchange

Code: {{rail-interchange|bus}}
Use: Interchange with local bus services
Link: Bus

Mainline rail interchange

Code: {{rail-interchange|rail}}
Use: Interchange with mainline rail services
Link: none

Metro interchange

Code: {{rail-interchange|metro}} or …|underground}} or …|subway}}
Use: Interchange with rapid transit services
Link: Rapid transit

Tram} interchange

Code: {{rail-interchange|tram}}
Use: Interchange with tram or light rail services
Link: Light rail

ferry/water interchange

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

Funicular

Code: {{rail-interchange|funicular}} or {{rail-interchange|incline}}
Use: Interchange with a funicular
Link: Funicular

Heritage railway

Code: {{rail-interchange|heritage|rail}}
Use: Interchange with a heritage railway line
Link: Heritage railway

Heritage streetcar

Code: {{rail-interchange|heritage|tram}}
Use: Interchange with a heritage tram or streetcar line
Link: Heritage streetcar

Bicycle facilities

Code: {{rail-interchange|bicycle}} or {{rail-interchange|bike}}
Use: Bicycle facilities
Link: Bicycle

Parking

Code: {{rail-interchange|park}} or {{rail-interchange|parking}}
Use: Parking
Link: Parking

Handicapped/disabled access

Code: {{rail-interchange|wheelchair}}
Use: Handicapped/disabled access
Link: Accessibility#Transportation

Specific by country[edit]

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 Wikipedia's non-free content policy.


This may need switching to Wikipedia:Template limits#A template for each array element