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. It is available only in railML® 3.2. Do not hesitate to contact railML.org for further questions.

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

delivers:


Autoexport from the XML-Schema for element CO:hasName of railML® version 3.2
Documentation name of the signalBox (interlocking) and description dependent on the language
Subschema common
Parents* signalBox
Children None
Attributes:
  • name: should be interpreted in its elements' context (e.g. signal/name, vehicle/name) (obligatory; xs:string),

  • description: should be interpreted in its elements' context, substantiates the name (optional; xs:string),

*Notice:
Elements may have different parent elements. As a consequence they may be used in different contexts.
Please, consider this as well as a user of this wiki as when developing this documentation further.
Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.