Template:InheritUnit: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Created for use in several RS element documentation sites)
 
No edit summary
Line 1: Line 1:
Possible values are:
<includeonly>Possible values are:
:* {{Enum|m/s}}
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|km/h}}
Line 14: Line 14:
|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 are:
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|A}}
:* {{Enum|N}}
:* {{Enum|Hz}}
:* {{Enum|%}}
:* {{Enum|V}}
:* {{Enum|W}}
:* {{Enum|VA}}
:* {{Enum|Vs}}
:* {{Enum|1}}
:* {{OtherEnum
|notes_en =
|notes_de =
}}
|}
 
<pre>{{InheritUnit
|English comment
|Deutscher kommentar
}}</pre>
 
delivers
 
{|border="1"
|Possible values are:
:* {{Enum|m/s}}
:* {{Enum|km/h}}
:* {{Enum|A}}
:* {{Enum|N}}
:* {{Enum|Hz}}
:* {{Enum|%}}
:* {{Enum|V}}
:* {{Enum|W}}
:* {{Enum|VA}}
:* {{Enum|Vs}}
:* {{Enum|1}}
:* {{OtherEnum
|notes_en = English comment
 
|notes_de = Deutscher kommentar
 
}}
|}
 
The template is solely employed via [[Template:InheritValueTable]].
[[Category:AttributeTemplate]]</noinclude>

Revision as of 18:07, 25 February 2016

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.