Template:Exists: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(syntax)
 
Line 1: Line 1:
<includeonly>{{#vardefine:alternativtext|'''This element does not exist in version {{{version}}} within the {{{subschema}}} subschema. It only exists in Version(s) {{versioLink|{{{subschema}}}:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}}}.'''}}
<includeonly>{{#vardefine:alternativtext|'''This element does not exist in version {{{version}}} within the {{{subschema}}} subschema. It only exists in Version(s) {{versioLink|{{{subschema}}}:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}}}.'''}}
{{#vardefine:alternativtext|'''This element does not appear in {{rml|{{{version}}}}} within the ''{{{subschema}}}'' subschema. It is available only in {{rml}} {{versioLink|{{{subschema}}}:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}}}. {{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|There exists an element {{tag|generic|{{{element}}}|ex=1}} that might have replaced it.&#32;}}}}{{#ifeq:{{{subschema}}}|generic|{{#ifexist:CO:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|There exists an element {{tag|CO|{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|ex=1}} that might have preceded it.&#32;}}}}Do not hesitate to contact {{site|https://www.railml.org/en/contact.html|railML.org|inlang=silent}} for further questions.}}'''
{{#vardefine:alternativtext|'''This element does not appear in {{rml|{{{version}}}}} within the ''{{{subschema}}}'' subschema. It is available only in {{rml}} {{versioLink|{{{subschema}}}:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}}}. {{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|There exists an element {{tag|generic|{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|ex=1}} that might have replaced it.&#32;}}}}{{#ifeq:{{{subschema}}}|generic|{{#ifexist:CO:{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|There exists an element {{tag|CO|{{#if:{{{parent|}}}|{{{parent}}}:}}{{{element}}}|ex=1}} that might have preceded it.&#32;}}}}Do not hesitate to contact {{site|https://www.railml.org/en/contact.html|railML.org|inlang=silent}} for further questions.}}'''
{{#ifexist:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}|{{:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}}}|{{#var:alternativtext}}}}</includeonly><noinclude>
{{#ifexist:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}|{{:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}}}|{{#var:alternativtext}}}}</includeonly><noinclude>
Template to check if an element exists in a certain version. I yes, the Syntax will be displayed. Otherwise a notice will appear.
Template to check if an element exists in a certain version. I yes, the Syntax will be displayed. Otherwise a notice will appear.

Latest revision as of 16:16, 19 June 2024

Template to check if an element exists in a certain version. I yes, the Syntax will be displayed. Otherwise a notice will appear.

This template is designed to serve template:robot.

Example

{{exists|subschema=RS|element=owner|version=3.1}}

delivers:


This element does not appear in railML® 3.1 within the RS subschema. It is available only in railML® 3.2. Do not hesitate to contact railML.org for further questions.

{{exists|subschema=RS|element=owner|version=3.2}}

delivers:


Autoexport from the XML-Schema for element RS:owner of railML® version 3.2
Documentation

The reference to the organisationalUnit, which owns the vehicle. The designator contains any register ID as per the owner. This may be the national railway vehicle register. The name is any name of the vehicle was given from the owner.

Subschema

rollingstock

Parents*
Children

designator (0..*), name (0..*)

Attributes:

  • class: The class name as used by the organizational unit. (optional; xs:string),

  • refersTo: The reference to the organizational unit. (obligatory; xs:string; patterns: (urn:uuid:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\})
*Notice:
Elements may have different parent elements. As a consequence they may be used in different contexts.
Please, consider this as well as a user of this wiki as when developing this documentation further.
Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.