Template:Test: Difference between revisions

From A KoL Wiki
imported>Philmasterplus
No edit summary
imported>Nukeboy1313
No edit summary
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{CURRENTYEAR}} - {{{year}}} <= 1
<includeonly>
| style="background-color: #AAFFAA; {{{style|}}}"
{{{1}}}
| {{#ifexpr: {{CURRENTYEAR}} - {{{year}}} = 2
[[Category:Test Templates]]
  | style="background-color: #CCFF99; {{{style|}}}"
</includeonly><noinclude>
  | {{#ifexpr: {{CURRENTYEAR}} - {{{year}}} = 3
    | style="background-color: #FFFF77; {{{style|}}}"
    | style="background-color: #FFAAAA; {{{style|}}}"
    }}
  }}
}}</includeonly><noinclude>
 


[[Category:Test Templates|{{PAGENAME}}]]
[[Category:Test Templates|{{PAGENAME}}]]
Line 22: 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: StandardExpirationBgcolor
Current Test: enchantment
 
==Explanation==
Enchantment template
 
==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>
{{Test|autocat=yes|notrade=1|autosell=0}}
 
<pre>{{Test|autocat=yes|notrade=1|autosell=11}}</pre>
{{Test|autocat=yes|notrade=1|autosell=11}}


==Options==
<pre>{{Test|autocat=yes|autosell=0}}</pre>
All arguments are both positional and keyword selectable.
{{Test|autocat=yes|autosell=0}}


* <code>year</code>: '''Required'''. The year in which the current item, skill, or familiar was released. This is used to pick the correct background color.
<pre>{{Test|autocat=yes|autosell=11}}</pre>
* <code>style</code>: ''Optional''. Additional CSS style(s) to apply.
{{Test|autocat=yes|autosell=11}}


==Examples==
<pre>{{Test|autocat=no|autosell=0}}</pre>
<nowiki>
{{Test|autocat=no|autosell=0}}
{| class="wikitable" style="text-align: center"
! Item
! Released on
|-
| [[packaged knock-off retro superhero cape]]
| {{Template:Test|year=2020}} | Nov. 2020
|-
| [[unopened diabolic pizza cube box]]
| {{Template:Test|year=2019|text-align: right}} | Nov. 2019
|-
| [[voter registration form]]
| {{Template:Test|year=2018}} | Nov. 2018
|-
| [[pantogram]]
| {{Template:Test|year=2017}} | Nov. 2017
|-
| [[Build-a-City Gingerbread kit]]
| {{Template:Test|year=2016}} | Dec. 2016
|}
</nowiki>


[[Category:Utility Templates|{{PAGENAME}}]]
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>
</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}}}