Template:Mult line: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
 
Line 13: Line 13:
==Example==
==Example==
The template is used e.g. in page [[IS:states]]
The template is used e.g. in page [[IS:states]]
<pre>{{subst:mult line|IS|track|states}}</pre>
<pre>{{mult line|IS|track|states}}</pre>
delivers
delivers


{{mult line|IS|track|signal}}
{{mult line|IS|track|states}}
 
[[category:ContentTemplate]]
[[category:ContentTemplate]]
</noinclude>
</noinclude>

Latest revision as of 12:40, 19 August 2019

Usage

Use this template in connection with Template:Multiple_use to list the elements sharing a name.

Dependecies

The template employs the tag templates, e.g. template:IS:Tag.

Arguments

The template has three obligatory, unnamed arguments:

  • Obligatory:
    • 1: the subschema: CO, IS, TT, IL, RS
    • 2: the parent name. The element name will automatically be expanded by the parent name
  • Optional
    • 3: the element name (without extension). This argument is optional, the default is PAGENAME.

Example

The template is used e.g. in page IS:states

{{mult line|IS|track|states}}

delivers