Template:Test: Difference between revisions

From HorizonXI Wiki
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Templates|{{PAGENAME}}]]
<includeonly><onlyinclude>__NOTOC__{{Battlefield Header/Help|{{{1}}}}}
<includeonly><onlyinclude> {{Infobox Monster/Help|{{{1}}}}}<!--
{| class="horizon-table bcnm-table bcnm-table-border table-xs"
 
! colspan=2 | {{PAGENAME}}
start categorizations
|- valign="top"
categorization based on mob family. The part in the ifexist check categorizes the family type by getting it from the mob family category page.
!width="30%" class="bcnm-table-alt | Type:
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}|[[Category:{{{family}}}]]{{#ifexist:Category:{{{family}}}|[[Category:{{#dpl:
|width="70%" | {{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
|title=Category:{{{family}}}
| bcnm = [[:Category:BCNM|BCNM]] [[Category:BCNM]] [[Category:Battlefields]]
|include={Infobox Mob Family}:System
| ksnm = [[:Category:KSNM|KSNM]] [[Category:KSNM]] [[Category:Battlefields]]
}}]]}}{{#if:{{{family2|}}}|[[Category:{{{family2}}}]]{{#ifexist:Category:{{{family2}}}|[[Category:{{#dpl:
| enm = [[:Category:ENM|ENM]] [[Category:ENM]] [[Category:Battlefields]]
|title=Category:{{{family2}}}
| isnm = [[:Category:ISNM|ISNM]] [[Category:ISNM]] [[Category:Battlefields]]
|include={Infobox Mob Family}:System
| znm = [[:Category:ZNM|ZNM]] [[Category:ZNM]] [[Category:Battlefields]]{{#if:{{{tier|}}}| (Tier {{#switch:{{lc:{{{tier}}}}}|1|i = I|2|ii = II|3|iii = III|4|iv = IV|5|v = V|#default=??}})}}
}}]]}}{{#if:{{{family3|}}}|[[Category:{{{family3}}}]]{{#ifexist:Category:{{{family3}}}|[[Category:{{#dpl:
| henm = [[:Category:HENM|HENM]] [[Category:HENM]] [[Category:Battlefields]]{{#if:{{{tier|}}}| (Tier {{#switch:{{lc:{{{tier}}}}}|1|i = I|2|ii = II|3|iii = III|4|iv = IV|5|v = V|#default=??}})}}
|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]]:
| {{#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}}}]]
|-
! [[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 = ??}})}}
| 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}}
| ksnm | kindred seal notorious monster = {{Colorlink|NM|KSNM|Kindred Seal Notorious Monster}}
| campaign leader = {{Colorlink|NM|{{{subtype|Campaign}}}|Campaign Leader}}
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| #default = {{{type}}}
| #default = {{{type}}}
}}
}}|}}
|- {{#if:{{{bcnm name|}}}||style="display: none;"}}
|- valign="top"
! [[:Category:BCNM|BCNM]]:
! class="bcnm-table-alt" | Zone:
| [[{{{bcnm name}}}|{{{bcnm name}}}]]
| [[{{{zone}}}]]{{#if:{{{location|}}}|<br><nowiki />
|- {{#if:{{{ksnm name|}}}||style="display: none;"}}
:''{{{location}}}''}}
! [[:Category:KSNM|KSNM]]:
|- valign="top"
| [[{{{ksnm name}}}|{{{ksnm name}}}]]
! class="bcnm-table-alt" | Entry Item:
|- {{#if:{{{znm name|{{{isnm name|}}}}}}||style="display: none;"}}
| {{#ifeq:{{lc:{{{type}}}}}|enm|{{KeyItem}}|}}[[{{{entry item}}}]]
! [[:Category:ZNM|ZNM]]:
|- valign="top"
| [[{{{znm name|{{{isnm name}}}}}}|{{{znm name|{{{isnm name}}}}}}]]
! class="bcnm-table-alt" | Level:
|- {{#if:{{{henm name|}}}||style="display: none;"}}
| {{{level}}}
! [[:Category:HENM|HENM]]:
|- valign="top"
| [[{{{henm name}}}|{{{henm name}}}]]
! class="bcnm-table-alt" | Members:
|- {{#if:{{{spawn|}}}||style="display: none;"}}
| {{{members}}}
! [[:Category:Notorious Monsters|Spawn Type]]:
|- valign="top"
| {{#switch:{{lc:{{{spawn|}}}}}
! class="bcnm-table-alt" | Time:
| timed spawn | timed = [[:Category:Timed Spawn Notorious Monsters|Timed]]
| {{{time}}}
| forced spawn | forced = [[:Category:Forced Spawn Notorious Monsters|Forced]]
|- valign="top" {{#if: {{{notes|}}}||style="display: none;"}}
| lottery spawn | lottery = [[:Category:Lottery Spawn Notorious Monsters|Lottery]]
! class="bcnm-table-alt" | Additional Information:
| non-standard = [[:Category:Non-standard Notorious Monsters|Non-Standard]]
| {{#if: {{{notes|}}} |{{{notes}}}|}}
| 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==
{{Battlefield Header/Documentation}}
{{Infobox Monster/Documentation}}

Revision as of 15:55, 27 July 2025

Documentation

  • name: - (Optional) No input is needed for the name of the battlefield, this will self-populate. In cases where the page name deviates from the battlefield title, name can be used to specify the name of the battlefield manually.
  • type: - Links and auto-categorizes to Category:Battlefields and the type of battlefield eg. BCNM, KSNM, ENM or ISNM, which are all accepted inputs. Mission and Quest are also possible.
    • mission affiliation: - (Optional) If type is set to Mission or Quest, this parameter can be set to specify which storyline the battlefield belongs to, e.g. "San d'Oria", "Treasures of Aht Urhgan", etc. Commonly used abbreviations like "toau", "sandy", or "windy" are also accepted. This will set the color of the battlefield header according to the type of content!
  • zone: - Zone where the battlefield is located.
  • location: - (Optional) Coordinates of the battlefield. e.g. F-10, G-9, A-1, etc.
  • location add: - (Optional) Additional information about where to find the battlefield.
  • level: - Level cap of the battlefield. Use "75" if there are no restrictions.
  • members: - Maximum number of players that can participate in the battlefield.
  • time: - Time limit of the battlefield.
  • entry item: - The item or key item that is required to enter the battlefield.
  • notes: - Any additional important information about the battlefield.

Usage

{{Battlefield Header
| type = 
| zone = 
| mission affiliation =
| location = 
| location add =
| level = 
| members = 
| time = 
| entry item = 
| notes = 
}}

Examples

Example 1

Test
Type: BCNM
Zone: Horlais Peak
Entry Item: Cloudy Orb
Level: 20
Members: 3
Time: 15 minutes
{{Battlefield Header
| type = BCNM
| zone = Horlais Peak
| level = 20
| members = 3
| time = 15 minutes
| entry item = Cloudy Orb
}}

Example 2

Test
Type: BCNM
Zone: Ghelsba Outpost (F-10)
Near the Hut Door.
Entry Item: Cloudy Orb
Level: 20
Members: 3
Time: 15 minutes
Additional Information: Notes optionally go here.
{{Battlefield Header
| type = BCNM
| zone = Ghelsba Outpost
| level = 20
| members = 3
| time = 15 minutes
| location = F-10
| location add = Near the Hut Door.
| entry item = Cloudy Orb
| notes = Notes optionally go here.
}}