Template:Exists: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifexist:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}|{{:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}}}|'''This element does not exist in version {{{version}}}. It only exists in Version(s) {{versionen|{{{subschema}}}:{{{elemnt}}}{{#if:{{{parent}}}|_{{{parent}}}}}}}.'''}}
<includeonly>{{#ifexist:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}|{{:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}}}|'''This element does not exist in version {{{version}}}. It only exists in Version(s) {{versionen|{{{subschema}}}:{{{element}}}{{#if:{{{parent}}}|_{{{parent}}}}}}}.'''}}


{{{subschema}}}:{{{element}}}{{#if:{{{parent}}}|_{{{parent}}}}}</includeonly><noinclude>
{{{subschema}}}:{{{element}}}{{#if:{{{parent}}}|_{{{parent}}}}}</includeonly><noinclude>

Revision as of 17:37, 28 May 2021

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}}

liefert:

This element does not exist in version 3.1. It only exists in Version(s) .

CO:hasName_{{{parent}}}