Template:InheritUnit: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
m (remove warning)
mNo edit summary
 
Line 1: Line 1:
<includeonly>Possible values of physical units 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|}}}
Line 30: Line 30:
{|border="1"
{|border="1"
|Possible values of physical units are:
|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 =  
|notes_en =  
Line 56: Line 56:
{|border="1"
{|border="1"
|Possible values of physical units are:
|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 = English comment
|notes_en = English comment

Latest revision as of 08: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.