Format for new XML pages
From Civilization Modding Wiki
Jump to navigationJump to search
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><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. ==Header Tags== 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 |} ==Prerequisite Tags== 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 Tags== {| 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 |} ==Integer== 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 |} ==List (Multi-line) Tags== 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 Tags== 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]] |}