Difference between revisions of "Template:IncludeFileMembers"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
m
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>__NOTOC__== Constants ==  
{{#if:{{{constants|}}} |
+
{{#if:{{{constants|}}}|{{#tag:DynamicPageList|
== Constants == | }}
+
category      = Constants from {{lc:{{BASEPAGENAME}}}}
{{#if:{{{constants|}}} |
+
{{#tag:DynamicPageList|
+
category      = Constants from {{BASEPAGENAME}}
+
 
order          = ascending
 
order          = ascending
ordermethod    = sortkey
+
ordermethod    = sortkey}}|* None}}
suppresserrors = true
+
== Structs ==  
}} | }}
+
{{#if:{{{structs|}}}|{{#tag:DynamicPageList|
{{#if:{{{structs|}}} |
+
category      = Structs from {{lc:{{BASEPAGENAME}}}}
== Structs == | }}
+
{{#if:{{{structs|}}} |
+
{{#tag:DynamicPageList|
+
category      = Structs from {{BASEPAGENAME}}
+
 
order          = ascending
 
order          = ascending
ordermethod    = sortkey
+
ordermethod    = sortkey}}|* None}}
suppresserrors = true
+
== Functions ==
}} | }}
+
{{#if:{{{functions|}}}|{{#tag:DynamicPageList|
{{#if:{{{functions|}}} |
+
category      = Functions from {{lc:{{BASEPAGENAME}}}}
== Functions == | }}
+
{{#if:{{{functions|}}} |
+
{{#tag:DynamicPageList|
+
category      = Functions from {{BASEPAGENAME}}
+
 
order          = ascending
 
order          = ascending
ordermethod    = sortkey
+
ordermethod    = sortkey}}|* None}}
suppresserrors = true
+
{{#if:{{{sourcemodule|}}}|[[Category:Include files from {{{sourcemodule|}}}]]|[[Category:Orphaned include files]]}}
}} | }}
+
[[Category:Include files from {{{sourcemodule|unspecified module}}}]]
+
 
[[Category:Include files]]</includeonly><noinclude>
 
[[Category:Include files]]</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{IncludeFileMembers
 
{{IncludeFileMembers
|name        = ability_h
 
 
|constants    = true
 
|constants    = true
 
|structs      =  
 
|structs      =  
Line 39: Line 25:
 
}}</pre>
 
}}</pre>
 
The [[Template:IncludeFileMembers|IncludeFileMembers]] template uses the categories created by the [[Template:Constant_table_start|constant]], [[Template:Struct|struct]] and [[Template:Dafunction|function]] templates to automatically build the lists of the include file's members.
 
The [[Template:IncludeFileMembers|IncludeFileMembers]] template uses the categories created by the [[Template:Constant_table_start|constant]], [[Template:Struct|struct]] and [[Template:Dafunction|function]] templates to automatically build the lists of the include file's members.
 +
 +
Note name of the include file appearing in the categories names must be in lower case, for example, [[:Category:Functions from ability_h|Functions from ability_h]].
  
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:13, 26 August 2011

Usage

{{IncludeFileMembers
|constants    = true
|structs      = 
|functions    = true
|sourcemodule = Core Game Resources
}}

The IncludeFileMembers template uses the categories created by the constant, struct and function templates to automatically build the lists of the include file's members.

Note name of the include file appearing in the categories names must be in lower case, for example, Functions from ability_h.