Template:ArmorTable: Difference between revisions

From HorizonXI Wiki
m (included horizon changes by section rather than template call to distinguish no changes from unknown)
(testing)
Line 15: Line 15:
|title = {{{title6|}}}
|title = {{{title6|}}}
|count = {{{count|}}}
|count = {{{count|}}}
|include={{#if:{{{tooltip|}}}|{Item Statistics¦Item_Tooltip.dpl}|{Item Statistics}:[[%PAGE%|%TITLE%]]}},{Item Statistics¦ArmorTable.dpl},##Horizon Changes.*
|include={{#if:{{{levelmin|}}}{{{levelmax|}}}|{Item Statistics}.hidebylevelmin¦phantom_arg1={{{levelmin}}}¦phantom_arg2={{{levelmax}}},}}{{#if:{{{tooltip|}}}|{Item Statistics¦Item_Tooltip.dpl}|{Item Statistics}:[[%PAGE%|%TITLE%]]}},{Item Statistics¦ArmorTable.dpl},##Horizon Changes.*
|includematch = {{#if:{{{job|}}}|/jobs\s*=.*\[\[{{{job}}}\]\].*¦jobs\s*=\s*All\sJobs\s*¦(?s)^((?!jobs).)*$/|/.*/}}
|includematch = {{#if:{{{job|}}}|/jobs\s*=.*\[\[{{{job}}}\]\].*¦jobs\s*=\s*All\sJobs\s*¦(?s)^((?!jobs).)*$/|/.*/}}
|table=class="horizon-table {{{cssclasses|}}} sortable",-,Name,Level,Slot,Jobs,Stats,Horizon Changes {{changes}}
|table=class="horizon-table {{{cssclasses|}}} sortable",-,Name,Level,Slot,Jobs,Stats,Horizon Changes {{changes}}
Line 55: Line 55:
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.  
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|tooltip=true}}
{{ArmorTable|cat1=Artifact Armor|job=WHM|levelmin=54|levelmax=56|tooltip=true}}




Line 64: Line 64:
Will give out all body pieces equippable by BLM in a collapsible table that is collapsed by default.  
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}}
{{ArmorTable|cat1=Body|job=BLM|collapse=collapse}}
 
-->
===Example 4===
===Example 4===
Syntax:
Syntax:

Revision as of 14:30, 13 November 2024

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 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 Mitts 60 Hands WHM DEF: 14 MP +10 STR +5 Healing Magic skill +15 Enmity -4
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 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


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.

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