Template:Test: Difference between revisions
imported>Evilkolbot m hmm |
imported>Evilkolbot m hmm |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{autocat|yes}}}|yes|{{#if:{{{notrade|}}}|<br | <includeonly>{{#ifeq:{{{autocat|yes}}}|yes|{{#if:{{{notrade|}}}|<br>[[:Category:Items which cannot be traded]]{{#ifeq:{{{autosell}}}|0|<br>[[:Category:Items which cannot be traded or discarded]]<br>[[:Category:Items which cannot be discarded]]}}|{{#ifeq:{{{autosell}}}|0|<br>[[:Category:Items which cannot be discarded]]}}}}}}</includeonly><noinclude> | ||
[[Category:Test Templates|{{PAGENAME}}]] | [[Category:Test Templates|{{PAGENAME}}]] |
Revision as of 10:45, 5 January 2024
Instructions
Similar to the Sandbox, this page is here for you to play around with templates. Do what you like with it, but please leave this explanatory section.
Insert your desired template contents above between the "includeonly" tags, and alter the instance below to include any parameters you may need. You may need to purge this page to see the effects of changes to this template's code. The same also holds for any other template. Otherwise, you may have to wait several minutes before the wiki starts using the new code.
Always give a template a category, even if it is Category:Test Templates. For help on how a template works, read some documentation.
Current Test: itemnotrade
Explanation
Update to item template to autoinclude new NOTRADE and NODISCARD categories.
Usage
{{Test|autocat=Y|notrade=1|autosell=0}}
{{Test|autocat=Y|notrade=1|autosell=11}}
{{Test|autocat=Y|notrade=0|autosell=0}}
{{Test|autocat=Y|notrade=0|autosell=11}}
{{Test|autocat=N|notrade=0|autosell=0}}