Template:2da documentation

From Dragon Age Toolset Wiki
Revision as of 01:59, 18 July 2009 by BryanDerksen (Talk | contribs) (another set of table formatting templates)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 row| 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 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.

Template:2da row Template:2da row

Alternately, you could use named parameters like so:

{{2da start}}
{{2da row
|name= LABEL
|type= string
|description= name of the model
}}
{{2da row
|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.

Template:2da row Template:2da row