Template:InheritUnit: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
m (Documentation)
(Undocumented enumeration items)
Line 1: Line 1:
<includeonly>Possible values are:
<includeonly>Possible values are:
{{missing information|user=[[User:Ferri Leberl|Ferri Leberl]] ([[User talk:Ferri Leberl|talk]]) 16:42, 25 April 2018 (CEST)|topic=the semantics of the enumeration items}}
:* {{Enum|m/s}}
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|km/h}}

Revision as of 16:42, 25 April 2018

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 are:
  • m/s
  • km/h
  • A
  • N
  • Hz
  • %
  • V
  • W
  • VA
  • Vs
  • 1
  • 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 are:
  • m/s
  • km/h
  • A
  • N
  • Hz
  • %
  • V
  • W
  • VA
  • Vs
  • 1
  • 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.