Changes
m
correction
{{Documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{High-use| 22095 }}
{{template shortcut|rws}}
=== Usage ===
This template expands a name (first parameter) to link to the appropriate railway station article, without displaying "railway station".
Optionally a second parameter can be supplied to distinguish between identically named stations in different locations.
(With respect to the UK, this is typically the county level administrative division.)
A third parameter can be used to change the displayed station name.
The template can be abbreviated as {{tl|rws}} (for '''r'''ail'''w'''ay '''s'''tation).
For example:
<code><nowiki>{{stnlnk|Wolverhampton}}</nowiki></code> expands to <code><nowiki>[[Wolverhampton railway station|Wolverhampton]]</nowiki></code>.
<code><nowiki>{{stnlnk|Bramley|Hampshire}}</nowiki></code> expands to <code><nowiki>[[Bramley railway station (Hampshire)|Bramley]]</nowiki></code>.
<code><nowiki>{{stnlnk|Ashford International||Ashford Intl}}</nowiki></code> expands to <code><nowiki>[[Ashford International railway station|Ashford Intl]]</nowiki></code>.
;Note:
This template will correctly handle all the standard forms of station name disambiguation:
* Xxx railway station (Location)
* Xxx (Location) railway station
* Xxx railway station, Location
* Xxx station (Location)
* Xxx (System station)
* Xxx (System)
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 {{stnlnk|Peterborough}} serves the city of [[Peterborough]].
Almost all British stations follow the link form of terminating with "railway station".
=== See also ===
{{Stnlnk/doc/other}}
=== TemplateData ===
{{TemplateData header}}
<templatedata>
{
"description": "Typing aid for railway stations articles",
"params": {
"1": {
"label": "Station name",
"type": "string",
"required": true,
"description": "The title of the railway station article, without \"railway station\"",
"example": "Wolverhampton"
},
"2": {
"label": "Station location",
"type": "string",
"description": "Distinguishes between identically named stations in different locations",
"suggested": true
},
"3": {
"label": "Link label",
"type": "string",
"description": "Change the displayed link text from station name",
"suggested": false
}
},
"format": "inline"
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
[[Category:Internal article-link templates]]
[[Category:Rail transport templates]]
}}</includeonly>
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{High-use| 22095 }}
{{template shortcut|rws}}
=== Usage ===
This template expands a name (first parameter) to link to the appropriate railway station article, without displaying "railway station".
Optionally a second parameter can be supplied to distinguish between identically named stations in different locations.
(With respect to the UK, this is typically the county level administrative division.)
A third parameter can be used to change the displayed station name.
The template can be abbreviated as {{tl|rws}} (for '''r'''ail'''w'''ay '''s'''tation).
For example:
<code><nowiki>{{stnlnk|Wolverhampton}}</nowiki></code> expands to <code><nowiki>[[Wolverhampton railway station|Wolverhampton]]</nowiki></code>.
<code><nowiki>{{stnlnk|Bramley|Hampshire}}</nowiki></code> expands to <code><nowiki>[[Bramley railway station (Hampshire)|Bramley]]</nowiki></code>.
<code><nowiki>{{stnlnk|Ashford International||Ashford Intl}}</nowiki></code> expands to <code><nowiki>[[Ashford International railway station|Ashford Intl]]</nowiki></code>.
;Note:
This template will correctly handle all the standard forms of station name disambiguation:
* Xxx railway station (Location)
* Xxx (Location) railway station
* Xxx railway station, Location
* Xxx station (Location)
* Xxx (System station)
* Xxx (System)
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 {{stnlnk|Peterborough}} serves the city of [[Peterborough]].
Almost all British stations follow the link form of terminating with "railway station".
=== See also ===
{{Stnlnk/doc/other}}
=== TemplateData ===
{{TemplateData header}}
<templatedata>
{
"description": "Typing aid for railway stations articles",
"params": {
"1": {
"label": "Station name",
"type": "string",
"required": true,
"description": "The title of the railway station article, without \"railway station\"",
"example": "Wolverhampton"
},
"2": {
"label": "Station location",
"type": "string",
"description": "Distinguishes between identically named stations in different locations",
"suggested": true
},
"3": {
"label": "Link label",
"type": "string",
"description": "Change the displayed link text from station name",
"suggested": false
}
},
"format": "inline"
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
[[Category:Internal article-link templates]]
[[Category:Rail transport templates]]
}}</includeonly>