Template:Exists

From railML 3 Wiki
Revision as of 17:39, 16 June 2021 by RailML Coord Documentation (talk | contribs) (Markupproblem Fettschrift)
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® '. 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.