Template:Tree: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
(Created page with "<includeonly>{{tag|{{{1}}}|{{{2|}}}|attr={{{attr|}}}|@={{{@|}}}|wiki={{{wiki|}}}|ex={{{ex|}}}}}</includeonly><noinclude>==Usage== Creates Tags without parent; for use in Dev...") |
|||
Line 9: | Line 9: | ||
**attr: an attribute. If this argument is used, the link will lead directly to a certain attribute of the target element | **attr: an attribute. If this argument is used, the link will lead directly to a certain attribute of the target element | ||
==Example== | ==Example== | ||
<pre>{{IS | <pre>{{tree|IS|name|balise}}</pre> | ||
produces | produces | ||
{{IS | {{tree|IS|name|balise}} | ||
<pre>{{IS | <pre>{{tree|IS|name|balise|@=name}}</pre> | ||
produces | produces | ||
{{IS | {{tree|IS|name|balise|@=name}} | ||
[[Category:LinkTemplate]] | [[Category:LinkTemplate]] | ||
{{interwiki}} | {{interwiki}} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:02, 5 March 2021
Usage
Creates Tags without parent; for use in Dev:XMLtree
Arguments
This template has three arguments:
- obligatory
- 1: the subschema
- 2: the element name
- optional
- attr: an attribute. If this argument is used, the link will lead directly to a certain attribute of the target element
Example
{{tree|IS|name|balise}}
produces
<name>
{{tree|IS|name|balise|@=name}}
produces
<name>@name