Template:InheritRefSequence: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(+documentation)
(linkfix)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ElementDocu|
<includeonly>{{#vardefine:context|{{{contextLink|{{doc|IS|track}}}}}}}{{ElementDocu|
elementName = {{{elementName|FIXME}}}
elementName = {{{elementName|{{PAGENAME}}}}}


|parent = {{{parentLink|FIXME}}}
|parent = {{{parentLink|FIXME}}}
 
|childs={{#if:{{{childs|}}}|{{{childs}}}|''None''}}
|minocc={{{minocc|1}}}
|maxocc={{{maxocc|1}}}
|intro={{{intro|}}}
|depr={{{depr|}}}
|semantics =  
|semantics =  
The element {{{parentLink|FIXME}}} allows for grouping of {{{contextLink|FIXME}}}s which are referenced using {{{selfLink|FIXME}}}. {{AddAnn|{{{semantics_en|}}}|{{{semantics_de|}}} }}
The element {{{parentLink|FIXME}}} allows for grouping of {{#var:context}}s which are referenced using {{{selfLink|FIXME}}}. {{AddAnn|{{{semantics_en|}}}|{{{semantics_de|}}} }}


|inheritedAttributes =
|inheritedAttributes =
* {{Attr|sequence}}: This allows for sorting the referenced {{{contextLink|FIXME}}}s. {{AddAnn|{{{sequence|}}}|{{{sequence_de|}}} }}
* {{Attr|sequence}}: This allows for sorting the referenced {{#var:context}}s. {{AddAnn|{{{sequence|}}}|{{{sequence_de|}}} }}


{{InheritRefAny
{{InheritRefAny
|contextLink = {{{contextLink|FIXME}}}
|contextLink = {{#var:context}}
|ref = {{{ref|}}}
|ref = {{{ref|}}}
|ref_de = {{{ref_de|}}}
|ref_de = {{{ref_de|}}}
Line 17: Line 21:
|anyAttribute_de = {{{anyAttribute_de|}}}
|anyAttribute_de = {{{anyAttribute_de|}}}
}}
}}
 
|ownAttributes={{#if:{{{ownAttributes|}}}|{{{ownAttributes}}}|''None''}}
|constraints =
|constraints =
* {{Attr|sequence}} {{RailMLType|tPositiveCounter}}, optional <br/> If no {{Attr|sequence}} is provided, the sequence of the referenced {{{contextLink|FIXME}}}s shall be assumed as "arbitrary" or "undefined". In no case the sequence of the XML elements in the XML file shall matter. <br/> Either all or none of the {{{selfLink|FIXME}}} elements in the current {{{parentLink|FIXME}}} element shall carry {{Attr|sequence}} attributes. <br/> The referenced {{{contextLink|FIXME}}} with the lowest {{Attr|sequence}} value is interpreted as the first element of the current {{{parentLink|FIXME}}}. <br/> Each {{Attr|sequence}} value shall only be used once within the current {{{parentLink|FIXME}}}. {{AddAnn|{{{constraints_en|}}}|{{{constraints_de|}}} }}
* {{Attr|sequence}} {{RailMLType|tPositiveCounter}}, optional <br/> If no {{Attr|sequence}} is provided, the sequence of the referenced {{#var:context}}s shall be assumed as "arbitrary" or "undefined". In no case the sequence of the XML elements in the XML file shall matter. <br/> Either all or none of the {{{selfLink|FIXME}}} elements in the current {{{parentLink|FIXME}}} element shall carry {{Attr|sequence}} attributes. <br/> The referenced {{#var:context}} with the lowest {{Attr|sequence}} value is interpreted as the first element of the current {{{parentLink|FIXME}}}. <br/> Each {{Attr|sequence}} value shall only be used once within the current {{{parentLink|FIXME}}}. {{AddAnn|{{{constraints_en|}}}|{{{constraints_de|}}} }}


* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory
* {{Attr|ref}} {{RailMLType|tGenericRef}}, mandatory
}}</includeonly><noinclude>{{TemplateDocu}}</noinclude>
}}</includeonly><noinclude>{{TemplateDocu}}</noinclude>

Latest revision as of 14:32, 24 October 2022

Usage

This is an Element Template. Element templates are intended to avoid routine work in railML® element documentation. These templates are very specific and are therefore documented uniformely by Template:TemplateDocu. They are collected in Category:Element Template and are based on Template:ElementDocu. They represent Template:ElementDoku with specific values and hand all other parameters through to Template:ElementDoku. If you want to use or handle an Element Template, you have to examine the code to find out, which arguments are set, and you have to be careful, because occationally arguments will be renamed, so that the use of argument names of Template ElementDoku may cause errors.

Arguments

As this is a bulk documentation, we do not explain the specific arguments of element templates.

Dependencies

As this is a bulk documentation, we do not explain the specific dependencies of element templates. You can find out, which other templates the current template supports by following this link. You can find out easily, which other templates the current template employs, as templates are included via {{doubble braces}}.

Example

As this is a bulk documentation, we do not offer specific examples of element templates. You can find in the field examples by following this link.