Template:Exists

From railML 3 Wiki
Revision as of 11:36, 13 February 2024 by RailML Coord Documentation (talk | contribs) (Syntax)
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. 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. 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.