Difference between revisions of "Template:Constant table start"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (fix formatting)
m (Fixing link)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| border="1" cellspacing="0" cellpadding="2"
+
<includeonly>{{#if:{{{sourcefile|}}}|[[Category:Constants from {{{sourcefile|}}}]]|[[Category:Orphaned constants]]}}
 +
{| class="wikitable sortable"
 
{{#if:{{{sourcefile|}}}|
 
{{#if:{{{sourcefile|}}}|
{{!}}+ Source: {{{sourcefile}}}{{#if:{{{sourcemodule|}}}| in module {{{sourcemodule}}}|}}
+
{{!}}+ Source: {{#if:{{{sourcemodule|}}}|[[{{{sourcemodule|}}}]].}}{{#if:{{{sourcefile|}}}|[[{{{sourcefile|}}}]]|{{undocumented}}}}
 
|}}
 
|}}
 
|-
 
|-
! Constant name !! Type !! Value !! Description {{#if:{{{sourcefile|}}}||!! Source}}
+
! Constant name !! Type !! Value !! Description !! Source
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Constant table documentation}}
 
{{Constant table documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:29, 24 August 2011

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