Template:Station link
| This template is used on approximately 19,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. |
| Pages related to |
| Module:Adjacent stations |
|---|
| (talk | sandbox | sub-pages) |
| {{Infobox station}} |
| (talk | sandbox | testcases) |
| {{Station link}} |
| (talk | sandbox | testcases) |
| {{Station icon link}} |
| (talk | sandbox | testcases) |
| {{Rail color}} |
| (talk | sandbox | testcases) |
| {{Line link}} |
| (talk | sandbox | testcases) |
| {{Rail icon}} |
| (talk | sandbox | testcases) |
| {{Rail color box}} |
| (talk | sandbox | testcases) |
| {{Adjacent stations}} |
| (talk | sandbox | testcases) |
| {{Line terminus link}} |
| (talk | sandbox | testcases) |
| This template uses Lua: |
Template:Station link returns a station link from a subpage of Module:Adjacent stations or from a helper template of {{S-line}}.
Usage
Module:Adjacent stations/system or Template:system color must exist for this template to work.
{{Station link|system}}{{Station link|system|station}}{{Station link|system|station|line}}{{Station link|system|station|line|branch}}
Variables
- system is the name of the system or an abbreviation.
- line is the line name, if any.
- branch is the name of the branch or service, if any.
Examples
- Using Module:Adjacent stations/Amtrak:
{{Station link|Amtrak|30th Street}}→ Philadelphia–30th Street - Using Module:Adjacent stations/MTR:
{{Station link|MTR|University}}→ University
TemplateData
TemplateData for Station link
Returns a link to a station article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| System | 1 system | The name or the abbreviation of the system. Module:Adjacent stations/System or Template:System stations must exist.
| String | required |
| Station | 2 station | The name of the station. The template returns nothing if this parameter is empty.
| String | required |
| Line | 3 line | The name of the line. Use it if the system has a different station link format for each line. | String | optional |
| Branch | 4 type | The name of the branch or the service. Use it if the line has a different station link format for each branch or service. | String | optional |
See also
- {{Stnlnk}} for any station (does not require an Adjacent stations Module).
- {{Station icon link}} with icon.