Template:Test

From A KoL Wiki
Revision as of 21:40, 2 April 2019 by imported>Pastrywoman


{{Test}}
|-

| id="{{{aname|player-id-{{{id|{{{1|0}}}}}}}}}"| {{{name|{{{2|<Player's Name Unknown>}}}}}} || {{{id|{{{1}}}}}} || {{{avatar1|{{{4|[[File:{{{id|{{{1|0}}}}}}.gif]]}}}}}} {{#ifexpr: {{{avatarcount|{{{3|1}}}}}} > 0 | {{{avatar1|{{{4|[[File:{{{id|{{{1|0}}}}}}_2.gif]]}}}}}}}}

Options

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

Examples

{{Template:Test|1|jick|7|jick_avatar.gif|jick_avatar2.gif|avatar4=jick_avatar4.gif|jick_avatar3.gif}}

Player Name Player ID Custom Avatar(s)
Jick 1

Multi Czar 6

Janice is Uber Cool 1061

BoozerBear 4576

BoozerBear 4576