Template:XML Reference: Difference between revisions
Jump to navigation
Jump to search
m (recategorize) |
(Added Template:References to "see also" section) |
||
Line 83: | Line 83: | ||
== See Also == | == See Also == | ||
* [[Template:References]] | |||
* [[Template:File Reference]] | * [[Template:File Reference]] | ||
* [[Template:Code Reference]] | * [[Template:Code Reference]] |
Latest revision as of 20:59, 5 June 2022
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 |
world
|
Worlds.xml
|
cell name |
zonetemplate or zone
|
ZoneTemplates.xml
|
zonetemplate name |
Usage
If you wanted to create a citation for ObjectBlueprints.xml
:
{{XML Reference |object }}
When this template is used, a name is automatically assigned to the citation created so it may be cited again. When no sub-unit is specified, the name is equivalent to the parameter used; thus, the above example can be cited again using <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 }}
When a sub-unit is specified, the citation name will be equivalent to the name of the sub-unit. Thus, the above example can be cited again using <ref name="EncounterTableName"/>