Template:Multiple use: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 6: Line 6:
|}
|}
|}[[category:Multiply used names]]
|}[[category:Multiply used names]]
 
{{#ifeq:{{{2}}}|1|
{{#dpl:
|titlematch={{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}
|namespace=
|format=,*[[%PAGE%]],\n
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
==Usage==
==Usage==
Line 15: Line 21:
The template has one optional unnamed argument:
The template has one optional unnamed argument:
*1: The element name. The default is PAGENAME.
*1: The element name. The default is PAGENAME.
*2: The mode. If =1, then the list will be produced automatically. The default is 0
==Examples==
==Examples==
The template is used e.g. on page ''[[IS:states]]''.
The template is used e.g. on page ''[[IS:states]]''.

Revision as of 17:09, 17 December 2020

Usage

This template produces a standardized note for element names that are used multiply. The pages employing the template are listed in category:Multiply used names. Place it on the page of the multiply used element name and use template:mult_line for the occurances.

Dependencies

The template uses template:rml.

Arguments

The template has one optional unnamed argument:

  • 1: The element name. The default is PAGENAME.
  • 2: The mode. If =1, then the list will be produced automatically. The default is 0

Examples

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

{{multiple use|states}}

delivers

Mass.png The element name states is used several times within railML® in different contexts. See the list below for the different occurances.