Template:Test: Difference between revisions

From A KoL Wiki
imported>Pastrywoman
mNo edit summary
imported>Nukeboy1313
No edit summary
 
(48 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
|- id="player-id-{{{aname|player-id-{{{1}}}}}}"
{{{1}}}
| {{{name|{{{2|<Player's Name Unknown>}}}}}} || {{{1}}} ||
[[Category:Test Templates]]
{{#ifexpr: {{{3}}} > 0 | [[File:{{{avatar1|{{{4|{{{1}}}.gif}}}}}}]] }}
</includeonly><noinclude>
{{#ifexpr: {{{3}}} > 1 | [[File:{{{avatar2|{{{5|{{{1}}}_2.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 2 | [[File:{{{avatar3|{{{6|{{{1}}}_3.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 3 | [[File:{{{avatar4|{{{7|{{{1}}}_4.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 4 | [[File:{{{avatar5|{{{8|{{{1}}}_5.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 5 | [[File:{{{avatar6|{{{9|{{{1}}}_6.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 6 | [[File:{{{avatar7|{{{10|{{{1}}}_7.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 7 | [[File:{{{avatar8|{{{11|{{{1}}}_8.gif}}}}}}]] }}
{{#ifexpr: {{{3}}} > 8 | [[File:{{{avatar9|{{{12|{{{1}}}_9.gif}}}}}}]] }}
</includeonly>
<noinclude>


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


==Examples==
==Explanation==
<nowiki>{{Template:Test|1|jick|7|jick_avatar.gif|jick_avatar2.gif|avatar4=jick_avatar4.gif|jick_avatar3.gif}}</nowiki>
Enchantment template
{| border="1px" cellpadding="4px" cellspacing="0" style="margin:1em; text-align:center; width: 100%"
 
|- style="background-color:#EFEFEF;"
==Usage==
! Player Name !! Player ID !! Custom Avatar(s)
<pre>{{Test|Foo}}</pre>
{{Template:Test|1|jick|7|jick_avatar.gif|jick_avatar2.gif|avatar4=jick_avatar4.gif|jick_avatar3.gif}}
{{Test|Foo}}
{{Template:Test|1061|Janice is Uber Cool|2}}
<pre>{{Test|Foo|Bar}}</pre>
|}
{{Test|Foo|Bar}}
</noinclude>
 
<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}}
 
<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|autocat=no|autosell=0}}</pre>
{{Test|autocat=no|autosell=0}}
 
[[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}}}