Template:Schemaexport: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
Elementnamen isolieren:
Elementnamen isolieren:
</noinclude>{{#vardefine:lElement|{{#explode:{{PAGENAME}}|/|0}}}}<noinclude>
</noinclude>{{#vardefine:lElement|{{#explode:{{PAGENAME}}|/|0}}}}<noinclude>
</noinclude>{{#vardefine:kinder|{{{subschema_slug}}}:{{#ifeq:{{#explode:{{PAGENAME}}|:|2}}|||{{#explode:{{PAGENAME}}|:|1}}:}}{{{element}}}!}}<noinclude>
</noinclude>{{#vardefine:kinder|((+vardefine:{{#var:lElement}}!((showTree!{{#var:lElement}}!}}<noinclude>
</noinclude>{{#vardefine:parents_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{parent}}}}}<noinclude>
</noinclude>{{#vardefine:parents_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{parent}}}}}<noinclude>
</noinclude>{{#vardefine:children_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{children}}}}}<noinclude>
</noinclude>{{#vardefine:children_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{children}}}}}<noinclude>
</noinclude>{{#vardefine:attributes_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{attributes}}}}}<noinclude>
</noinclude>{{#vardefine:attributes_{{{subschema_slug}}}:{{{element}}}/{{{version}}}|{{{attributes}}}}}<noinclude>
</noinclude>{{#vardefine:slug|{{{subschema_slug}}}}}{{#vardefine:subschema|{{{subschema}}}}}{{#vardefine:element|{{{element}}}}}<noinclude>
</noinclude><!--<span style="color:#ffffff">{{listkids|children={{{children}}}}}</span>-->
</noinclude><!--<span style="color:#ffffff">{{listkids|children={{{children}}}}}</span>-->
{|class="wikitable"
{|class="wikitable"
Line 17: Line 18:
|-
|-
|Subschema
|Subschema
|{{scrollbox|1={{{subschema}}}}}
|{{scrollbox|1={{#ifeq:{{{subschema}}}|rtm4railml|Rtm4railml|{{{subschema}}}}}}}
|-
|-
<!--|Multiplicity
<!--|Multiplicity
Line 32: Line 33:
|colspan="2"|<small><sup>*</sup>'''Notice:'''<br>Elements may have different parent elements. As a consequence they may be used in different contexts.<br>Please, consider this as well as a user of this wiki as when developing this documentation further.<br>Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.</small>
|colspan="2"|<small><sup>*</sup>'''Notice:'''<br>Elements may have different parent elements. As a consequence they may be used in different contexts.<br>Please, consider this as well as a user of this wiki as when developing this documentation further.<br>Aspects that are only relevant with respect to one of several parents should be explained exclusively in the documentation of the respective parent element.</small>
|}<noinclude>
|}<noinclude>
</noinclude>{{#ifeq:{{#sub:{{PAGENAME}}|-3}}|{{current}}|{{baum|Zeile=((+vardefine:{{#var:kinder}}))}}}}<noinclude>
</noinclude>{{#ifeq:{{#sub:{{PAGENAME}}|-3}}|{{current}}|{{baum|Zeile={{#var:kinder}}))))}}}}<noinclude>
</noinclude></includeonly>
</noinclude></includeonly>
<noinclude>
<noinclude>
Line 39: Line 40:
[[category:template]]
[[category:template]]
</noinclude>
</noinclude>
{{#var:lElement}}

Latest revision as of 23:02, 12 February 2024


Template to integrate XML-exports automatically.