Difference between revisions of "Template:2da documentation"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(another set of table formatting templates)
 
(whoops. row -> column)
Line 13: Line 13:
 
<pre>
 
<pre>
 
{{2da start}}
 
{{2da start}}
{{2da row| LABEL | string | name of the model }}
+
{{2da column| LABEL | string | name of the model }}
{{2da row| bHasAppearAnim | int | 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation}}
+
{{2da column| bHasAppearAnim | int | 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation}}
 
{{2da end}}
 
{{2da end}}
 
</pre>
 
</pre>
Line 21: Line 21:
  
 
{{2da start}}
 
{{2da start}}
{{2da row| LABEL | string | name of the model }}
+
{{2da column| LABEL | string | name of the model }}
{{2da row| bHasAppearAnim | int | 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation}}
+
{{2da column| bHasAppearAnim | int | 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation}}
 
{{2da end}}
 
{{2da end}}
  
Line 29: Line 29:
 
<pre>
 
<pre>
 
{{2da start}}
 
{{2da start}}
{{2da row
+
{{2da column
 
|name= LABEL
 
|name= LABEL
 
|type= string
 
|type= string
 
|description= name of the model
 
|description= name of the model
 
}}
 
}}
{{2da row
+
{{2da column
 
|name= bHasAppearAnim
 
|name= bHasAppearAnim
 
|type= int
 
|type= int
Line 45: Line 45:
  
 
{{2da start}}
 
{{2da start}}
{{2da row
+
{{2da column
 
|name= LABEL
 
|name= LABEL
 
|type= string
 
|type= string
 
|description= name of the model
 
|description= name of the model
 
}}
 
}}
{{2da row
+
{{2da column
 
|name= bHasAppearAnim
 
|name= bHasAppearAnim
 
|type= int
 
|type= int

Revision as of 02:04, 18 July 2009

This template set includes the following templates:

It's intended to allow quick and easy creation of 2DA description tables for documentation purposes. Note that although the 2da column template is called "column", it actually produces rows in the formatted table. this is due to the fact that the Excel source documents for 2DAs are organized by column.

You should omit the "ID" column that all 2DAs have by default, this is added automatically by the 2da start template.

For exmample, the following set of templates:

{{2da start}}
{{2da column| LABEL | string | name of the model }}
{{2da column| bHasAppearAnim | int | 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation}}
{{2da end}}

Produces:

Column Type Description
ID int A number that uniquely identifies the entry (unless creating an M2DA override). ID numbers are listed from smallest to highest within a given file but do not need to be consecutive.
LABEL string name of the model
bHasAppearAnim int 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation

Alternately, you could use named parameters like so:

{{2da start}}
{{2da column
|name= LABEL
|type= string
|description= name of the model
}}
{{2da column
|name= bHasAppearAnim
|type= int
|description= 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation
}}
{{2da end}}

Produces:

Column Type Description
ID int A number that uniquely identifies the entry (unless creating an M2DA override). ID numbers are listed from smallest to highest within a given file but do not need to be consecutive.
LABEL string name of the model
bHasAppearAnim int 0: Creature has no default appear animation. 1: Creature DOES have a default appear animation