Template:Test: Difference between revisions

From A KoL Wiki
imported>Philmasterplus
Fixes
imported>Nukeboy1313
No edit summary
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{{1|1}}}>={{CURRENTDAY}}
<includeonly>
|[[File:Advent_{{{1|1}}}.gif|Section #{{{1|1}}}]]
{{{1}}}
|[[File:Torn{{#rand:1|13}}.gif|Torn-Out Section]]
[[Category:Test Templates]]
}}</includeonly><noinclude>
</includeonly><noinclude>


[[Category:Test Templates|{{PAGENAME}}]]
[[Category:Test Templates|{{PAGENAME}}]]
Line 15: 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: AdventCalendarSection
Current Test: enchantment


==Explanation==
==Explanation==
This template generates a cell for the expanded [[Advent Calendar]] used since 2013.
Enchantment template


The first parameter is the day associated with the cell. If the day is same or less than today's day (<code><nowiki>{{CURRENTDAY}}</nowiki></code>), the template will display the appropriate section image. If the day is greater than today's day, the template will show a random torn section image.
==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}}


==Usage==
<pre>{{Test|autocat=yes|notrade=1|autosell=0}}</pre>
<pre>{{Test|5}}</pre>
{{Test|autocat=yes|notrade=1|autosell=0}}
{{Test|5}}
 
<pre>{{Test|autocat=yes|notrade=1|autosell=11}}</pre>
{{Test|autocat=yes|notrade=1|autosell=11}}
 
<pre>{{Test|autocat=yes|autosell=0}}</pre>
{{Test|autocat=yes|autosell=0}}
 
<pre>{{Test|autocat=yes|autosell=11}}</pre>
{{Test|autocat=yes|autosell=11}}


<pre>{{Test|12}}</pre>
<pre>{{Test|autocat=no|autosell=0}}</pre>
{{Test|12}}
{{Test|autocat=no|autosell=0}}


[[Category:Test Templates|{{PAGENAME}}]]</noinclude>
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>

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}}}