Template:Exists: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#vardefine:alternativtext|'''This element does not appear in {{rml|{{{version}}}}}. It is available only in {{rml}} {{versioLink|{{{subschema}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}. | {{#vardefine:alternativtext|'''This element does not appear in {{rml|{{{version}}}}}. It is available only in {{rml}} {{versioLink|{{{subschema}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}. | ||
{{#ifeq:{{ | {{#ifeq:{{{subschema}}}|common|{{#ifexist:generic:{{{element}}}|There exists an element {{tag|generic|{{{element}}}}} that might have replaced it.}}}} | ||
Do not hesitate to contact {{site|https://www.railml.org/en/contact.html|'''railML.org'''|inlang=silent}}''' for further questions.'''}} | Do not hesitate to contact {{site|https://www.railml.org/en/contact.html|'''railML.org'''|inlang=silent}}''' for further questions.'''}} |
Revision as of 23:39, 12 February 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 appear in railML® 3.1. It is available only in railML® .
Do not hesitate to contact railML.org for further questions.
{{exists|subschema=CO|element=hasName|version=3.2}}
delivers:
This element does not appear in railML® 3.2. It is available only in railML® .
Do not hesitate to contact railML.org for further questions.