Template:Infobox Monster: Difference between revisions

From HorizonXI Wiki
(Undo revision 59086 by Aramachus (talk))
Tag: Undo
mNo edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
{{Tocright}}
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!--
==Usage==
 
Header information for a {{Cl|Bestiary}} monster entry.
 
* See Also:
** {{Tl|Monster}}
** {{Tl|NM-Notes}}
 
===Syntax===
 
<pre>
{{Infobox Monster
| image = <!-- Image filename. LEAVE BLANK if one is not available. -->
| image caption = <!-- Optional image caption -->
| job = [[<job>]] <!-- Monster's job. Multiples may be provided. -->
| family = <!-- Valid values are at Category:Bestiary -->
| family2 = <!-- Optional parameter for additional family types -->
| family3 = <!-- Optional parameter for additional family types -->
| crystal = <!-- If the monster drops a crystal, provide the ELEMENT name -->
<!-- REGULAR MOB TRAITS -->
| weaknesses =
| resistances =
| immunities =
| absorbs =
<!-- NOTORIOUS MONSTER -->
| type = <!-- nm, notorious monster, znm, zeni notorious monster, vnm, voidwalker notorious monster, campaign leader, mega boss -->
| subtype = <!-- "mega boss" subtype -->
| tier = <!-- znm or vnm tier number -->
| title obtained =
}}
</pre>
 
'''Without comments:'''
 
<pre>
{{Infobox Monster
| image =
| image caption =
| job =
| family =
| family2 =
| family3 =
| crystal =
| weaknesses =
| resistances =
| immunities =
| absorbs =
| type =
| subtype =
| tier =
| title obtained =
}}
</pre>
 
===Parameters===


* <u>Basics</u>
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}}
** '''image:''' Filename of the monster image.<br/>If one is not available, ''leave this blank.'' It will insert the {{Tl|Mob-image-stub}} template.
** '''image caption:''' ''Optional.'' Caption for the image.
** '''job:''' {{Cl|Jobs|Job(s)}} of the monster. ''Example'': <code style="font-size:1.2em;"><nowiki>[[Black Mage]]</nowiki></code>
** '''family:''' A valid {{Cl|Bestiary|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.<br/>Valid values: ''Fire, Ice, Wind, Earth, Lightning, Water, Light, Dark''<br/>''Only provide a value if the monster can drop one.''{{Spc}}
* <u>Physical and Magical Traits</u>
** ''Important'': For {{Cl|Notorious Monsters}}, do not use these parameters. Instead, use {{Tl|NM-Notes}}
** '''weaknesses''', '''resistances''', '''immunities''', '''absorbs'''{{Spc}}
* <u>Notorious Monster</u>
** ''These parameters are only used for {{Cl|Notorious Monsters}}.''
** '''type:''' Monster type. Used for notorious monster types.<br/>Valid values: ''nm, notorious monster, znm, zeni notorious monster, vnm, voidwalker notorious monster, campaign leader, mega boss''<br/>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.<br/>Valid values: ''1, I, 2, II, 3, III, 4, IV, 5, V''<br/>An invalid value will result in '''??''' {{Information Needed|nc}} being displayed.{{Spc}}
** '''title obtained:''' ''Optional.'' Title obtained for defeating the monster.
 
==Default Output==
</noinclude><onlyinclude>{|width="100%"
|<includeonly>{{#switch:{{lc:{{{1|}}}}}|nc|no category=|#default=[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}}
| nm
| nm
| notorious monster = [[Category:Notorious Monsters]]
| notorious monster = [[Category:Notorious Monsters]]
Line 88: Line 13:
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
}}}}</includeonly>
}}}}<!--
{|width="100%" cellspacing="0"
 
categorizations based on mob family types
-->{{#if:{{{family|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family}}}
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
-->{{#if:{{{family2|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family2}}}
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
-->{{#if:{{{family3|}}}|{{categorize|{{{1|}}}|[[Category:{{#dpl:
|title=Category:{{{family3}}}
|include={Infobox Mob Family}:System
}}]]}}|}}<!--
 
Categorization End
Start of actual code
 
