Template:Infobox Monster: Difference between revisions

From HorizonXI Wiki
mNo edit summary
(Undo revision 59490 by Aramachus (talk))
Tag: Undo
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
{{Tocright}}
<includeonly><onlyinclude>__NOTOC__<!--
==Usage==


Header information for a {{Cl|Bestiary}} monster entry.
Cheat sheet that is only visible during preview
 
-->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre>{{Infobox Monster
* See Also:
| image =
** {{Tl|Monster}}
| image caption =
** {{Tl|Mob-Details}}
| job =
** {{Tl|NM-Notes}}
| family =
 
| family2 =
===Syntax===
| family3 =
 
| crystal =
<pre>
| weaknesses =
{{Infobox Monster
| resistances =  
| immunities =  
| absorbs =  
| type =  
| subtype =  
| tier =  
| title obtained =
}}</pre>
|disable={{{1|}}}}}<!--
-->|#default={{Preview Only Infobox|<pre>{{Infobox Monster
| image = <!-- Image filename. LEAVE BLANK if one is not available. -->
| image = <!-- Image filename. LEAVE BLANK if one is not available. -->
| image caption = <!-- Optional image caption -->
| image caption = <!-- Optional image caption -->
| job = [[<job>]] <!-- Monster's job. Multiples may be provided. -->
| job = [[<job>]] <!-- Monster's job. Multiples may be provided. -->
| family = <!-- Valid values are at Category:Bestiary -->
| 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 -->
| crystal = <!-- If the monster drops a crystal, provide the ELEMENT name -->
<!-- REGULAR MOB TRAITS -->
<!-- REGULAR MOB TRAITS -->
Line 30: Line 40:
| title obtained =  
| title obtained =  
}}
}}
</pre>
</pre>|disable={{{1|}}}}}}}<!--
 
End of preview only infobox part
start of categorizations
 
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#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}}}]]}}
}}}}<!--
 
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
}}]]}}|}}<!--


'''Without comments:'''
Categorization End
Start of actual code


<pre>
--><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">
{{Infobox Monster
{| class="left-col-1 horizon-infobox {{#if:{{{type|}}}|infobox-nms|infobox-mobs}}"
| image =  
|- class="infobox-{{#if:{{{type|}}}|nms|mobs}}-header"
| image caption =  
! style="text-align: center;" colspan=2 | [[{{{name|{{PAGENAME}}}}}]]
| job =  
|- {{#if:{{{job|}}}||style="display: none;"}}
| family =  
! [[Job]]:
| crystal =  
| {{{job}}}
| weaknesses =  
|-
| resistances =  
! width=150px | [[Bestiary|Family]]:
| immunities =  
| {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|{{Information Needed|{{{1|}}}}}}}
| absorbs =  
|- {{#if: {{{family2|}}}||style="display: none;"}}
| type =  
! [[Bestiary|Family 2]]:
| subtype =  
| [[:Category:{{{family2}}}|{{{family2}}}]]
| tier =  
|- {{#if: {{{family3|}}}||style="display: none;"}}
| title obtained =  
! [[Bestiary|Family 3]]:
| [[:Category:{{{family3}}}|{{{family3}}}]]
|-
! [[Crystal]]:
| {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}}
|- {{#if:{{{weaknesses|}}}||style="display: none;"}}
! [[Resistance|Weak against]]:
| {{{weaknesses}}}
|- {{#if:{{{resistances|}}}||style="display: none;"}}
! [[Resistance|Resistant to]]:
| {{{resistances}}}
|- {{#if:{{{immunities|}}}||style="display: none;"}}
! [[Resistance|Immune to]]:
| {{{immunities}}}
|- {{#if:{{{absorbs|}}}||style="display: none;"}}
! [[Resistance|Absorbs]]:
| {{{absorbs|}}}
|- {{#if:{{{type|}}}||style="display: none;"}}
! style="text-align: center;" colspan=2 | {{#switch:{{lc:{{{type|}}}}}
| notorious monster = {{Colorlink|NM|Notorious Monster}}
| henm = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| 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 = ??}})}}
| 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|}}}}} }})}}
| campaign leader = {{Colorlink|NM|{{{subtype|Campaign}}}|Campaign Leader}}
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| #default = {{{type}}}
}}
}}
</pre>
|- {{#if:{{{title obtained|}}}||style="display: none;"}}
! [[Titles|Title Obtained]]:
| {{{title obtained}}}
|}</div></div>
</onlyinclude></includeonly>
==Usage==
 
Header information for a {{Cl|Bestiary}} monster entry.
 
* See Also: [[Template:Monster Information]]


===Parameters===
===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 {{fontaccent|<nowiki>{{Infobox Monster|bp}}</nowiki>}} and copy the boilerplate from the preview only)


