Template:XML Reference
This template can be used to reference specific XML files and their contents.
| Parameter | Result | Sub-unit |
|---|---|---|
object
|
ObjectBlueprints.xml
|
object name |
population or pop
|
PopulationTables.xml
|
population name |
encountertable or encounter
|
EncounterTables.xml
|
encountertable name |
body
|
Bodies.xml
|
anatomy name |
conversation or convo
|
Conversations.xml
|
conversation ID |
faction
|
Factions.xml
|
faction name |
quest
|
Quests.xml
|
quest name |
Usage
If you wanted to create a citation for ObjectBlueprints.xml:
{{XML Reference
|object
}}{{#switch:object
| object = {{#tag: ref | ObjectBlueprints.xml | name=object
| population = {{#tag: ref | PopulationTables.xml | name=object
| pop= {{#tag: ref | PopulationTables.xml | name=object
| encountertable = {{#tag: ref | EncounterTables.xml | name=object
| encounter = {{#tag: ref | EncounterTables.xml | name=object
| body = {{#tag: ref | Bodies.xml | name=object
| conversation = {{#tag: ref | Conversations.xml | name=object
| convo = {{#tag: ref | Conversations.xml | name=object
| faction = {{#tag: ref | Factions.xml | name=object
| quest = [1]
When this template is used, a name for the citation will automatically be assigned, and will be equivalent to the parameter used. In this case, the parameter is object, so the citation can be used again without creating a new one by utilizing <ref name="object"/>
If you want to reference an XML file's sub-unit, such as a specific encountertable within EncounterTables.xml:
{{XML Reference
|encountertable
|EncounterTableName
}}{{#switch:encountertable
| object = {{#tag: ref | ObjectBlueprints.xml, object name EncounterTableName
| name=EncounterTableName
| population = {{#tag: ref | PopulationTables.xml, population name EncounterTableName
| name=EncounterTableName
| pop= {{#tag: ref | PopulationTables.xml, population name EncounterTableName
| name=EncounterTableName
| encountertable = {{#tag: ref | EncounterTables.xml, encountertable name EncounterTableName
| name=EncounterTableName
| encounter = {{#tag: ref | EncounterTables.xml, encountertable name EncounterTableName
| name=EncounterTableName
| body = {{#tag: ref | Bodies.xml, anatomy name EncounterTableName
| name=EncounterTableName
| conversation = {{#tag: ref | Conversations.xml, conversation ID EncounterTableName
| name=EncounterTableName
| convo = {{#tag: ref | Conversations.xml, conversation ID EncounterTableName
| name=EncounterTableName
| faction = {{#tag: ref | Factions.xml, faction name EncounterTableName
| name=EncounterTableName
| quest = [2]