User:Azaret/Sandbox/Template:XMLnode/doc
From eRepublik Official Wiki
< User:Azaret | Sandbox | Template:XMLnode
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the User page itself, see User:Azaret/Sandbox/Template:XMLnode.
To view the User page itself, see User:Azaret/Sandbox/Template:XMLnode.
Contents
Usasage
{{User:Azaret/Sandbox/Template:XMLnode|name=name of the node|childs=childs of the node|value=value of the node}}
Variables
- name (mandatory) : Will be the name of the node, eg if you want <root>, write here root.
- value (optional) : Will be the value of the node, you can write here '...' if you have a childnodes that could be repeated.
- childs (optional) : Put here childnodes of the node
Examples
{{User:Azaret/Sandbox/Template:XMLnode |name=countries |value=... |childs={{User:Azaret/Sandbox/Template:XMLnode |name=country |childs={{User:Azaret/Sandbox/Template:XMLnode |name=average-citizen-level |value=The average of citizen level of the country}}{{User:Azaret/Sandbox/Template:XMLnode |name=name |value=The name of the country}}{{User:Azaret/Sandbox/Template:XMLnode |name=regions |value=... |childs={{User:Azaret/Sandbox/Template:XMLnode |name=region |childs={{User:Azaret/Sandbox/Template:XMLnode |name=name |value=The name of the region}}{{User:Azaret/Sandbox/Template:XMLnode |name=id |value=The id of the region}} }} }} }} }}
<countries>
<country>
<average-citizen-level> The average of citizen level of the country </average-citizen-level>
<name> The name of the country </name>
<regions>
</country> <region>
<name> The name of the region </name>
<id> The id of the region </id>
</region> ...
</regions> ...
</countries>