* <u>Basics</u>
* <u>Basics</u>
Line 59: Line 139:
** '''job:''' {{Cl|Jobs|Job(s)}} of the monster. ''Example'': <code style="font-size:1.2em;"><nowiki>[[Black Mage]]</nowiki></code>
** '''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.
** '''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}}
** '''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>
* <u>Physical and Magical Traits</u>
Line 70: Line 152:
** '''title obtained:''' ''Optional.'' Title obtained for defeating the monster.
** '''title obtained:''' ''Optional.'' Title obtained for defeating the monster.


==Default Output==
===Examples===
</noinclude><onlyinclude>{|width="100%"
<pre>
|<includeonly>{{#switch:{{lc:{{{1|}}}}}|nc|no category=|#default=[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}}
{{Infobox Monster
| nm
| name = Fafnir
| notorious monster = [[Category:Notorious Monsters]]
| image = Fafnir.png
| henm
| image caption = Fafnir
| hyper empty notorious monster = [[Category:HENM]][[Category:Notorious Monsters]]
| job =
| znm
| family = Wyrms
| zeni notorious monster = [[Category:Notorious Monsters]][[Category:Zeni Notorious Monsters]]
| crystal = Fire
| vnm
| weaknesses ={{Element|Water}}{{Element|Lightning}}
| voidwalker notorious monster = [[Category:Notorious Monsters]][[Category:Voidwalker Notorious Monsters]]
| resistances = {{element|Fire}}{{element|ice}}
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| immunities =
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
| absorbs =  
}}}}</includeonly>
| type = Notorious Monster
{|width="100%" cellspacing="0"
| subtype = High Notorious Monster
|-
| tier =  
{{#if:{{{job|}}}|{{!}} '''[[Job]]:''' {{{job}}}|}}
| title obtained = Fafnir Slayer (''[[Dragon's Aery]]'')
|-
}}
| '''[[Bestiary|Family]]:''' {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|<noinclude>{{Information Needed|nc}}</noinclude><includeonly>{{Information Needed|{{{1|}}}}}</includeonly>}}
</pre>
|-
{{Infobox Monster|nc
| {{#if: {{{family2|}}} | '''[[:Category:{{{family2}}}|{{{family 2}}}]]'''|}}
| name = Fafnir
|-
| image = Fafnir.png
| '''[[Crystal]]:''' {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}}
| image caption = Fafnir
|-
| job =
{{#if:{{{weaknesses|}}}{{{resistances|}}}{{{immunities|}}}{{{absorbs|}}}|{{!}}&nbsp;|}}
| family = Wyrms
|-
| crystal = Fire
{{#if:{{{weaknesses|}}}|{{!}} '''[[Resistance|Weak against]]:''' {{{weaknesses}}}|}}
| weaknesses ={{Element|Water}}{{Element|Lightning}}
|-
| resistances = {{element|Fire}}{{element|ice}}
{{#if:{{{resistances|}}}|{{!}} '''[[Resistance|Resistant to]]:''' {{{resistances}}}|}}
| immunities =
|-
| absorbs =
{{#if:{{{immunities|}}}|{{!}} '''[[Resistance|Immune to]]:''' {{{immunities}}}|}}
| type = Notorious Monster
|-
| subtype = High Notorious Monster
{{#if:{{{absorbs|}}}|{{!}} '''[[Resistance|Absorbs]]:''' {{{absorbs|}}}|}}
| tier =
|-
| title obtained =  Fafnir Slayer (''[[Dragon's Aery]]'')
{{#if:{{{type|}}}{{{title|}}}|{{!}}&nbsp;|}}
}}
|-
 
| {{#if:{{{type|}}}|{{#switch:{{lc:{{{type|}}}}}
<pre>
| notorious monster = {{Colorlink|NM|Notorious Monster}}
{{Infobox Monster
| henm = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| name = Bumblebee
| hyper empty notorious monster = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| image = Bumblebee.jpg
| 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 = ??}})}}
| image caption = Bumblebee
| 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|}}}}} }})}}
| job = [[Warrior]]
| campaign leader = {{Colorlink|NM|{{{subtype|Campaign}}}|Campaign Leader}}
| family = Bees
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| crystal = Wind
| #default = {{{type}}}
| weaknesses = {{element|Ice}} {{Piercing}}
}}{{#if:{{{title obtained|}}}|<br/>}}}}<!--
}}
-->{{#if:{{{title obtained|}}}|'''[[Titles|Title Obtained]]:''' {{{title obtained}}}|}}
</pre>
|}
{{Infobox Monster
|align="right" width="38%"|
| name = Bumblebee
{|width="100%"
| image = Bumblebee.jpg
| {{#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>}}
| image caption = Bumblebee
|}
| job = [[Warrior]]
|}</onlyinclude>
| family = Bees
| crystal = Wind
| weaknesses = {{element|Ice}} {{Piercing}}
| resistances =  
| immunities =  
| absorbs =  
| type =
| subtype =
| tier =  
| title obtained =  
}}

Revision as of 12:17, 6 August 2024


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.
    • 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: