Difference between revisions of "Template:IncludeFileMembers"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (Debugging template)
m
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{BASEPAGENAME}}<!--
+
<includeonly>__NOTOC__== Constants ==
-->{{#if:{{{constants|}}}|== Constants ==
+
{{#if:{{{constants|}}}|{{#tag:DynamicPageList|
 
+
category       = Constants from {{lc:{{BASEPAGENAME}}}}
<DynamicPageList>
+
order         = ascending
category   = Constants from {{BASEPAGENAME}}
+
ordermethod   = sortkey}}|* None}}
order       = ascending
+
== Structs ==
ordermethod = sortkey
+
{{#if:{{{structs|}}}|{{#tag:DynamicPageList|
</DynamicPageList>|}}<!--
+
category       = Structs from {{lc:{{BASEPAGENAME}}}}
 
+
order         = ascending
-->{{#if:{{{structs|}}}|== Structs ==
+
ordermethod   = sortkey}}|* None}}
<DynamicPageList>
+
== Functions ==
category   = Structs from {{BASEPAGENAME}}
+
{{#if:{{{functions|}}}|{{#tag:DynamicPageList|
order       = ascending
+
category       = Functions from {{lc:{{BASEPAGENAME}}}}
ordermethod = sortkey
+
order         = ascending
</DynamicPageList>|}}<!--
+
ordermethod   = sortkey}}|* None}}
 
+
{{#if:{{{sourcemodule|}}}|[[Category:Include files from {{{sourcemodule|}}}]]|[[Category:Orphaned include files]]}}
-->{{#if:{{{functions|}}}|== Functions ==
+
<DynamicPageList>
+
category   = Functions from {{BASEPAGENAME}}
+
order       = ascending
+
ordermethod = sortkey
+
</DynamicPageList>
+
 
+
[[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 34: 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.