Template:Exists

From railML 3 Wiki
Jump to navigation Jump to search

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 within the CO subschema. It is available only in railML® . There exists an element <generic:hasName> that might have replaced it. 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 within the CO subschema. It is available only in railML® . There exists an element <generic:hasName> that might have replaced it. Do not hesitate to contact railML.org for further questions.