Template:InheritBase: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
(Parameter corrected)
m (1 revision imported: http→https)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* {{Attr|xml:base}}: This provides outsourcing of the {{{selfLink|FIXME}}} element with [http://www.w3.org/TR/xinclude/ xi:include] mechanism. [[CO:outsourcing | How to use it?]] {{AddAnn|{{{base|}}}|{{{base_de|}}} }} <noinclude>[[Category:AttributeTemplate]]</noinclude>
 
<includeonly>* {{Attr|xml:base}}: This provides outsourcing of the {{{selfLink|FIXME}}} element with {{external|https://www.w3.org/TR/xinclude|xi:include mechanism}}. [[CO:outsourcing | How to use it?]] {{AddAnn|{{{base|}}}|{{{base_de|}}} }}</includeonly><noinclude>
==Usage==
This template provides a list element ''xml:base''. It is used for the list of inherited attributes of an element, and therefore only occurs within the attribunte ''inheritedAttributes'' of [[template:ElementDocu]].
===Arguments===
The template has one obligatory and two optional arguments:
*obligatory:
**selfLink: The name of the Element — usually the article name
*optional:
**base: An English comment on the xml base
**base_de: A German comment on the xml base
===Dependencies===
This template depends on [[Template:Attr]] and [[Template:AddAnn]]. It is used in the context of [[Template:ElementDocu]], but they do not depend on each other.
==Examples==
<nowiki>{{InheritBase|selfLink=[[TT:timetable|timetable]]}}</nowiki>
 
delivers
 
* {{Attr|xml:base}}: This provides outsourcing of the [[TT:timetable|timetable]] element with {{external|https://www.w3.org/TR/xinclude|xi:include mechanism}}. [[CO:outsourcing | How to use it?]] {{AddAnn|| }}
 
<nowiki>{{InheritBase|selfLink=[[TT:timetable|timetable]]|base=An English comment.|base_de=Ein deutscher Kommentar.}}</nowiki>
 
delivers
 
* {{Attr|xml:base}}: This provides outsourcing of the [[TT:timetable|timetable]] element with {{external|https://www.w3.org/TR/xinclude|xi:include mechanism}}. [[CO:outsourcing | How to use it?]] {{AddAnn|An English comment.|Ein deutscher Kommentar. }}
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 16:21, 15 February 2021


Usage

This template provides a list element xml:base. It is used for the list of inherited attributes of an element, and therefore only occurs within the attribunte inheritedAttributes of template:ElementDocu.

Arguments

The template has one obligatory and two optional arguments:

  • obligatory:
    • selfLink: The name of the Element — usually the article name
  • optional:
    • base: An English comment on the xml base
    • base_de: A German comment on the xml base

Dependencies

This template depends on Template:Attr and Template:AddAnn. It is used in the context of Template:ElementDocu, but they do not depend on each other.

Examples

{{InheritBase|selfLink=[[TT:timetable|timetable]]}}

delivers

{{InheritBase|selfLink=[[TT:timetable|timetable]]|base=An English comment.|base_de=Ein deutscher Kommentar.}}

delivers