Template:Infobox Monster: Difference between revisions

From HorizonXI Wiki
m (changed catch switch parameters for "spawn type" parameter to display defined options and not user input. Causing issues with capitalisation.)
(bugfixing mob family categorization)
Line 2: Line 2:
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!--
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!--


-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}}
start categorizations
| nm
categorization based on mob family. The part in the ifexist check categorizes the family type by getting it from the mob family category page.
| notorious monster = [[Category:Notorious Monsters]]
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}|[[Category:{{{family}}}]]{{#ifexist:Category:{{{family}}}|[[Category:{{#dpl:
| henm
| hyper empty notorious monster = [[Category:HENM]][[Category:Notorious Monsters]]
| znm
| zeni notorious monster = [[Category:Notorious Monsters]][[Category:Zeni Notorious Monsters]]
| vnm
| voidwalker notorious monster = [[Category:Notorious Monsters]][[Category:Voidwalker Notorious Monsters]]
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
}}}}<!--
 
categorizations based on mob family types
-->{{#if:{{{family|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family}}}
|title=Category:{{{family}}}
|include={Infobox Mob Family}:System
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
}}]]}}{{#if:{{{family2|}}}|[[Category:{{{family2}}}]]{{#ifexist:Category:{{{family2}}}|[[Category:{{#dpl:
-->{{#if:{{{family2|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family2}}}
|title=Category:{{{family2}}}
|include={Infobox Mob Family}:System
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
}}]]}}{{#if:{{{family3|}}}|[[Category:{{{family3}}}]]{{#ifexist:Category:{{{family3}}}|[[Category:{{#dpl:
-->{{#if:{{{family3|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family3}}}
|title=Category:{{{family3}}}
|include={Infobox Mob Family}:System
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
}}]]}}}}}}}}}}<!--
 
categorization based on type
-->{{categorize|{{{1|}}}|{{#switch:{{lc:{{{type|}}}}}
| nm | notorious monster = [[Category:Notorious Monsters]]
| henm | hyper empty notorious monster = [[Category:HENM]][[Category:Notorious Monsters]]
| znm | zeni notorious monster = [[Category:Notorious Monsters]][[Category:Zeni Notorious Monsters]]
| vnm | voidwalker notorious monster = [[Category:Notorious Monsters]][[Category:Voidwalker Notorious Monsters]]
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
}}}}<!--


categorization based on spawn conditions
categorization based on spawn conditions

Revision as of 10:16, 27 April 2025


Usage

Header information for a Bestiary monster entry.

Parameters

  • First unnamed Parameter (optional): You can set the first unnamed parameter to:
    • nc (no category) to prevent automatic categorization (e.g. for example pages)
    • nd (no documentation) to suppress the preview documentation (helpful in the editing process)
    • bp (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{Infobox Monster|bp}} and copy the boilerplate from the preview only)
  • Basics
    • image: Filename of the monster image.
      If one is not available, leave this blank. It will insert the {{Mob-image-stub}} template.
    • image caption: Optional. Caption for the image.
    • job: Job(s) of the monster. Example: [[Black Mage]]
    • family: A valid family that the monster belongs to.
    • family2 An optional parameter to be used if a monster belongs to multiple families.
    • family3 Another optional parameter to be used if a monster belongs to multiple families.
    • crystal: Optional. Crystal that the monster drops.
      Valid values: Fire, Ice, Wind, Earth, Lightning, Water, Light, Dark
      Only provide a value if the monster can drop one.
  • Physical and Magical Traits
    • Important: For Notorious Monsters, do not use these parameters. Instead, use {{NM-Notes}}
    • weaknesses, resistances, immunities, absorbs
  • Notorious Monster
    • These parameters are only used for Notorious Monsters.
    • type: Monster type. Used for notorious monster types.
      Valid values: nm, notorious monster, znm, zeni notorious monster, vnm, voidwalker notorious monster, campaign leader, mega boss
      Any other value will be output as provided.
    • subtype: If the type is mega boss, provide the subtype category name.
    • tier: If the type is znm or vnm, provide the tier number.
      Valid values: 1, I, 2, II, 3, III, 4, IV, 5, V
      An invalid value will result in ?? Information Needed being displayed.
    • spawn: Optional. To be used on notorious monsters. Valid values are: Timed, Forced, Lottery, Unknown, Non-Standard, Mission & Quest. Also auto-categorizes.
    • title obtained: Optional. Title obtained for defeating the monster.
  • Additional Parameters
    • exp party type: Optional. To be used for the era+ exp camp types such as Magic Burst Monsters, Shatter EXP Camps and Alpha EXP Camp. Also auto-categorizes.
    • mob # level: Optional. To be used in conjunction with the "exp party type" parameter. When used it will auto-populate on their respective category pages. Can use numbers 1 through to 8 eg. "mob 1 level".
    • mob # area: Optional. To be used in conjunction with the "exp party type" parameter. When used it will auto-populate on their respective category pages. Can use numbers 1 through to 8 eg. "mob 1 area".

Examples

{{Infobox Monster
| name = Fafnir
| image = Fafnir.png
| image caption = Fafnir
| job = 
| family = Wyrms
| crystal = Fire
| weaknesses ={{Element|Water}}{{Element|Lightning}}
| resistances = {{element|Fire}}{{element|ice}}
| immunities = 
| absorbs = 
| type = Notorious Monster
| subtype = High Notorious Monster
| tier = 
| title obtained =  Fafnir Slayer (''[[Dragon's Aery]]'')
}}
Fafnir
Fafnir
Job:
Family: Wyrms
Family 2: [[:Category:{{{family2}}}|{{{family2}}}]]
Family 3: [[:Category:{{{family3}}}|{{{family3}}}]]
Crystal: Fire
Weak against: Water WaterLightning Lightning
Resistant to: Fire FireIce Ice
Immune to:
Absorbs:
Notorious Monster
Spawn Type:
Title Obtained: Fafnir Slayer (Dragon's Aery)
EXP Party Type: Verification Needed


{{Infobox Monster
| name = Bumblebee
| image = Bumblebee.jpg
| image caption = Bumblebee
| job = [[Warrior]]
| family = Bees
| crystal = Wind
| weaknesses = {{element|Ice}} {{Piercing}}
}}
Bumblebee
Bumblebee
Job: Warrior
Family: Bees
Family 2: [[:Category:{{{family2}}}|{{{family2}}}]]
Family 3: [[:Category:{{{family3}}}|{{{family3}}}]]
Crystal: Wind
Weak against: Ice Ice Piercing Weapons: Dagger, Polearm, Archery, Marksmanship, Shuriken, Sharpshot Frame
Resistant to:
Immune to:
Absorbs:
Spawn Type:
Title Obtained:
EXP Party Type: Verification Needed