24,530 ARTICLES
ON THIS WIKI

Template:Mob/Icons/doc


This template is used to create a row of icons along with a number for use in the Mob template.

Syntax[edit]

Type {{Mob/Icons|<value>|<fullIcon>|<halfIcon>}} somewhere.

Parameters
  • value: This is the value, this number of icons will be divided by two and that number of icons will appear.
  • fullIcon: This string will be repeated for half of the value parameter times.
  • halfIcon: If the value parameter is odd, this will be used to show a half value. It defaults to the string "+½".

Examples[edit]

Basic Usage[edit]

{{Mob/Icons|7|[[File:Heart.png]]|[[File:Half Heart.png]]}}

gives...

7 (Heart.pngHeart.pngHeart.pngHalf Heart.png)

Values over 10[edit]

For values over 10, the template will not show a long row, it will just show the icon multiplied by the number.

{{Mob/Icons|12|[[File:Heart.png]]|[[File:Half Heart.png]]}}

gives...

12 (Heart.png x 6)