m (Cleanup.) |
FrozenEarth (talk | contribs) m (copying AI type failsafes to cargo store) |
||
(41 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly><!-- |
||
⚫ | |||
+ | -->{{#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}}}}}}<!-- |
||
+ | |||
⚫ | |||
| above = {{{name|{{PAGENAME}}}}} |
| above = {{{name|{{PAGENAME}}}}} |
||
− | | image = {{{image}}} |
+ | | image = [[File:{{{image}}}|256px]] |
− | | label1 = Type |
+ | | label1 = Type |
| data1 = {{{type|}}} |
| data1 = {{{type|}}} |
||
− | | label2 = |
+ | | label2 = Level |
− | | data2 = {{{ |
+ | | data2 = {{{level}}} |
− | | label3 = |
+ | | label3 = Health |
− | | data3 = {{{ |
+ | | data3 = {{#if:{{{health|}}}|{{{health}}} {{Healthbar|1|size=11px}} | ? }} |
− | | label4 = |
+ | | 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}}|}}| ? }}}} |
||
⚫ | |||
− | | label5 = |
+ | | label5 = AI Type |
− | | data5 = {{ |
+ | | data5 = {{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}} |
− | | label6 = |
+ | | label6 = Abilities |
− | | data6 = {{{ |
+ | | data6 = {{{abilities|}}} |
− | | header7 = {{#if:{{{ |
+ | | header7 = {{#if:{{{weak|}}}{{{damage|}}}{{{defense|}}}|Elemental Properties}} |
− | | label7 = |
+ | | label7 = Weakness |
+ | | data7 = {{Element|{{#var:weakness1}}}} {{Element|{{#var:weakness2}}}} {{Element|{{#var:weakness3}}}} {{Element|{{#var:weakness4}}}} {{Element|{{#var:weakness5}}}} |
||
⚫ | |||
− | | label8 = |
+ | | label8 = Damage |
+ | | data8 = {{Element|{{#var:damage1}}}} {{Element|{{#var:damage2}}}} {{Element|{{#var:damage3}}}} {{Element|{{#var:damage4}}}} {{Element|{{#var:damage5}}}} |
||
⚫ | |||
− | | label9 = |
+ | | label9 = Defense |
+ | | data9 = {{Element|{{#var:defense1}}}} {{Element|{{#var:defense2}}}} {{Element|{{#var:defense3}}}} {{Element|{{#var:defense4}}}} {{Element|{{#var:defense5}}}} |
||
⚫ | |||
− | | |
+ | | header10 = {{#if:{{{location|}}}|Location}} |
− | | |
+ | | label10 = Location |
− | | |
+ | | data10 = {{{location|}}} |
+ | }}<!-- |
||
⚫ | |||
+ | |||
− | | 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|}}} |
⚫ | |||
− | | species = * |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | | ai_type={{#if: {{{attack_type|}}}{{{ai_type|}}} |{{{attack_type|}}}{{{ai_type|}}} {{#if:{{#pos:{{{attack_type|}}}{{{ai_type|}}}|AI}}||AI}} |Unknown AI}} |
||
⚫ | |||
+ | | abilities={{{abilities|}}} |
||
− | | damage = * |
||
⚫ | |||
− | | drops = * |
||
+ | | defense={{{defense|}}} |
||
− | | earth = Defense: <value>, Damage <value>, or Weakness <value> * |
||
+ | | weakness={{{weakness|}}} |
||
− | | thunder = Defense: <value>, Damage <value>, or Weakness <value> * |
||
⚫ | |||
− | | 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 |
||
⚫ | |||
⚫ | |||
+ | | dam=String |
||
+ | | ai_type=String |
||
+ | | abilities=List (,) of String |
||
+ | | damage=List (,) of String |
||
+ | | defense=List (,) of String |
||
+ | | weakness=List (,) of 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.
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 mobimage
- an image of the mobtype
- 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 mobhealth
- the amount of health the mob hasdam
- the amount of damage the mob deals, usually a range of valuesai_type
- the AI of the mob. For details on the more specific AIs, see Mob AI.abilities
- the abilities of the mob, separated by commasdamage
- not to be confused withdam
; lists the elements of the mob's damage, separated by commasdefense
- optional: list the elements the mob resists, separated by commasweakness
- optional: list the elements the mob is weak to, separated by commaslocation
- 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
The above documentation is transcluded from Template:Infobox/Mob/doc. (edit | history)