Template:InheritUnit

From railML 2 Wiki
Jump to navigation Jump to search

Usage

This template displays a list of units, including other:anything (see CO:usingAny). It allows for an English and a German comment on other:anything.

Arguments

The template has two unnamed optional arguments:

  1. English comment
  2. German comment

Dependencies

The template depends on Template:Enum and Template:OtherEnum. Template:InheritValueTable builds on it.

Examples

{{InheritUnit}}

delivers

Possible values of physical units are:
  • m/s - speed
  • km/h - speed
  • A - current
  • N - force/effort
  • Hz - frequney
  • % - percentage
  • V - voltage
  • W - effective power
  • VA - apparent power
  • Vs - magnetic flux
  • 1 - scalar
  • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.
{{InheritUnit
|English comment
|Deutscher kommentar
}}

delivers

Possible values of physical units are:
  • m/s - speed
  • km/h - speed
  • A - current
  • N - force/effort
  • Hz - frequney
  • % - percentage
  • V - voltage
  • W - effective power
  • VA - apparent power
  • Vs - magnetic flux
  • 1 - scalar
  • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.
    English comment
    Deutscher kommentar

The template is solely employed via Template:InheritValueTable.