Template:Test: Difference between revisions

From HorizonXI Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Templates|{{PAGENAME}}]]
<includeonly><onlyinclude>
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!--
 
start categorizations
categorization based on mob family. The part in the ifexist check categorizes the family type by getting it from the mob family category page.
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}|[[Category:{{{family}}}]]{{#ifexist:Category:{{{family}}}|[[Category:{{#dpl:
|title=Category:{{{family}}}
|include={Infobox Mob Family}:System
}}]]}}{{#if:{{{family2|}}}|[[Category:{{{family2}}}]]{{#ifexist:Category:{{{family2}}}|[[Category:{{#dpl:
|title=Category:{{{family2}}}
|include={Infobox Mob Family}:System
}}]]}}{{#if:{{{family3|}}}|[[Category:{{{family3}}}]]{{#ifexist:Category:{{{family3}}}|[[Category:{{#dpl:
|title=Category:{{{family3}}}
|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
-->{{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]]<!--
-->| bcnm =            <!-- BCNM spawn – no categorisation --><!--
-->}}}}<!--
 
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]]:
| class="nms" | [[{{{Name|}}}]]{{#switch: {{lc:{{{claimshield|}}}}}
| {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|{{Information Needed|{{{1|}}}}}}}
| true= &nbsp;{{claimshield}}
|- {{#if: {{{family2|}}}||style="display: none;"}}
| #default =
! [[Bestiary|Family 2]]:
| [[:Category:{{{family2}}}|{{{family2}}}]]
|- {{#if: {{{family3|}}}||style="display: none;"}}
! [[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 | 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 | znm | isnm = {{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 = ??}})}}{{#if:{{{znm name|{{{isnm name|}}}}}}|<br>[[{{{znm name|{{{isnm name}}}}}}|{{{znm name|{{{isnm name}}}}}}]]}}
| voidwalker notorious monster | vnm = {{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|}}}}} }})}}
| bcnm | burning circle notorious monster = {{Colorlink|NM|BCNM|Burning Circle Notorious Monster}}{{#if:{{{bcnm name|}}}|<br>[[{{{bcnm name}}}|{{{bcnm name}}}]]}}
| ksnm | kindred seal notorious monster = {{Colorlink|NM|KSNM|Kindred Seal Notorious Monster}}{{#if:{{{ksnm name|}}}|<br>[[{{{ksnm name}}}|{{{ksnm name}}}]]}}
| campaign leader = {{Colorlink|NM|{{{subtype|Campaign}}}|Campaign Leader}}
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| #default = {{{type}}}
}}
}}
|- {{#if:{{{spawn|}}}||style="display: none;"}}
:<small>{{{Spawn|}}}</small>
! [[:Category:Notorious Monsters|Spawn Type]]:
|align="center" class="nms" | {{{Lvl|Unknown}}}
| {{#switch:{{lc:{{{spawn|}}}}}
|align="center" class="nms" | {{{Drop|}}}
| timed spawn | timed = [[:Category:Timed Spawn Notorious Monsters|Timed]]
|align="center" class="nms" | {{{Steal|}}}
| forced spawn | forced = [[:Category:Forced Spawn Notorious Monsters|Forced]]
|align="center" class="nms" | [[:Category:{{{Family|}}}|{{{Family|}}}]]
| lottery spawn | lottery = [[:Category:Lottery Spawn Notorious Monsters|Lottery]]
|align="center" valign="center" class="nms" | {{{NumSpawns|}}}<br><br>
| non-standard = [[:Category:Non-standard Notorious Monsters|Non-Standard]]
|align="center" class="nms" | {{{Note|}}}
| unknown spawn | Unknown = [[:Category:Notorious Monsters with Unknown Spawn Conditions|Unknown]]
| mission = [[:Category:Mission Notorious Monsters|Mission]]
| quest = [[:Category:Quest Notorious Monsters|Quest]]|{{{Quest}}}
| bcnm = {{#if:{{{bcnm name|}}}|[[{{{bcnm name}}}|BCNM]]|[[BCNM|BCNM]]}}
| #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>
</onlyinclude></includeonly>
==Usage==
<noinclude>[[Category:Templates|{{PAGENAME}}]]
{{Infobox Monster/Documentation}}
</noinclude>

Latest revision as of 18:43, 25 October 2025