Difference between revisions of "Template:Stnlnk"

From All About Ayrshire
Jump to: navigation, search
(Replaced content with "[[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} Railway Station|{{{1}}}]]<noinclude> {{documentation}}</noinclude>")
Line 1: Line 1:
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
=== 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.)
 
 
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 (Hampshire) railway station|Bramley]]</nowiki></code>.
 
 
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}}
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Internal link templates]]
 
[[Category:Rail transport templates]]
 
</includeonly>
 
 
 
 
[[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} Railway Station|{{{1}}}]]<noinclude>
 
[[{{#if:{{{2|}}}|{{{1}}} ({{{2}}})|{{{1}}}}} Railway Station|{{{1}}}]]<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 05:32, 21 October 2015

[[{{{1}}} Railway Station|{{{1}}}]]

Template documentation[view] [edit] [history] [purge]

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

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 (Hampshire) railway station|Bramley]].

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

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