Template:Infobox Monster: Difference between revisions
From HorizonXI Wiki
mNo edit summary |
mNo edit summary |
||
(55 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Templates|{{PAGENAME}}]] | |||
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!-- | |||
{{Infobox Monster | |||
| | |||
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}} | |||
| nm | | nm | ||
| notorious monster = [[Category:Notorious Monsters]] | | notorious monster = [[Category:Notorious Monsters]] | ||
Line 83: | 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}}}]]}} | ||
}}}}</ | }}}}<!-- | ||
{| | |||
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 based on spawn conditions | |||
-->{{categorize|{{{1|}}}|{{#switch:{{lc:{{{spawn}}}}}<!-- | |||
-->| timed spawn | timed = [[Category:Timed Spawn Notorious Monsters]]<!-- | |||
-->| forced spawn | forced = [[Category:Forced Spawn Notorious Monsters]]<!-- | |||
-->| lottery spawn | lottery = [[Category:Lottery Spawn Notorious Monsters]]<!-- | |||
-->| non-standard = [[Category:Non-standard Notorious Monsters]]<!-- | |||
-->| unknown Spawn | unknown = [[Category:Notorious Monsters with Unknown Spawn Conditions]]<!-- | |||
-->| mission = [[Category:Mission Notorious Monsters]]<!-- | |||
-->| quest = [[Category:Quest Notorious Monsters]]<!-- | |||
-->}}}}<!-- | |||
categorization based on exp camp type | |||
-->{{categorize|{{{1|}}}|{{#switch:{{lc:{{{exp party type}}}}}<!-- | |||
-->| magic burst mob | magic burst monster | mb mob | mb monster = [[Category:Magic Burst Monsters]]<!-- | |||
-->| alpha exp camp | alpha camp | alpha = [[Category:Alpha EXP Camps]]<!-- | |||
-->| shatter exp camp | shatter camp | shatter = [[Category:Shatter EXP Camps]]<!-- | |||
-->}}}}<!-- | |||
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}}}}} | |||
|- | |- | ||
! width=150px | [[Bestiary|Family]]: | |||
| | | {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|{{Information Needed|{{{1|}}}}}}} | ||
|- {{#if: {{{family2|}}}||style="display: none;"}} | |||
|- | ! [[Bestiary|Family 2]]: | ||
| [[:Category:{{{family2}}}|{{{family2}}}]] | |||
|- | |- {{#if: {{{family3|}}}||style="display: none;"}} | ||
! [[Bestiary|Family 3]]: | |||
|- | | [[:Category:{{{family3}}}|{{{family3}}}]] | ||
{{#if:{{{ | |- | ||
|- | ! [[Crystal]]: | ||
{{#if:{{{weaknesses|}}}| | | {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}} | ||
|- | |- {{#if:{{{weaknesses|}}}||style="display: none;"}} | ||
{{#if:{{{resistances|}}}| | ! [[Resistance|Weak against]]: | ||
|- | | {{{weaknesses}}} | ||
{{#if:{{{immunities|}}}| | |- {{#if:{{{resistances|}}}||style="display: none;"}} | ||
|- | ! [[Resistance|Resistant to]]: | ||
{{#if:{{{absorbs|}}}| | | {{{resistances}}} | ||
|- | |- {{#if:{{{immunities|}}}||style="display: none;"}} | ||
{{#if:{{{type|}}} | ! [[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}} | | 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 = ??}})}} | ||
| | |||
| 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 115: | Line 113: | ||
| 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:{{{ | }} | ||
- | |- {{#if:{{{spawn|}}}||style="display: none;"}} | ||
! [[:Category:Notorious Monsters|Spawn Type]]: | |||
| {{#switch:{{lc:{{{spawn|}}}}} | |||
| timed spawn | timed = [[:Category:Timed Spawn Notorious Monsters|{{{spawn}}}]] | |||
| forced spawn | forced = [[:Category:Forced Spawn Notorious Monsters|{{{spawn}}}]] | |||
| lottery spawn | lottery = [[:Category:Lottery Spawn Notorious Monsters|{{{spawn}}}]] | |||
| non-standard = [[:Category:Non-standard Notorious Monsters|{{{spawn}}}]] | |||
| unknown spawn | Unknown = [[:Category:Notorious Monsters with Unknown Spawn Conditions|{{{spawn}}}]] | |||
| mission = [[:Category:Mission Notorious Monsters|{{{spawn}}}]] | |||
| quest = [[:Category:Quest Notorious Monsters]]|{{{spawn}}} | |||
| #default = }} | |||
|- {{#if:{{{title obtained|}}}||style="display: none;"}} | |||
! [[Titles|Title Obtained]]: | |||
| {{{title obtained}}} | |||
|- {{#if:{{{exp party type|}}}||style="display: none;"}} | |||
! [[:Category:EXP Party Type|EXP Party Type]]: | |||
| {{#switch:{{lc:{{{exp party type|}}}}} | |||
| magic burst mob | magic burst monster | mb mob | mb monster = [[:Category:Magic Burst Monsters|Magic Burst Monster]] {{changes|These era+ types of monster are unique to Horizon.}} | |||
| alpha exp camp | alpha camp | alpha = [[:Category:Alpha EXP Camps|Alpha Camp]] {{changes|These era+ types of monster are unique to Horizon.}} | |||
| shatter exp camp | shatter camp | shatter = [[:Category:Shatter EXP Camps|Shatter Camp]] {{changes|These era+ types of monster are unique to Horizon.}} | |||
| #default = {{verification}}}} | |||
|} | |} | ||
{ | <!-- the following parameters are phantom parameters that are used on mob pages which fall into the magic burst mob, shatter & alpha exp camp categories. Users define these parameters to trigger their appearance in dpl tables on their respective category pages. These parameters could be also be used for other purposes at a later date, hence their record being listed here. | ||
{{{mob 1 level}}} | |||
{{{mob 1 area}}} | |||
{{{mob 2 level}}} | |||
{{{mob 2 area}}} | |||
{{{mob 3 level}}} | |||
{{{mob 3 area}}} | |||
{{{mob 4 level}}} | |||
{{{mob 4 area}}} | |||
{{{mob 5 level}}} | |||
{{{mob 5 area}}} | |||
{{{mob 6 level}}} | |||
{{{mob 6 area}}} | |||
{{{mob 7 level}}} | |||
{{{mob 7 area}}} | |||
{{{mob 8 level}}} | |||
{{{mob 8 area}}} | |||
--> | |||
</div></div> | |||
</onlyinclude></includeonly> | |||
==Usage== | |||
{{Infobox Monster/Documentation}} |
Latest revision as of 00:37, 12 November 2024
Usage
no Header information for a Bestiary monster entry.
- See Also: Template:Monster Information
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.
- image: Filename of the monster image.
- 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 ?? 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 | |
---|---|
Family: | Wyrms |
Crystal: | Fire |
Weak against: | |
Resistant to: | |
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}} }}