Template:Exists: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Tag: Reverted
(Undo revision 9484 by RailML Coord Documentation (talk))
Tag: Undo
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}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}.'''}}<!--
{{#vardefine:alternativtext|'''This element does not appear in {{rml|{{{version}}}}} within the ''{{{subschema}}}'' subschema. It is available only in {{rml}} {{versioLink|{{{subschema}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}.''' {{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{{element}}}|There exists an element {{tag|generic|{{{element}}}|ex=1}} that might have replaced it.&#32;}}}}{{#ifeq:{{{subschema}}}|generic|{{#ifexist:CO:{{{element}}}|There exists an element {{tag|CO|{{{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}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}.''' {{#ifeq:{{{subschema}}}|CO|{{#ifexist:generic:{{{element}}}|There exists an element {{tag|generic|{{{element}}}|ex=1}} that might have replaced it.&#32;}}}}{{#ifeq:{{{subschema}}}|generic|{{#ifexist:CO:{{{element}}}|There exists an element {{tag|CO|{{{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>

Revision as of 14:31, 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=CO|element=hasName|version=3.1}}

delivers:


This element does not exist in version 3.1 within the CO subschema. It only exists in Version(s) .

{{exists|subschema=CO|element=hasName|version=3.2}}

delivers:


This element does not exist in version 3.2 within the CO subschema. It only exists in Version(s) .