Template:Test

From A KoL Wiki
Revision as of 10:56, 5 January 2024 by imported>Evilkolbot (damn)


{{Test}}
{{#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]]}}}}}}

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=yes|notrade=1|autosell=0}}


Category:Items which cannot be traded
Category:Items which cannot be traded or discarded
Category:Items which cannot be discarded

{{Test|autocat=yes|notrade=1|autosell=11}}


Category:Items which cannot be traded

{{Test|autocat=yes|autosell=0}}


Category:Items which cannot be discarded

{{Test|autocat=yes|autosell=11}}


{{Test|autocat=no|autosell=0}}