ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:Automatictypelist"

From ModEnc
Jump to: navigation, search
(Expanded)
(This should not be treated as a warning, per se. Added icon.)
Line 1: Line 1:
'''Warning:''' {{{2|Objects}}} listed under this flag are automatically listed under {{sl|{{{1|{{co|'''Types list not selected'''|red}}}}}}}, even if they are not listed there manually.<includeonly>[[Category:Automatically listing Flags]]</includeonly><noinclude>
+
=={{Anchor|Bugs||}}{{Anchor|bugs||}}[[Image:Cc_documentinfo.png‎|24px]] Automatic List Inclusion==
----
+
{{ #if: {{{2|}}}|[[{{{2}}}]]|Objects}} used as values for this flag are automatically listed under the internal {{ #if: {{{1|}}}|{{sl|{{{1}}}}}|{{co|{{{1}}}|red}}}} array. However no harm can be done by listing them manually.<includeonly>[[Category:Automatically listing Flags]]</includeonly><noinclude>
This adds the general warning message that the flag in question automatically adds items to the game's internal lists. Pages with this templates are automatically categorized under [[:Category:Automatically listing Flags]].
+
 
 
==Usage==
 
==Usage==
<pre>{{Automatictypelist|}}</pre>
+
{{Automatictypelist{{!}}''ini-section''}}
:'''Parameter 1''' is the name of the *Types list the object gets added to
+
Copy-paste the code above and use it to start an Automatic List Inclusion section on a page that describes a flag that automatically adds objects that are used as its values to the appropriate internal array, specified by <nowiki>{{{1}}}</nowiki>. This will create a standardized title with a notification icon. Using this template also adds the page to [[:Category:Automatically listing Flags]] automatically.
  
<pre>{{Automatictypelist||}}</pre>
+
Optionally, <nowiki>{{{2}}}</nowiki>, which defaults to <code>Objects</code>, specifies the type of object class that is added to the internal array:
:'''Parameter 2''' is optional and can be used to replace "Objects" - e.g. to say "InfantryTypes listed under..."</noinclude>
+
<pre>{{Automatictypelist|SoundList|VocTypes}}</pre>

Revision as of 23:32, 29 May 2008

Cc documentinfo.png Automatic List Inclusion

Objects used as values for this flag are automatically listed under the internal {{{1}}} array. However no harm can be done by listing them manually.

Usage

{{Automatictypelist|ini-section}}

Copy-paste the code above and use it to start an Automatic List Inclusion section on a page that describes a flag that automatically adds objects that are used as its values to the appropriate internal array, specified by {{{1}}}. This will create a standardized title with a notification icon. Using this template also adds the page to Category:Automatically listing Flags automatically.

Optionally, {{{2}}}, which defaults to Objects, specifies the type of object class that is added to the internal array:

{{Automatictypelist|SoundList|VocTypes}}