--><div class="flex-container" style="flex-direction: row-reverse;"><div class="flex-container-item-2">{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|right|{{{image caption|{{PAGENAME}}}}}]]{{#if:{{{alternate image|}}}|[[File:{{{alternate image}}}|thumb|{{{alternate image caption|{{PAGENAME}}}}}]]}}|{{Mob-image-stub|{{{1|}}}}}}}</div><div class="flex-container-item-2">
{| class="left-col-1 horizon-infobox {{#if:{{{type|}}}|infobox-nms|infobox-mobs}}"
|- class="infobox-{{#if:{{{type|}}}|nms|mobs}}-header"
! style="text-align: center;" colspan=2 | [[{{{name|{{PAGENAME}}}}}]]
|- {{#if:{{{job|}}}||style="display: none;"}}
! [[Job]]:
| {{#switch:{{lc:{{{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}}}}}
|-
|-
{{#if:{{{job|}}}|{{!}} '''[[Job]]:''' {{{job}}}|}}
! width=150px | [[Bestiary|Family]]:
|-
| {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|{{Information Needed|{{{1|}}}}}}}
| '''[[Bestiary|Family]]:''' {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|<noinclude>{{Information Needed|nc}}</noinclude><includeonly>{{Information Needed|{{{1|}}}}}</includeonly>}}
|- {{#if: {{{family2|}}}||style="display: none;"}}
|-
! [[Bestiary|Family 2]]:
| {{#if: {{{family2|}}} | '''[[Bestiary|Family 2]]:''' [[:Category:{{{family2}}}|{{{family2}}}]]|}}
| [[:Category:{{{family2}}}|{{{family2}}}]]
|-
|- {{#if: {{{family3|}}}||style="display: none;"}}
| {{#if: {{{family3|}}} | '''[[Bestiary|Family 3]]:''' [[:Category:{{{family3}}}|{{{family3}}}]]|}}
! [[Bestiary|Family 3]]:
|-
| [[:Category:{{{family3}}}|{{{family3}}}]]
| '''[[Crystal]]:''' {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}}
|-  
|-
! [[Crystal]]:
{{#if:{{{weaknesses|}}}{{{resistances|}}}{{{immunities|}}}{{{absorbs|}}}|{{!}}&nbsp;|}}
| {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}}
|-
|- {{#if:{{{weaknesses|}}}||style="display: none;"}}
{{#if:{{{weaknesses|}}}|{{!}} '''[[Resistance|Weak against]]:''' {{{weaknesses}}}|}}
! [[Resistance|Weak against]]:  
|-
| {{{weaknesses}}}
{{#if:{{{resistances|}}}|{{!}} '''[[Resistance|Resistant to]]:''' {{{resistances}}}|}}
|- {{#if:{{{resistances|}}}||style="display: none;"}}
|-
! [[Resistance|Resistant to]]:  
{{#if:{{{immunities|}}}|{{!}} '''[[Resistance|Immune to]]:''' {{{immunities}}}|}}
| {{{resistances}}}
|-
|- {{#if:{{{immunities|}}}||style="display: none;"}}
{{#if:{{{absorbs|}}}|{{!}} '''[[Resistance|Absorbs]]:''' {{{absorbs|}}}|}}
! [[Resistance|Immune to]]:  
|-
| {{{immunities}}}
{{#if:{{{type|}}}{{{title|}}}|{{!}}&nbsp;|}}
|- {{#if:{{{absorbs|}}}||style="display: none;"}}
|-
! [[Resistance|Absorbs]]:
| {{#if:{{{type|}}}|{{#switch:{{lc:{{{type|}}}}}
| {{{absorbs|}}}
|- {{#if:{{{type|}}}||style="display: none;"}}
! style="text-align: center;" colspan=2 | {{#switch:{{lc:{{{type|}}}}}
| notorious monster = {{Colorlink|NM|Notorious Monster}}
| notorious monster = {{Colorlink|NM|Notorious Monster}}
| henm = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| henm | hyper empty notorious monster = {{Colorlink|NM|Hyper Empty Notorious Monster|Hyper Empty Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|5|V = V|#default = ??}})}}
| hyper empty notorious monster = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| zeni notorious monster = {{Colorlink|NM|Zeni Notorious Monsters|Zeni Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|5|V = V|#default = ??}})}}
| zeni notorious monster = {{Colorlink|NM|Zeni Notorious Monsters|Zeni Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|5|V = V|#default = ??}})}}
| voidwalker notorious monster = {{Colorlink|NM|Voidwalker Notorious Monsters|Voidwalker Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|#default = ?? {{Information Needed|{{{1|}}}}} }})}}
| voidwalker notorious monster = {{Colorlink|NM|Voidwalker Notorious Monsters|Voidwalker Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|#default = ?? {{Information Needed|{{{1|}}}}} }})}}
Line 122: Line 95:
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| #default = {{{type}}}
| #default = {{{type}}}
}}{{#if:{{{title obtained|}}}|<br/>}}}}<!--
}}
-->{{#if:{{{title obtained|}}}|'''[[Titles|Title Obtained]]:''' {{{title obtained}}}|}}
|- {{#if:{{{title obtained|}}}||style="display: none;"}}
|}
! [[Titles|Title Obtained]]:  
|align="right" width="38%"|
| {{{title obtained}}}
{|width="100%"
|}</div></div>
| {{#if:{{{image|}}}|[[File:{{{image}}}|thumb|right|{{{image caption|{{PAGENAME}}}}}]]{{#if:{{{alternate image|}}}|{{!}}{{!}} [[File:{{{alternate image}}}|thumb|{{{alternate image caption|{{PAGENAME}}}}}]]}}|<noinclude>{{Mob-image-stub|nc}}</noinclude><includeonly>{{Mob-image-stub|{{{1|}}}}}</includeonly>}}
</onlyinclude></includeonly>
|}
==Usage==
|}</onlyinclude>
{{Infobox Monster/Documentation}}

Latest revision as of 23:17, 13 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: