Format for new XML pages: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 12: Line 12:
{|align="right"
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|[[Civ4 XML Reference|Back to XML Reference]]
|}<br><br>
|}<br>
<font color=red>This page is missing information.
<font color=red>This page is missing information.
Do not remove this notice until it is complete.</font>
Do not remove this notice until it is complete.</font>
Line 19: Line 19:




==Header Tags==
==Tags==
===Headers===


These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
Line 36: Line 37:




==Prerequisite Tags==
===Prerequisites===


These tags ''must'' be included when writing new entries, or the game will crash or otherwise malfunction.
These tags ''must'' be included when writing new entries, or the game will crash or otherwise malfunction.
Line 53: Line 54:




==Text Tags==
===Text===


{| border="1" cellpadding="3" cellspacing="0"
{| border="1" cellpadding="3" cellspacing="0"
Line 68: Line 69:




==Integer==
===Integers===


All of these tags have numerical value.  Sometimes, it can be negative, usually not.
All of these tags have numerical value.  Sometimes, it can be negative, usually not.
Line 85: Line 86:




==Boolean==
===Boolean===


All of these can either be 1 (on, or true) or 0 (off, or false).  Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
All of these can either be 1 (on, or true) or 0 (off, or false).  Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
Line 102: Line 103:




==List (Multi-line) Tags==
===Lists (Multi-line)===


All List tags consist of an opening/closing tag, which is shown here, then each entry within it as another tag with the same name as the parent tag, minus the "s".
All List tags consist of an opening/closing tag, which is shown here, then each entry within it as another tag with the same name as the parent tag, minus the "s".
Line 119: Line 120:




==Art Tags==
===Art===


These tags are directly related to the rendering of art for the entry.
These tags are directly related to the rendering of art for the entry.
Line 136: Line 137:




=Example=
==Example==
  <code example here>
  <code example here>
     <blah>
     <blah>

Revision as of 07:16, 13 May 2009

Back to XML Reference

Just copy & paste the below into any new XML reference page to use as a starting point.

Please remember, list your tags first by tag type as indicated below, and then alphabetically. This is a reference site, and not everyone is familiar yet with the sometimes confusing order Firaxis gave us for the tags.

{| align="left"
|[[(name of previous page)|Previous article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}<br>
<font color=red>This page is missing information.
Do not remove this notice until it is complete.</font>

Write a summary here of what the file is used for.


==Tags==
===Headers===

These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Prerequisites===

These tags ''must'' be included when writing new entries, or the game will crash or otherwise malfunction.

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Text===

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Integers===

All of these tags have numerical value.  Sometimes, it can be negative, usually not.

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Boolean===

All of these can either be 1 (on, or true) or 0 (off, or false).  Be careful, as you can wind up with a double-negative, which the game will interpret as "True".

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Lists (Multi-line)===

All List tags consist of an opening/closing tag, which is shown here, then each entry within it as another tag with the same name as the parent tag, minus the "s".

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


===Art===

These tags are directly related to the rendering of art for the entry.

{| border="1" cellpadding="3" cellspacing="0"
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
|-
!Tag name
|enter text here
|-
!Tag name
|enter text here
|}


==Example==
 <code example here>
    <blah>
    <blih>
    <bluh>
 <close>
{| align="left"
|[[(name of next page)|Next article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}