Template:Enum

From railML 3 Wiki
Jump to navigation Jump to search

Usage

This template grants for a standardized depiction of the possible values of attributes.

Attributes

  • 1 (required): The depicted content.
  • 2: A link to another element
  • 3: A link to another wiki (wiki2/wiki3/topo); works only in combination with {{{2}}}
  • link: link=1→a link is set even if the target is on the same page
  • anchor: ancher=0→no anchor is set

dependencies

This template depends on no othe templates.

Example

{{Enum|Coach}}

delivers

Coach

{{Enum|station|anchor=0}}

delivers

station

The template is used e.g. in <switchIL>.

{{Enum|B1|IS:line}}

delivers

B1

{{enum|straight|IS:switch|wiki2}}

delivers

straight

{{enum|reason|TT:isTripDependency|wiki3}}

delivers

reason