ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "Template:Automatictypelist"
From ModEnc
(Expanded) |
m (Small fix to un-break existing template inclusions without parameters.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | =={{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 {{ #if: {{{1|}}}|internal {{sl|{{{1}}}}}|appropriate internal}} array. However no harm can be done by listing them manually.<includeonly>[[Category:Automatically listing Flags]]</includeonly><noinclude> | |
− | + | ||
==Usage== | ==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 <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. | |
− | < | + | Optionally, <nowiki>{{{2}}}</nowiki>, which defaults to <code>Objects</code>, specifies the type of object class that is added to the internal array: |
− | + | <pre>{{Automatictypelist|SoundList|VocTypes}}</pre> |
Latest revision as of 23:37, 29 May 2008
Automatic List Inclusion
Objects used as values for this flag are automatically listed under the appropriate internal 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}}