More actions
m Changed protection settings for "Template:Station link": High-risk template or module 6175 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
m 1 revision imported: Pages related to Module:Adjacent stations |
||
(No difference)
|
Latest revision as of 05:38, 8 February 2024
This template is used on many 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. |
Template:Sidebar Adjacent stations
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}}
→ Lua error: expandTemplate: template "Amtrak stations" does not exist. - Using Module:Adjacent stations/MTR:
{{Station link|MTR|University}}
→ Lua error: expandTemplate: template "MTR stations" does not exist.
See also
- {{Stnlnk}} for any station (does not require an Adjacent stations Module).
- {{Station icon link}} with icon.