Misplaced Pages

Template:STN: 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 editNext edit →Content deleted Content addedVisualWikitext
Revision as of 13:11, 27 December 2017 view sourceJc86035 (talk | contribs)Extended confirmed users, Template editors34,237 editsm simplified logic← Previous edit Revision as of 16:08, 6 December 2024 view source Primefac (talk | contribs)Edit filter managers, Autopatrolled, Bureaucrats, Checkusers, Oversighters, Administrators208,782 edits Listed for merging with Template:Station; see Misplaced Pages:Templates for discussion/Log/2024 December 6#Template:STN.Tag: TwinkleNext edit →
Line 1: Line 1:
]{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:redirect|isRedirect|{{{{{|safesubst:}}}#if:{{{2|}}}|{{{1}}} Station ({{{2}}})|{{{1}}} Station}}}}|]}}<noinclude> {{Tfm/dated|page=STN|otherpage=Station|link=Misplaced Pages:Templates for discussion/Log/2024 December 6#Template:STN|type=tiny|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}]{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:redirect|isRedirect|{{{{{|safesubst:}}}#if:{{{2|}}}|{{{1}}} Station ({{{2}}})|{{{1}}} Station}}}}|]}}<noinclude>
{{documentation}}</noinclude> {{documentation}}</noinclude>

Revision as of 16:08, 6 December 2024

This template is being considered for merging with Template:Station. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus.

]

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 13,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.

Usage

This template expands a name (first parameter) to link to the appropriate railway station article, without displaying "Station".

Optionally a second parameter can be supplied to distinguish between identically named stations in different locations. The qualifier will be placed within parentheses after "Station".

A third parameter can be used to change the displayed station name.

For example:

{{STN|Ginza}} expands to ].

{{STN|Jiyūgaoka|Tokyo}} expands to ].

{{STN|Tokyo||Tōkyō}} expands to ].

Discretion should be used on whether to name the place itself or the station that serves it. In railway articles it is generally preferred to use the station unless specifically talking about the place, for example that ‹See TfM›Tokyo Disneyland serves the Tokyo Disneyland amusement park.

For articles named with lowercase "station", use {{Station}}.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:STN in articles based on its TemplateData.

TemplateData for STN

Expands a name to link to the appropriate railway station article, without displaying "Station"

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Station name1

The title of the railway station article, without "station"

Stringrequired
Station location2

Distinguishes between identically named stations in different locations

Stringoptional
Link label3

Change the displayed link text

Stringoptional

See also

For new systems and systems in need of maintenance, use the newer {{Station link}} (abbreviated {{stl}} or {{slk}}) instead, which uses the faster and less maintenance-intensive Module:Adjacent stations.

A number of other templates provide the same function for specific systems:

Template Shortcut(s) Used for
{{Station}} {{stn}} Any transit, bus station or train station, with lowercase word "station"
{{STN}} none Any transit, bus station or train station, with the word "Station" capitalized
{{BSsrws}} none Any station, split over
two lines
of text
{{Stnlnk}} {{rws}} Railway stations
{{Metro}} none Metro stations
{{Subway}} none Subway stations
{{LRT Station}} {{lrt}} or {{lrts}} Light rail transit stations
{{MRT station}} {{mrt}} or {{mrts}} Mass rapid transit stations
{{Tram}} none Tram stops
{{Tstop}} none Any transit stop
{{Ferry}} {{fw}} Ferry wharves
Specific locations
North America
Amtrak stations {{amtk}} Amtrak
CTA stations {{cta}} Chicago Transit Authority
MBTA stations {{bts}} MBTA (Boston)
MNRR stations {{mnrr}} Metro-North Railroad (New York and Connecticut)
MTA Maryland stations {{mtams}} Maryland Transit Administration (excluding MARC Train)
Muni stations {{munis}} San Francisco Municipal Railway and Muni Metro
NJT stations {{njts}} NJ Transit Rail Operations (New Jersey)
SCAX stations {{scax}} Metrolink (California)
WMATA stations {{wmata}} Washington Metro (Washington, D.C.)
Elsewhere
{{StnlnkA}} {{rwsa}} Australia and New Zealand
{{Gare}} none Any French railway station ("Gare de …")
{{Hauptbahnhof station}} {{Hbf}} Any German central station ("… Hauptbahnhof")
{{IWLR}} none Inner West Light Rail (Sydney)
{{Komuter station}} {{kstn}} KTM Komuter (Kuala Lumpur)
{{Tubestation}} {{lus}} London Underground
{{Metro Madrid}} {{MdM}} Madrid Metro
Template Shortcut Used for
The above documentation is transcluded from Template:STN/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: