Template:Exists: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#vardefine:alternativtext|'''This element does not exist in version {{{version}}}. It only exists in Version(s) {{versioLink|{{{subschema}}}:{{{element}}}{{#if:{{{parent|}}}|_{{{parent}}}}}}}.'''}}{{#ifexist:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}|{{:{{duplicate|subschema={{{subschema}}}|element={{{element}}}|parent={{{parent|}}}}}/{{{version}}}}}|{{#var:alternativtext}}}}</includeonly><noinclude> | ||
Template to check if an element exists in a certain version. I yes, the Syntax will be displayed. Otherwise a notice will appear. | Template to check if an element exists in a certain version. I yes, the Syntax will be displayed. Otherwise a notice will appear. | ||
Revision as of 10:05, 1 June 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}}
delivers:
This element does not exist in version 3.1. It only exists in Version(s) .
{{exists|subschema=CO|element=hasName|version=3.2}}
delivers:
This element does not exist in version 3.2. It only exists in Version(s) .