From TheKolWiki
Jump to: navigation, search

|- id="{{{aname|player-id-{{{id|{{{1|0}}}}}}}}}" | {{{name|{{{2|<Player's Name Unknown>}}}}}} || {{{id|{{{1}}}}}} || {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 0 | {{{avatar1|{{{4|[[File:{{{id|{{{1|0}}}}}}.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 1 | {{{avatar2|{{{5|[[File:{{{id|{{{1|0}}}}}}_2.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 2nd Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 2 | {{{avatar3|{{{6|[[File:{{{id|{{{1|0}}}}}}_3.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 3rd Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 3 | {{{avatar4|{{{7|[[File:{{{id|{{{1|0}}}}}}_4.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 4th Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 4 | {{{avatar5|{{{8|[[File:{{{id|{{{1|0}}}}}}_5.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 5th Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 5 | {{{avatar6|{{{9|[[File:{{{id|{{{1|0}}}}}}_6.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 6th Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 6 | {{{avatar7|{{{10|[[File:{{{id|{{{1|0}}}}}}_7.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 7th Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 7 | {{{avatar8|{{{11|[[File:{{{id|{{{1|0}}}}}}_8.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 8th Avatar]]}}}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 8 | {{{avatar9|{{{12|[[File:{{{id|{{{1|0}}}}}}_9.gif|{{{name|{{{2|<Player's Name Unknown>}}}}}}'s 9th Avatar]]}}}}}}}}


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


All arguments (expect for aname) are both positional and keyword selectable with the keywords have precedes over poitional. Meaning {{Template:CustomAvatarTr|1|[[Jick]]|7|[[File:jick_avatar.gif]]}} is the same as {{Template:CustomAvatarTr|id=1|avatar1=[[File:jick_avatar.gif]]|avatarcount=7|name=[[Jick]]}}

  • id The player's ID number. Defaults to '<Player's Name Unknown>'.
  • name The player's in-game name. Defaults to '0'.
  • avatarcount The number of avatars the player has. Defaults to '1'. If no avatarN argument is supplied then the template will use '{{{id}}}_N.gif' instead. ( '{{{id}}}.gif' will be used for avatarcount=1 )
  • avatarN A keyword assignment of a particular avatar. Defaults to '[[File:{{{id}}}.gif]]'. avatarN will only show if avatarcount >= N. The image should be a mediawiki File include not just the file name. Note: N is valid for numbers from 0-9. 0 will cause no images to be used.
  • aname Anchor name (use when the monster name has special characters that cannot be used in a CSS id specifier). Defaults to 'player-id-{{{id}}}'.



Player Name Player ID Custom Avatar(s)
Jick 1 Jick avatar.gif Jick avatar2.gif Jick avatar3.gif Jick's 4th Avatar Jick's 5th Avatar Jick's 6th Avatar Jick's 7th Avatar
Multi Czar 6 Avatar 6.gif
Janice is Uber Cool 1061 Janice is Uber Cool's Avatar Janice is Uber Cool's 2nd Avatar
BoozerBear 4576 BoozerBear's Avatar
BoozerBear 4576 BoozerBear's Avatar BoozerBear's 2nd Avatar BoozerBear's 3rd Avatar BoozerBear's 4th Avatar