Template:InheritOwner: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Created for use in several IS element documentation sites)
 
(Documentation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
* {{Attr|ownerName}} <br /> {{Ann | {{{ownerName|}}} }}
<includeonly>* {{Attr|ownerName}} {{AddAnn|{{{ownerName|}}}|{{{ownerName_de|}}} }}


* {{Attr|uic-no}} <br /> {{Ann | {{{uic-no|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
* {{Attr|uic-no}} {{AddAnn|{{{uic-no|}}}|{{{uic-no_de|}}} }}</includeonly><noinclude>
==Usage==
This template lists the attributes ''ownerChange'' and ''uic-no'' and allows for comments on both attributes in English as well as in German.
===Arguments===
The template has four optional arguments:
*ownerName: English comment on ownerName
*ownerName_de: German comment on ownerName
*uic-no: English comment on uic-no
*uic-no_de: German comment on uic-no
===Dependencies===
the template builds on [[Template:Attr]] and [[Template:AddAnn]]. No other templates depend on it.
==Examples==
<pre>{{InheritOwner}}</pre>
 
delivers
 
{|border="1"
|
* {{Attr|ownerName}} {{AddAnn|| }}
 
* {{Attr|uic-no}} {{AddAnn|| }}
|}
 
<pre>{{InheritOwner
|ownerName=English comment on ownerName
|ownerName_de=German comment on ownerName
|uic-no=English comment on uic-no
|uic-no_de=German comment on uic-no
}}</pre>
 
delivers
 
{|border="1"
|
* {{Attr|ownerName}} {{AddAnn|English comment on ownerName|German comment on ownerName }}
 
* {{Attr|uic-no}} {{AddAnn|English comment on uic-no|German comment on uic-no }}
|}
 
The template is employed by [[IS:owner]] and [[IS:ownerChange]].
 
[[Category:AttributeTemplate]]</noinclude>

Latest revision as of 17:00, 22 February 2016

Usage

This template lists the attributes ownerChange and uic-no and allows for comments on both attributes in English as well as in German.

Arguments

The template has four optional arguments:

  • ownerName: English comment on ownerName
  • ownerName_de: German comment on ownerName
  • uic-no: English comment on uic-no
  • uic-no_de: German comment on uic-no

Dependencies

the template builds on Template:Attr and Template:AddAnn. No other templates depend on it.

Examples

{{InheritOwner}}

delivers

  • ownerName
  • uic-no
{{InheritOwner
|ownerName=English comment on ownerName
|ownerName_de=German comment on ownerName
|uic-no=English comment on uic-no
|uic-no_de=German comment on uic-no
}}

delivers

  • ownerName
    English comment on ownerName
    German comment on ownerName
  • uic-no
    English comment on uic-no
    German comment on uic-no

The template is employed by IS:owner and IS:ownerChange.