Template:InheritUnit: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Undocumented enumeration items)
m (remove warning)
Line 1: Line 1:
<includeonly>Possible values are:
<includeonly>Possible values of physical units 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}}
Line 30: Line 29:


{|border="1"
{|border="1"
|Possible values are:
|Possible values of physical units are:
:* {{Enum|m/s}}
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|km/h}}
Line 56: Line 55:


{|border="1"
{|border="1"
|Possible values are:
|Possible values of physical units are:
:* {{Enum|m/s}}
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|km/h}}

Revision as of 09:21, 14 September 2020

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
  • 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 of physical units 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.