Template:InheritUnit: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Created for use in several RS element documentation sites)
 
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Possible values are:
<includeonly>Possible values of physical units are:
:* {{Enum|m/s}}
:* {{Enum|m/s}} - speed
:* {{Enum|km/h}}
:* {{Enum|km/h}} - speed
:* {{Enum|A}}
:* {{Enum|A}} - current
:* {{Enum|N}}
:* {{Enum|N}} - force/effort
:* {{Enum|Hz}}
:* {{Enum|Hz}} - frequney
:* {{Enum|%}}
:* {{Enum|%}} - percentage
:* {{Enum|V}}
:* {{Enum|V}} - voltage
:* {{Enum|W}}
:* {{Enum|W}} - effective power
:* {{Enum|VA}}
:* {{Enum|VA}} - apparent power
:* {{Enum|Vs}}
:* {{Enum|Vs}} - magnetic flux
:* {{Enum|1}}
:* {{Enum|1}} - scalar
:* {{OtherEnum
:* {{OtherEnum
|notes_en = {{{1|}}}
|notes_en = {{{1|}}}
|notes_de = {{{2|}}}
|notes_de = {{{2|}}}
}}<noinclude>[[Category:AttributeTemplate]]</noinclude>
}}</includeonly><noinclude>
==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:
#English comment
#German comment
=== Dependencies ===
The template  depends on [[Template:Enum]] and [[Template:OtherEnum]]. [[Template:InheritValueTable]] builds on it.
==Examples==
<pre>{{InheritUnit}}</pre>
 
delivers
 
{|border="1"
|Possible values of physical units are:
:* {{Enum|m/s}} - speed
:* {{Enum|km/h}} - speed
:* {{Enum|A}} - current
:* {{Enum|N}} - force/effort
:* {{Enum|Hz}} - frequney
:* {{Enum|%}} - percentage
:* {{Enum|V}} - voltage
:* {{Enum|W}} - effective power
:* {{Enum|VA}} - apparent power
:* {{Enum|Vs}} - magnetic flux
:* {{Enum|1}} - scalar
:* {{OtherEnum
|notes_en =
|notes_de =
}}
|}
 
<pre>{{InheritUnit
|English comment
|Deutscher kommentar
}}</pre>
 
delivers
 
{|border="1"
|Possible values of physical units are:
:* {{Enum|m/s}} - speed
:* {{Enum|km/h}} - speed
:* {{Enum|A}} - current
:* {{Enum|N}} - force/effort
:* {{Enum|Hz}} - frequney
:* {{Enum|%}} - percentage
:* {{Enum|V}} - voltage
:* {{Enum|W}} - effective power
:* {{Enum|VA}} - apparent power
:* {{Enum|Vs}} - magnetic flux
:* {{Enum|1}} - scalar
:* {{OtherEnum
|notes_en = English comment
 
|notes_de = Deutscher kommentar
 
}}
|}
 
The template is solely employed via [[Template:InheritValueTable]].
[[Category:AttributeTemplate]]</noinclude>

Latest revision as of 09:28, 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 - 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.