Template:ArmorTable: Difference between revisions

From HorizonXI Wiki
(improvement to regex syntax)
m (included horizon changes by section rather than template call to distinguish no changes from unknown)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude><!--
<includeonly><onlyinclude><!--
-->{{#dpl:
-->{{#if:{{{collapse|}}}|<div class="mw-collapsible {{#switch: {{{collapse}}}|expanded=|collapsed=mw-collapsed|#default=mw-collapsed}}"><br>|}}
{{#dpl:
|category = {{{cat1}}}
|category = {{{cat1}}}
|category = {{{cat2|}}}
|category = {{{cat2|}}}
Line 7: Line 8:
|notcategory = {{{notcat2|}}}
|notcategory = {{{notcat2|}}}
|notcategory = {{{notcat3|}}}
|notcategory = {{{notcat3|}}}
|title = {{{title1|}}}
|title = {{{title2|}}}
|title = {{{title3|}}}
|title = {{{title4|}}}
|title = {{{title5|}}}
|title = {{{title6|}}}
|count = {{{count|}}}
|count = {{{count|}}}
|include={Item Statistics¦ArmorTable.dpl},{HorizonChangesBox}
|include={{#if:{{{tooltip|}}}|{Item Statistics¦Item_Tooltip.dpl}|{Item Statistics}:[[%PAGE%|%TITLE%]]}},{Item Statistics¦ArmorTable.dpl},##Horizon Changes.*
|includematch = {{#if:{{{job|}}}|/jobs\s*=(?:\b¦\s)\[\[{{{job}}}\]\](?:\b¦\s)¦jobs\s*=\s*all\s*/|}}
|includematch = {{#if:{{{job|}}}|/jobs\s*=.*\[\[{{{job}}}\]\].*¦jobs\s*=\s*All\sJobs\s*¦(?s)^((?!jobs).)*$/|/.*/}}
|table=class="wikitable sortable",Name,Level,Jobs,Slot,Stats,Horizon Changes {{changes}}
|table=class="horizon-table {{{cssclasses|}}} sortable",-,Name,Level,Slot,Jobs,Stats,Horizon Changes {{changes}}
|tablesortcol=2
|tablesortcol=2
}}<!--
}}{{#if:{{{collapse|}}}|</div><br>}}<!--
--></onlyinclude></includeonly>
--></onlyinclude></includeonly>
==Usage==
==Usage==
Line 18: Line 25:


Syntax:
Syntax:
<pre>{{ArmorTable|cat1|...|notcat1|...|job|count}}</pre>
<pre>{{ArmorTable|cat1|...|notcat1|...|title1|...|job|collapse|cssclasses|tooltip|count}}</pre>


*Use cat1, cat2, cat3 to include required categories
*Use cat1, cat2, cat3 to include required categories
:(note: you can use <nowiki>{{!}}</nowiki> to use a logical OR in a category)
*Use notcat1, notcat2, notcat2 to exclude categories
*Use notcat1, notcat2, notcat2 to exclude categories
*Use title1, title2, ..., title6 to include specific pages
*Use job to include only gear by job XXX
*Use job to include only gear by job XXX
*Use collapse to make the table collapsible. collapse=collapsed makes it collapsed by default. collapse=expand to make it expanded by default. (collapsed is also the default when entering anything else for the collapse parameter).
*cssclasses can be used to add additional classes to the table. The most common usage here is add a color class to the table.
*use the tooltip parameter to display image tooltips when hovering over the item names. Set to anything to enable, e.g. tooltip=true.
*(The count parameter is mainly used for testing)
*(The count parameter is mainly used for testing)
**Also: count does not work with job parameter since the job parameter seems to filter after generating the list and after the count parameter cropped the list.
==Examples==
==Examples==


Line 38: Line 51:
===Example 2===
===Example 2===
Syntax:
Syntax:
<pre>{{ArmorTable|cat1=Artifact Armor|job=WHM}}</pre>
<pre>{{ArmorTable|cat1=Artifact Armor|job=WHM|tooltip=true}}</pre>


Will give out all pieces of armor which are categorized as "Artifact Armor" and have "WHM" (or "all") in their job list.  
Will give out all pieces of armor which are categorized as "Artifact Armor" and have "WHM" (or "all") in their job list. Will also display the item image as tooltip when hovering over the name.  


{{ArmorTable|cat1=Artifact Armor|job=WHM}}
{{ArmorTable|cat1=Artifact Armor|job=WHM|tooltip=true}}
 
 
===Example 3===
Syntax:
<pre>{{ArmorTable|cat1=Body|job=BLM|collapse=collapsed}}</pre>
 
Will give out all body pieces equippable by BLM in a collapsible table that is collapsed by default.
 
{{ArmorTable|cat1=Body|job=BLM|collapse=collapse}}
 
===Example 4===
Syntax:
<pre>{{ArmorTable|title1=Evoker's Spats|title2=Evoker's Horn|cssclasses=jobs-table table-md}}</pre>
 
Will give out a list of those two specified items using the css styles of "jobs-table" (for color) and "table-md" (for size).
 
{{ArmorTable|title1=Evoker's Spats|title2=Evoker's Horn|cssclasses=jobs-table table-md}}
 
==Further Information on dpl3 Usage==
* https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Criteria_for_page_selection
* https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_format
* https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_volume

Latest revision as of 20:54, 22 September 2023

Usage

Wrapper Template to generate lists of armor based on categories.

Syntax:

{{ArmorTable|cat1|...|notcat1|...|title1|...|job|collapse|cssclasses|tooltip|count}}
  • Use cat1, cat2, cat3 to include required categories
(note: you can use {{!}} to use a logical OR in a category)
  • Use notcat1, notcat2, notcat2 to exclude categories
  • Use title1, title2, ..., title6 to include specific pages
  • Use job to include only gear by job XXX
  • Use collapse to make the table collapsible. collapse=collapsed makes it collapsed by default. collapse=expand to make it expanded by default. (collapsed is also the default when entering anything else for the collapse parameter).
  • cssclasses can be used to add additional classes to the table. The most common usage here is add a color class to the table.
  • use the tooltip parameter to display image tooltips when hovering over the item names. Set to anything to enable, e.g. tooltip=true.
  • (The count parameter is mainly used for testing)
    • Also: count does not work with job parameter since the job parameter seems to filter after generating the list and after the count parameter cropped the list.

Examples

Some Example tables have been limited to output only 5 items (through the optional parameter count=5) because they serve only as examples. The syntax shown in the examples would generate the full tables.

Example 1

Syntax:

{{ArmorTable|cat1=Artifact Armor|cat2=Feet|notcat1=White Mage}}

Will give out all pieces of armor which are categorized as "Artifact Armor" and "Feet" while excluding those, which are categorized as "White Mage". ("All AF Feet except WHM feet")


Name Level Slot Jobs Stats Horizon Changes HorizonXI specific changes
Gallant Leggings 52 Feet PLD DEF: 14 HP +15 CHR +5 DEX +2 HorizonXI specific changes Shield skill +10 Enhances "Holy Circle" effect
Beast Gaiters 52 Feet BST DEF: 10 HP +11 CHR +3 Enhances "Reward" effect "Charm" +2
Chaos Sollerets 52 Feet DRK DEF: 10 HP +15 MND +5 Accuracy +3 Enhances "Arcane Circle" effect
Warlock's Boots 52 Feet RDM DEF: 13 MP +11 MND +1 INT +1 Resistance to Water+10 Shield skill +10
Rogue's Poulaines 60 Feet THF DEF: 13 HP +12 DEX +3 Increases "Flee" duration "Steal" +2

???

Example 2

Syntax:

{{ArmorTable|cat1=Artifact Armor|job=WHM|tooltip=true}}

Will give out all pieces of armor which are categorized as "Artifact Armor" and have "WHM" (or "all") in their job list. Will also display the item image as tooltip when hovering over the name.


Name Level Slot Jobs Stats Horizon Changes HorizonXI specific changes
Healer's Duckbills 52 Feet WHM DEF: 12 MP +20 INT +3 Spell interruption rate down 20%
  • INT +3 instead of AGI +3
  • MP +20 instead of MP +10
Healer's Cap 54 Head WHM DEF: 21 MP +13 MND +4 Resistance to Dark+15 Enmity -1
none
Healer's Pantaloons 56 Legs WHM DEF: 28 MP +15 VIT +3 Divine Magic skill +15 Enmity -1
none
Healer's Bliaut 58 Body WHM DEF: 40 MP +25 Resistance to Wind+10 Enfeebling Magic skill +10 Enmity -4
  • MP +25 instead of MP +15.
Healer's Mitts 60 Hands WHM DEF: 14 MP +10 STR +5 Healing Magic skill +15 Enmity -4
none


Example 3

Syntax:

{{ArmorTable|cat1=Body|job=BLM|collapse=collapsed}}

Will give out all body pieces equippable by BLM in a collapsible table that is collapsed by default.


Name Level Slot Jobs Stats Horizon Changes HorizonXI specific changes
Swellers Harness Body All Jobs
Fisherman's Apron  1 Body All Jobs DEF: 4 Ice +1 Water +1 Reduces chances of fishing up items
Chocobo Jack Coat  1 Body All Jobs DEF: 2 Chocobo riding time +5
none
Mithra Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"
Custom Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Wonder Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Savage Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Magna Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)
Custom Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Hume Top  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Omina Yukata  1 Body All Jobs DEF: 1

Can be stored in Mog Wardrobe 8.

Lady's Yukata  1 Body All Jobs DEF: 2 Improves Goldfish-scooping ability

Can be stored in Mog Wardrobe 8.

Hume Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Onoko Yukata  1 Body All Jobs DEF: 1

Can be stored in Mog Wardrobe 8.

Lord's Yukata  1 Body All Jobs DEF: 2 Improves Goldfish-scooping ability

Can be stored in Mog Wardrobe 8.

Elder Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Elvaan Gilet  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Magna Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Wonder Maillot +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Enchantment: "Teleport" (Purgonorgo Isle)

Can be stored in Mog Wardrobe 8.

Tarutaru Maillot  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Tarutaru Maillot +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"
Hardcore Shirt  1 body All Jobs DEF: 1
Tarutaru Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Republic Aketon  1 Body All Jobs DEF: 1 Increases chances of obtaining crystals In Bastok: Movement speed +12%
Federation Aketon  1 Body All Jobs DEF: 1 Increases chances of obtaining crystals In Windurst: Movement speed +12%
Kingdom Aketon  1 Body All Jobs DEF: 1 Increases chances of obtaining crystals In San d'Oria: Movement speed +12%
Dream Robe  1 Body All Jobs DEF: 2
Dream Robe +1  1 Body All Jobs DEF: 3 Enhances the effect of Selbina milk
Mandragora Suit  1 Body All Jobs Cannot Equip Leggear DEF: 1 Enchantment: "Teleport" (Home Nation)
HorizonXI Shirt  1 Body All Jobs DEF: 1
Culinarian's Apron  1 Body All Jobs DEF: 2 Resistance to Fire+1 Resistance to Water+1 Cooking Skill +1
Field Tunica  1 Body All Jobs DEF: 2 Improves Mining, Logging and Harvesting results
Hume Gilet  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Hume Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Mithra Top  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Elvaan Top  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Elvaan Top +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Galka Gilet  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Galka Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Tarutaru Top  1 Body All Jobs Cannot Equip Handgear DEF: 1

Can be stored in Mog Wardrobe 8.

Elvaan Gilet +1  1 Body All Jobs Cannot Equip Handgear DEF: 2 Reduces clamming "incidents"

Can be stored in Mog Wardrobe 8.

Tartarus Platemail  1 body All Jobs DEF: 1
Hardcore Harness  1 body All Jobs DEF: 1
Fisherman's Tunica  1 Body All Jobs DEF: 2 Fishing skill +1
Tunic  8 Body MNK / WHM / BLM / RDM / PLD / BRD / RNG / SMN / BLU / PUP / SCH / GEO / RUN Cannot Equip Headgear DEF: 9
none
Royal Footman's Tunic 10 Body MNK / WHM / BLM / RDM / PLD / BRD / RNG / SMN / BLU / PUP / SCH / GEO / RUN Cannot Equip Headgear DEF: 12 AGI +1 INT +1
Rider's Jack Coat 15 Body All Jobs DEF: 12 Chocobo riding time +5
none
Angler's Tunica 15 Body All Jobs DEF: 12 Fishing Skill +1
Wedding Dress 20 Body All Jobs DEF: 3 Light +10
none
Baron's Saio 20 Body MNK / WHM / BLM / RDM / THF / DRK / BRD / RNG / SMN / BLU / COR / PUP / DNC / SCH / GEO / RUN DEF: 15 INT +1 MND +1
Magna Jerkin 33 Body All Jobs DEF: 18 HP +24 MP +4 DEX +1 INT +1
Royal Squire's Robe 40 Body MNK / WHM / BLM / RDM / THF / DRK / BRD / RNG / SMN / BLU / COR / PUP / DNC / SCH / GEO / RUN DEF: 26 MP +10 INT +1 MND +1
Royal Knight's Cloak 50 Body MNK / WHM / BLM / RDM / PLD / BRD / RNG / SMN / BLU / PUP / SCH / GEO / RUN Cannot Equip Headgear DEF: 40 INT +1 Resistance to Light+12 Resistance to Dark+12
Duende Cotehardie 50 Body BLM / SMN
/ GEO
DEF: 26 "Conserve MP" +4 Dark Spirit perpetuation cost -1
none
Wizard's Coat 58 Body BLM DEF: 38 MP +16 VIT +5 Enfeebling Magic skill +10 Enmity -3
none
Vermillion Cloak 59 Body MNK / WHM / BLM / RDM / PLD / BRD /RNG / SMN / BLU / PUP / SCH / GEO / RUN {{{stats}}}
Black Cotehardie 59 Body MNK / WHM / BLM / RDM / THF / BST / BRD / RNG / NIN / SMN / COR / BLU / PUP / DNC / SCH / RUN DEF: 39 STR +3 DEX +2 VIT -2 AGI +3 INT +2 MND -3 CHR -3 Resistance to Fire-30 Resistance to Ice+3 Resistance to Wind+3 Resistance to Earth+3 Resistance to Lightning+3 Resistance to Water+3 Resistance to Light+3 Resistance to Dark+3 Converts 25 HP to MP Latent effect: Adds "Refresh" effect
  • MP Refresh while below 26 MP HorizonXI specific changes
Dalmatica 73 Body WHM / BLM / RDM / BRD / SMN / GEO DEF: 45 "Magic Def. Bonus" +5 Adds "Refresh" effect Enhances "Resist Paralyze" effect Converts 50 HP to MP
Dalmatica +1 73 Body WHM / BLM / RDM / BRD / SMN / GEO DEF: 46 "Magic Def. Bonus" +6 Adds "Refresh" effect Enhances "Resist Paralyze" effect Converts 55 HP to MP
Wizard's Coat +1 74 Body BLM DEF: 38 MP +36 Enfeebling Magic skill +12 Enmity -5 MP recovered while healing +5

???

Sorcerer's Coat 74 Body BLM DEF: 41 MP +12 Elemental Magic skill +5 Enmity -2 Adds "Refresh" effect
none


Example 4

Syntax:

{{ArmorTable|title1=Evoker's Spats|title2=Evoker's Horn|cssclasses=jobs-table table-md}}

Will give out a list of those two specified items using the css styles of "jobs-table" (for color) and "table-md" (for size).


Name Level Slot Jobs Stats Horizon Changes HorizonXI specific changes
Evoker's Spats 52 Legs SMN DEF: 25 MP +15 Evasion skill +10 Avatar: Enhances accuracy Enmity -2
none
Evoker's Horn 60 Head SMN DEF: 15 MP +20 INT +3 Summoning magic skill +5 Avatar: Enmity -3
none

Further Information on dpl3 Usage