Difference between revisions of "Template:Constant table row"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Updating link)
m (Adding smarter alignment)
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
 
| {{{name|{{{1|}}}}}}
 
| {{{name|{{{1|}}}}}}
| align="center" | [[{{{type|{{{2|}}}}}} keyword|{{{type|{{{2|}}}}}}]]
+
| [[{{{type|{{{2|}}}}}} keyword|{{{type|{{{2|}}}}}}]]
| align="center" | {{{value|{{{3|}}}}}}
+
|{{#switch: {{{type|}}}  | int  = align="right" {{!}}  | float = align="right" {{!}}  | align="left" {{!}} }}{{#if:{{{|}}{{{value|{{{3|}}}}}}
 
| {{{description|{{{4|}}}}}}
 
| {{{description|{{{4|}}}}}}
 
{{#if:{{{sourcefile|}}}|{{!}} align="center" {{!}} {{{sourcefile}}} | }}
 
{{#if:{{{sourcefile|}}}|{{!}} align="center" {{!}} {{{sourcefile}}} | }}

Revision as of 12:42, 26 October 2014

This set of templates are used for formatting tables of constants.

Usage

{{Constant table start
|sourcefile    = script.ldf
|sourcemodule  =
}}
{{Constant table row
|name         = SAMPLE_FIRST_CONSTANT
|type         = int
|value        = 9
|description  = 
|sourcefile   = script.ldf
|sourcemodule =
}}
{{Constant table row
|name         = SAMPLE_SECOND_CONSTANT
|type         = int
|value        = 7
|description  = 
|sourcefile   = script.ldf
|sourcemodule =
}}
:
{{Constant table row
|name         = SAMPLE_LAST_CONSTANT
|type         = int
|value        = 11
|description  = 
|sourcefile   = script.ldf
|sourcemodule =
}}
{{Constant table end}}
<!--
== Remarks == -->
<!-- This section contains additional comments, observations and known issues. -->
<!--
== Examples == -->
<!-- This section contains examples transcluded from the snippet library. -->
<!--
== See also == -->
<!-- This section contains links to articles, functions or constant groups. -->