Template:Stnlnk/doc: Difference between revisions
m update /doc |
m "{{TemplateDataHeader}}" --> "{{TemplateData header}}" |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> |
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> |
||
{{High |
{{High-use| 21472 }} |
||
=== Usage === |
=== Usage === |
||
Line 39: | Line 39: | ||
=== TemplateData === |
=== TemplateData === |
||
{{TemplateData header}} |
|||
{{TemplateDataHeader}} |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
Revision as of 22:40, 24 February 2019
This is a documentation subpage for Template:Stnlnk. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 32,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 "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 {{rws}} (for railway station).
For example:
{{stnlnk|Wolverhampton}}
expands to [[Wolverhampton railway station|Wolverhampton]]
.
{{stnlnk|Bramley|Hampshire}}
expands to [[Bramley railway station (Hampshire)|Bramley]]
.
{{stnlnk|Ashford International||Ashford Intl}}
expands to [[Ashford International railway station|Ashford Intl]]
.
- 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 Peterborough serves the city of Peterborough.
Almost all British stations follow the link form of terminating with "railway station".
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:
|
TemplateData
TemplateData for Stnlnk
Typing aid for railway stations articles
Parameter | Description | Type | Status | |
---|---|---|---|---|
Station name | 1 | The title of the railway station article, without "railway station"
| String | required |
Station location | 2 | Distinguishes between identically named stations in different locations | String | suggested |
Link label | 3 | Change the displayed link text from station name | String | suggested |