Wynncraft Wiki
m (Cleanup.)
m (copying AI type failsafes to cargo store)
(41 intermediate revisions by 7 users not shown)
Line 1: Line 1:
  +
<includeonly><!--
{{Infobox
 
  +
-->{{#if:{{{damage|}}} | {{#vardefine:damage1|{{#explode:{{{damage}}}|,|0}}}} {{#vardefine:damage2|{{#explode:{{{damage}}}|,|1}}}} {{#vardefine:damage3|{{#explode:{{{damage}}}|,|2}}}} {{#vardefine:damage4|{{#explode:{{{damage}}}|,|3}}}} {{#vardefine:damage5|{{#explode:{{{damage}}}|,|4}}}}}}<!--
  +
  +
-->{{#if:{{{defense|}}} | {{#vardefine:defense1|{{#explode:{{{defense}}}|,|0}}}} {{#vardefine:defense2|{{#explode:{{{defense}}}|,|1}}}} {{#vardefine:defense3|{{#explode:{{{defense}}}|,|2}}}} {{#vardefine:defense4|{{#explode:{{{defense}}}|,|3}}}} {{#vardefine:defense5|{{#explode:{{{defense}}}|,|4}}}}}}<!--
  +
  +
-->{{#if:{{{weakness|}}} | {{#vardefine:weakness1|{{#explode:{{{weakness}}}|,|0}}}} {{#vardefine:weakness2|{{#explode:{{{weakness}}}|,|1}}}} {{#vardefine:weakness3|{{#explode:{{{weakness}}}|,|2}}}} {{#vardefine:weakness4|{{#explode:{{{weakness}}}|,|3}}}} {{#vardefine:weakness5|{{#explode:{{{weakness}}}|,|4}}}}}}<!--
  +
 
-->{{Infobox
 
| above = {{{name|{{PAGENAME}}}}}
 
| above = {{{name|{{PAGENAME}}}}}
| image = {{{image}}}
+
| image = [[File:{{{image}}}|256px]]
| label1 = Type
+
| label1 = Type
 
| data1 = {{{type|}}}
 
| data1 = {{{type|}}}
| label2 = Species
+
| label2 = Level
| data2 = {{{species|}}}
+
| data2 = {{{level}}}
| label3 = Level
+
| label3 = Health
| data3 = {{{level}}}
+
| data3 = {{#if:{{{health|}}}|{{{health}}} {{Healthbar|1|size=11px}} | ? }}
| label4 = Location
+
| 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}}|}}| ? }}}}
| data4 = {{{location}}}
 
| label5 = Health
+
| label5 = AI Type
| data5 = {{ #if: {{health|}} | {{{health}}} <span style="color:#AA0000">♥</span> | ? }}
+
| data5 = {{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}}
| label6 = Drops
+
| label6 = Abilities
| data6 = {{{drops|}}}
+
| data6 = {{{abilities|}}}
| header7 = {{#if:{{{damage|}}}{{{earth|}}}{{{thunder|}}}{{{water|}}}{{{fire|}}}{{{air|}}}|Elemental Effects}}
+
| header7 = {{#if:{{{weak|}}}{{{damage|}}}{{{defense|}}}|Elemental Properties}}
| label7 = {{Element|neutral}}
+
| label7 = Weakness
  +
| data7 = {{Element|{{#var:weakness1}}}} {{Element|{{#var:weakness2}}}} {{Element|{{#var:weakness3}}}} {{Element|{{#var:weakness4}}}} {{Element|{{#var:weakness5}}}}
| data7 = {{{damage|}}}
 
| label8 = {{Element|earth}}
+
| label8 = Damage
  +
| data8 = {{Element|{{#var:damage1}}}} {{Element|{{#var:damage2}}}} {{Element|{{#var:damage3}}}} {{Element|{{#var:damage4}}}} {{Element|{{#var:damage5}}}}
| data8 = {{{earth|}}}
 
| label9 = {{Element|thunder}}
+
| label9 = Defense
  +
| data9 = {{Element|{{#var:defense1}}}} {{Element|{{#var:defense2}}}} {{Element|{{#var:defense3}}}} {{Element|{{#var:defense4}}}} {{Element|{{#var:defense5}}}}
| data9 = {{{thunder|}}}
 
| label10 = {{Element|water}}
+
| header10 = {{#if:{{{location|}}}|Location}}
| data10 = {{{water|}}}
+
| label10 = Location
| label11 = {{Element|fire}}
+
| data10 = {{{location|}}}
  +
}}<!--
| data11 = {{{fire|}}}
 
  +
| label12 = {{Element|air}}
 
  +
-->{{#if:{{NAMESPACE}}||{{#switch: {{{type}}}
| data12 = {{{air|}}}
 
  +
|Hostile Mob = [[Category:Hostile Mobs]]
}}
 
  +
|Passive Mob = [[Category:Passive Mobs]]
<noinclude>
 
  +
|Neutral Mob = [[Category:Neutral Mobs]]
To use this template, add to page this code:
 
  +
|Guard Mob
  +
|Defending Mob = [[Category:Defending Mobs]]
  +
|Hostile Grind Mob = [[Category:Grind Mobs]][[Category:Hostile Mobs]]
  +
|Rare Hostile Mob = [[Category:Rare Mobs]][[Category:Hostile Mobs]]
  +
|Rare Passive Mob = [[Category:Rare Mobs]][[Category:Passive Mobs]]
  +
|Rare Neutral Mob = [[Category:Rare Mobs]][[Category:Neutral Mobs]]
  +
}}[[Category:Mobs]]}}<!--
   
  +
-->{{#if:{{NAMESPACE}}||
<pre>
 
  +
{{#cargo_store:_table=Mobs
{{Infobox/Mob
 
| name =
+
| name={{{name|{{PAGENAME}}}}}
| image =
+
| image={{{image|}}}
| type = *
+
| type={{{type|}}}
 
| level={{{level|}}}
| species = *
 
 
| health={{{health|}}}
| level =
 
 
| dam={{{dam|}}}
| location =
 
  +
| ai_type={{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}}
| health =
 
  +
| abilities={{{abilities|}}}
| damage = *
 
 
| damage={{{damage|}}}
| drops = *
 
  +
| defense={{{defense|}}}
| earth = Defense: <value>, Damage <value>, or Weakness <value> *
 
  +
| weakness={{{weakness|}}}
| thunder = Defense: <value>, Damage <value>, or Weakness <value> *
 
 
| location={{{location|}}}
| water = Defense: <value>, Damage <value>, or Weakness <value> *
 
  +
}}<!-- end if namespace -->}}</includeonly>
| fire = Defense: <value>, Damage <value>, or Weakness <value> *
 
  +
<noinclude>{{#cargo_declare:_table=Mobs
| air = Defense: <value>, Damage <value>, or Weakness <value> *
 
  +
| name=String
  +
| image=File
  +
| type=String
 
| level=Integer
 
| health=Integer
  +
| dam=String
  +
| ai_type=String
  +
| abilities=List (,) of String
  +
| damage=List (,) of String
  +
| defense=List (,) of String
  +
| weakness=List (,) of String
 
| location=String
 
}}
 
}}
</pre>
 
Note: <code><nowiki>*</nowiki></code> means optional. Please don't include the <code><nowiki>*</nowiki></code> when writing the field though
 
   
</noinclude>
+
{{Infobox/Mob/doc}}</noinclude>
<includeonly>{{ #if: {{NAMESPACE}} || [[Category:Mobs]] }}</includeonly>
 
<noinclude>[[category:Infobox_templates]][[category:Templates]]</noinclude>
 

Revision as of 06:32, 25 November 2020

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

Template-info 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 =
| cci_blindness =
| cci_knockback =
| cci_slowness =
| drops =
}}
  • 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
  • ai_type - the AI of the mob. For details on the more specific AIs, see Mob AI.
  • 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.
  • cci - how this mob responds to crowd control means, either being Immune or Resist. If the mob is vulnerable to crowd control, then do not add a crowd control to the infobox. There are 3 types of crowd control:
    • cci_blindness
    • cci_knockback
    • cci_slowness
  • drops - the drops of this mob.

Examples

Example Result
{{Infobox/Mob
|name = Zombie (Lv. 13)
|image = Zombie (Lv. 13).png
|type = Hostile Mob
|species = Zombie
|level = 13
|health = 61
|ai_type = Melee
|damage = neutral
|drops = [[Rotten Flesh]], [[Undead Heart]]
}}
Zombie (Lv. 13)
Zombie (Lv. 13)
Type Hostile Mob
Level 13
Health 61 Full Heart Icon
Damage ?
AI Type Melee AI
Elemental Properties
Damage Neutral
{{Infobox/Mob
|name = Water Zombie
|image = WaterZombie.png
|type = Hostile Mob
|species = Zombie
|level = 6
|health = 25
|ai_type = Ranged
|damage = water
|weakness = thunder
|drops = [[Rotten Flesh]], [[Fresh Water]]
}}
Water Zombie
Water Zombie
Type Hostile Mob
Level 6
Health 25 Full Heart Icon
Damage ?
AI Type Ranged AI
Elemental Properties
Weakness Thunder
Damage Water