Difference between revisions of "Template:Variable table row"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (add named parameters, for those who swing that way) |
m (Updating link) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| {{{name|{{{1|}}}}}} | | {{{name|{{{1|}}}}}} | ||
− | | align="center" | [[{{{type|{{{2|}}}}}}]] | + | | align="center" | {{#if:{{{type|{{{2|}}}}}}|[[{{{type|{{{2|}}}}}} keyword|{{{type|{{{2|}}}}}}]]|}} |
− | | {{{default|{{{3|}}}}}} | + | | align="center" | {{{default|{{{3|}}}}}} |
| {{{description|{{{4|}}}}}} | | {{{description|{{{4|}}}}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Variable table documentation}} | {{Variable table documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 00:27, 3 August 2011
This template set includes the following templates:
- Template:Variable table start
- Template:Variable table row
- Template:Variable table end
It's intended to allow uniform formatting of variable tables for documentation purposes.
For exmample, the following set of templates:
{{Variable table start}} {{Variable table row| AREA_WORLD_MAP_ENABLED | int | | If this is set to 1, the party can switch to travel on the world map at any point within the area. }} {{Variable table row| ENTERED_FOR_THE_FIRST_TIME | int | FALSE | If false, set true when an area is first entered and exploration XP is awarded.}} {{Variable table end}}
Produces:
Variable name | Type | Default | Description |
---|---|---|---|
AREA_WORLD_MAP_ENABLED | int | If this is set to 1, the party can switch to travel on the world map at any point within the area. | |
ENTERED_FOR_THE_FIRST_TIME | int | FALSE | If false, set true when an area is first entered and exploration XP is awarded. |
Alternately, you could use named parameters like so:
{{Variable table start}} {{Variable table row |name= AREA_WORLD_MAP_ENABLED |type= int |default= |description= If this is set to 1, the party can switch to travel on the world map at any point within the area. }} {{Variable table row |name= ENTERED_FOR_THE_FIRST_TIME |type= int |default= FALSE |description= If false, set true when an area is first entered and exploration XP is awarded. }} {{Variable table end}}
Produces:
Variable name | Type | Default | Description |
---|---|---|---|
AREA_WORLD_MAP_ENABLED | int | If this is set to 1, the party can switch to travel on the world map at any point within the area. | |
ENTERED_FOR_THE_FIRST_TIME | int | FALSE | If false, set true when an area is first entered and exploration XP is awarded. |
Here's a blank set of templates to copy and paste:
{{Variable table start}} {{Variable table row |name= |type= |default= |description= }} {{Variable table end}}