Template:Short line link/doc
Appearance
This is a documentation subpage for Template:Short line link. It may contain usage information, categories and other content that is not part of the original template page. |
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) |
{{Short 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:Short line link returns a short line link from a subpage of Module:Adjacent stations or from a helper template of {{S-line}}.
Usage[edit]
Module:Adjacent stations/system
or Template:system color
must exist for this template to work.
{{Short line link|system}}
{{Short line link|system|line}}
{{Short line link|system|line|branch}}
Variables[edit]
- 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[edit]
- Using Template:EuroNight stations:
{{Short line link|EuroNight|Wien}}
→ Wien - Using Module:Adjacent stations/MTR:
{{Line link|MTR|bk}}
→ Beijing–Kowloon through train vs{{Short line link|MTR|bk}}
→ Beijing–Kowloon