Difference between revisions of "Template:Adjacent stations doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Useddenim
({{{link}}})
blackwiki>Useddenim
({{Documentation}})
Line 1: Line 1:
This is a data module for [[Module:Adjacent stations]]. It supports {{#ifeq:{{{1}}}|former|former {{#ifeq:{{lc:{{{link|}}}}}|no|{{#titleparts:{{PAGENAME}}|1|2}}|[[{{#titleparts:{{PAGENAME}}|1|2}}]]}} {{#if:{{{alt|}}}|([[{{{alt}}}]])|}} lines|services {{#if:{{{place|}}}|in {{{place}}}|}} operated by {{#if:{{{the|}}}||the}} {{#ifeq:{{lc:{{{link|}}}}}|no|{{#titleparts:{{PAGENAME}}|1|2}}|[[{{#titleparts:{{PAGENAME}}|1|2}}]]}}{{#if:{{{alt|}}}| ([[{{{alt}}}]])|}}{{#if:{{{incl|}}}|, {{{incl}}}|}}}}. {{#if:{{{for|}}}|For {{#if:{{{the2|}}}||the}} {{#ifeq:{{{1}}}|former|current services|{{{for}}}}}{{#if:{{{type|}}}| {{{type}}}|}}, use [[Module:Adjacent stations/{{{for}}}]].}}
+
This is a data module for [[Module:Adjacent stations]]. It supports {{#ifeq:{{{1}}}|former|former {{#ifeq:{{lc:{{{link|}}}}}|no|{{#titleparts:{{PAGENAME}}|1|2}}|[[{{#titleparts:{{PAGENAME}}|1|2}}]]}} {{#if:{{{alt|}}}|([[{{{alt}}}]])|}} lines|services {{#if:{{{place|}}}|in {{{place}}}|}} operated by {{#if:{{{the|}}}||the}} {{#ifeq:{{lc:{{{link|}}}}}|no|{{#titleparts:{{PAGENAME}}|1|2}}|[[{{#titleparts:{{PAGENAME}}|1|2}}]]}}{{#if:{{{alt|}}}|&#32;([[{{{alt}}}]])|}}{{#if:{{{incl|}}}|, {{{incl}}}|}}}}. {{#if:{{{for|}}}|For {{#if:{{{the2|}}}||the}} {{#ifeq:{{{1}}}|former|current services|{{{for}}}}}{{#if:{{{type|}}}|&#32;{{{type}}}|}}, use [[Module:Adjacent stations/{{{for}}}]].}}<noinclude>
 +
{{Documentation}}</noinclude>

Revision as of 19:31, 22 June 2019

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

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

Documentation sub-page for Module:Adjacent stations/System.

Usage

All parameters are optional. The System name is automatically inserted.

Parameter Notes
1 If |former}}, then the second sentence reads "It supports former System lines." instead of "It supports services operated by the System."
|place= Inserts "in place" before "operated by the System".
|the=anything suppresses "the" before System.
|link=no Suppresses the wikilink for System (when the system abbreviation is a disambiguation).
|alt= Inserts an alternate, linked name (in parentheses) after System.
|incl= Includes additional text at the end of the second sentence.
|for= Adds a third sentence, "For the For, use Module:Adjacent stations/For." or "For the current services, use Module:Adjacent stations/For." if |former}} is specified.
|the2=anything suppresses "the" before For.
|type= Includes additional text at the end of the third sentence.

Examples

Using the companies from The Railway Series as an example,

{{Adjacent stations doc}} on Module:Adjacent stations/North Western Railway/doc produces


{{Adjacent stations doc|former}} on Module:Adjacent stations/Tidmouth, Knapford & Elsbridge Railway/doc produces


{{Adjacent stations doc|place=the [[Island of Sodor]]}} on Module:Adjacent stations/North Western Railway/doc produces


{{Adjacent stations doc|former|link=no|alt=Sodor & Mainland Railway}} on Module:Adjacent stations/S&M/doc produces


{{Adjacent stations doc|incl=including the [[Sodor & Mainland Railway]], the [[Tidmouth, Wellsworth & Suddery Railway]], the [[Tidmouth, Knapford & Elsbridge Railway]], and the [[Wellsworth & Suddery Railway]]}} on Module:Adjacent stations/North Western Railway/doc produces


{{Adjacent stations doc|for=London & North Western Railway}} on Module:Adjacent stations/North Western Railway/doc produces


{{Adjacent stations doc|the2=no|for=NWR|type=&ndash; [[British Railways]]' former [[North Western Region]])}} on Module:Adjacent stations/North Western Railway/doc produces

See also