Wynncraft Wiki
SLScool (talk | contribs)
(Nevermind; allowed for no damage to be displayed on non-passive mobs)
SLScool (talk | contribs)
m (Did it correctly)
Line 16: Line 16:
 
| data3 = {{#if:{{{health|}}}|{{{health}}} {{Healthbar|1|size=11px}} | ? }}
 
| data3 = {{#if:{{{health|}}}|{{{health}}} {{Healthbar|1|size=11px}} | ? }}
 
| label4 = Damage
 
| label4 = Damage
| data4 = {{#if:{{#pos:{{{type|}}}|Passive}}||{{#if:{{{dam|}}}|<big>{{{dam}}}</big> {{Element|{{#var:damage1}}|}} {{Element|{{#var:damage2}}|}} {{Element|{{#var:damage3}}|}} {{Element|{{#var:damage4}}|}} {{Element|{{#var:damage5}}|}}| {{#ifeq:{{{dam}}}|N/A||?}}}}}}
+
| data4 = {{#if:{{#pos:{{{type|}}}|Passive}}||{{#switch:{{{dam|}}}|N/A=|=?|<big>{{{dam}}}</big> {{Element|{{#var:damage1}}|}} {{Element|{{#var:damage2}}|}} {{Element|{{#var:damage3}}|}} {{Element|{{#var:damage4}}|}} {{Element|{{#var:damage5}}|}}}}}}
 
| label5 = AI Type
 
| label5 = AI Type
 
| data5 = {{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}}
 
| data5 = {{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}}

Revision as of 00:19, 18 March 2021

This template defines the table "Mobs". View table.

Template-info.png Documentation

This template creates an infobox that holds the general information of a mob.

Only the name, image, type, level, health, AI type, abilities, elemental properties, and a region or coordinates of the mob should be put into this infobox. Information such as the drops of the mob should be put into the body of the page.

{{Infobox/Mob
| name =
| image =
| type = 
| species =
| level =
| health =
| dam =
| ai_type =
| abilities =
| damage =
| defense = 
| weakness =
| location =
}}
  • name - the name of the mob
  • image - an image of the mob
  • type - the type of the mob: Hostile, Passive, Neutral, Grind, Rare Hostile, etc. Also categorizes the mob according to this.
  • species - optional: the species of the mob according to lore. Use this only for important characters.
  • level - the level of the mob
  • health - the amount of health the mob has
  • dam - the amount of damage the mob deals, usually a range of values
  • attack_type - accepts only melee, ranged
  • abilities - the abilities of the mob, separated by commas
  • damage - not to be confused with dam; lists the elements of the mob's damage, separated by commas
  • defense - optional: list the elements the mob resists, separated by commas
  • weakness - optional: list the elements the mob is weak to, separated by commas
  • location - a region name or coordinates where the mob can be found. Keep this short.

Examples

Example Result
{{Infobox/Mob
|name = Zombie (Lv. 13)
|image = Zombie (Lv. 13).png
|type = Hostile Mob
|species = Zombie
|level = 13
|health = 61
|attack_type = Melee
|damage = neutral
}}
Zombie (Lv. 13)
Zombie (Lv. 13).png
Type Hostile Mob
Level 13
Health 61
Damage ?
AI Type Melee AI
Elemental Properties
Damage Neutral
{{Infobox/Mob
|name = Water Zombie
|image = Water Zombie.png
|type = Hostile Mob
|species = Zombie
|level = 6
|health = 25
|attack_type = Ranged
|damage = water
|weakness = thunder
}}
Water Zombie
Water Zombie.png
Type Hostile Mob
Level 6
Health 25
Damage ?
AI Type Ranged AI
Elemental Properties
Weakness Thunder
Damage Water