Template:Infobox Monster: Difference between revisions

From HorizonXI Wiki
m (added remaining jobs to job parameter switch.)
m ({{lc: converts to lower case so only lower case checks required in switch:{{lc:...}} statement)
Line 81: Line 81:
|- {{#if:{{{job|}}}||style="display: none;"}}
|- {{#if:{{{job|}}}||style="display: none;"}}
! [[Job]]:
! [[Job]]:
| {{#switch:{{lc:{{{job|}}}}}<!--
| {{#switch:{{lc:{{{job|}}}}}
-->|war|WAR|[[WAR]] = [[Warrior]]|monk|MNK|[[MNK]] = [[Monk]]|thf|THF|[[THF]] = [[Thief]]|blm|BLM|[[BLM]] = [[Black Mage]]|whm|WHM|[[WHM]] = [[White Mage]]|rdm|RDM|[[RDM]] = [[Red Mage]]|pld|PLD|[[PLD]] = [[Paladin]]|drk|DRK|[[DRK]] = [[Dark Knight]]|rng|RNG|[[RNG]] = [[Ranger]]|brd|BRD|[[BRD]] = [[Bard]]|bst|BST|[[BST]] = [[Beastmaster]]|smn|SMN|[[SMN]] = [[Summoner]]|drg|DRG|[[DRG]] = [[Dragoon]]|nin|NIN|[[NIN]] = [[Ninja]]|sam|SAM|[[SAM]] = [[Samurai]]|pup|PUP|[[PUP]] = [[Puppetmaster]]|blu|BLU|[[BLU]] = [[Blue Mage]]|cor|COR|[[COR]] = [[Corsair]]|DNC|DNC|[[DNC]] = [[Dancer]]|sch|SCH|[[SCH]] = [[Scholar]]|run|RUN|[[RUN]] = [[Rune Fencer]]|geo|GEO|[[GEO]] = [[Geomancer]]|{{{job}}}}}
|war|[[war]] = [[Warrior]]
|mnk|[[mnk]] = [[Monk]]
|thf|[[thf]] = [[Thief]]
|blm|[[blm]] = [[Black Mage]]
|whm|[[whm]] = [[White Mage]]
|rdm|[[rdm]] = [[Red Mage]]
|pld|[[pld]] = [[Paladin]]
|drk|[[drk]] = [[Dark Knight]]
|rng|[[rng]] = [[Ranger]]
|brd|[[brd]] = [[Bard]]
|bst|[[bst]] = [[Beastmaster]]
|smn|[[smn]] = [[Summoner]]
|drg|[[drg]] = [[Dragoon]]
|nin|[[nin]] = [[Ninja]]
|sam|[[sam]] = [[Samurai]]
|pup|[[pup]] = [[Puppetmaster]]
|blu|[[blu]] = [[Blue Mage]]
|cor|[[cor]] = [[Corsair]]
|DNC|[[dnc]] = [[Dancer]]
|sch|[[sch]] = [[Scholar]]
|run|[[run]] = [[Rune Fencer]]
|geo|[[geo]] = [[Geomancer]]
|#default={{{job}}}}}
|-
|-
! width=150px | [[Bestiary|Family]]:
! width=150px | [[Bestiary|Family]]:
Line 124: Line 146:
</onlyinclude></includeonly>
</onlyinclude></includeonly>
==Usage==
==Usage==
 
{{#ifeq:{{lc:[[WAR]]}}|[[WAR]]|yes|no}}
Header information for a {{Cl|Bestiary}} monster entry.
Header information for a {{Cl|Bestiary}} monster entry.



Revision as of 14:56, 10 September 2024


Usage

no 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.
    • title obtained: Optional. Title obtained for defeating the monster.

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
Title Obtained: Fafnir Slayer (Dragon's Aery)


{{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:
Title Obtained: