Template:Test: Difference between revisions

From A KoL Wiki
imported>Evilkolbot
m damn
imported>Nukeboy1313
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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>
<includeonly>
{{{1}}}
[[Category:Test Templates]]
</includeonly><noinclude>


[[Category:Test Templates|{{PAGENAME}}]]
[[Category:Test Templates|{{PAGENAME}}]]
Line 12: Line 15:
Always give a template a category, even if it is [[:Category:Test Templates]]. For help on how a template works, read some [[MetaWikipedia:Help:Template|documentation]].
Always give a template a category, even if it is [[:Category:Test Templates]]. For help on how a template works, read some [[MetaWikipedia:Help:Template|documentation]].


Current Test: itemnotrade
Current Test: enchantment


==Explanation==
==Explanation==
Update to item template to autoinclude new NOTRADE and NODISCARD categories.
Enchantment template


==Usage==
==Usage==
<pre>{{Test|Foo}}</pre>
{{Test|Foo}}
<pre>{{Test|Foo|Bar}}</pre>
{{Test|Foo|Bar}}
<pre>{{Test|+1 damage to {{element|Hot|Spells}}}}</pre>
{{Test|+1 damage to {{element|Hot|Spells}}}}
<pre>{{Test|quest=1|autocat=yes|notrade=1|autosell=0}}</pre>
{{Test|quest=1|autocat=yes|notrade=1|autosell=0}}
<pre>{{Test|autocat=yes|notrade=1|autosell=0}}</pre>
<pre>{{Test|autocat=yes|notrade=1|autosell=0}}</pre>
{{Test|autocat=yes|notrade=1|autosell=0}}
{{Test|autocat=yes|notrade=1|autosell=0}}

Latest revision as of 09:25, 24 August 2024


{{Test}}

{{{1}}} [[Category:Test Templates]]

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: enchantment

Explanation

Enchantment template

Usage

{{Test|Foo}}

Foo

{{Test|Foo|Bar}}

Foo


{{Test|+1 damage to {{element|Hot|Spells}}}}

+1 damage to Hot Spells


{{Test|quest=1|autocat=yes|notrade=1|autosell=0}}

{{{1}}}


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

{{{1}}}


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

{{{1}}}


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

{{{1}}}


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

{{{1}}}


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

{{{1}}}