Difference between revisions of "Module:Adjacent stations/CTrain/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Blaixx
(Added docs for lines)
 
blackwiki>Blaixx
(documentation for station links)
Line 8: Line 8:
 
{{Rail template doc|CTrain|}}
 
{{Rail template doc|CTrain|}}
 
{{Rail template doc||end}}
 
{{Rail template doc||end}}
 +
 +
== Stations ==
 +
 +
This module can be used to expand a name to link to the appropriate CTrain station article, without displaying the trailing "station". It also handles cases where more disambiguation is needed.
 +
 +
The template can be called using {{tl|Station link}} or {{tl|stl}}.
 +
 +
For example:
 +
 +
<code><nowiki>{{stl|CTrain|Lions Park}}</nowiki></code> expands to <code>&#91;&#91;Lions Park station|Lions Park]]</code>
 +
 +
<code><nowiki>{{stl|CTrain|University}}</nowiki></code> expands to <code>&#91;&#91;University station (Calgary)|University]]</code>
 +
 +
<code><nowiki>{{stl|CTrain|7 Street}}</nowiki></code> expands to <code>&#91;&#91;7 Street Southwest station|7 Street SW]]</code>
  
 
<includeonly>[[Category:CTrain templates]]</includeonly>
 
<includeonly>[[Category:CTrain templates]]</includeonly>

Revision as of 16:07, 6 July 2019

This is a data module for Module:Adjacent stations. It supports services operated by the CTrain.

Lines

Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc

Stations

This module can be used to expand a name to link to the appropriate CTrain station article, without displaying the trailing "station". It also handles cases where more disambiguation is needed.

The template can be called using {{Station link}} or {{stl}}.

For example:

{{stl|CTrain|Lions Park}} expands to [[Lions Park station|Lions Park]]

{{stl|CTrain|University}} expands to [[University station (Calgary)|University]]

{{stl|CTrain|7 Street}} expands to [[7 Street Southwest station|7 Street SW]]