Template:WeaponsTable: Difference between revisions
From HorizonXI Wiki
(suppressed automatic page name output in first column and supplied it manually in the phantom template) |
(added level range parameter, documentation for it and the gear-table color class unless overwritten by the cssclasses parameter) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|title = {{{title6|}}} | |title = {{{title6|}}} | ||
|count = {{{count|}}} | |count = {{{count|}}} | ||
|include={Item | |include={{#if:{{{levelrange|}}}|{Item Statistics}.hidebylevel¦phantom_arg={{{levelrange}}},}}{{#if:{{{tooltip|}}}|{Item Statistics¦Item_Tooltip.dpl}|{Item Statistics}:[[%PAGE%|%TITLE%]]}},{Item Statistics¦WeaponsTable.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,Damage,Delay,DPS,Jobs,Stats,Horizon Changes {{changes}} | |table=class="horizon-table {{{cssclasses|gear-table}}} sortable",-,Name,Level,Damage,Delay,DPS,Jobs,Stats,Horizon Changes {{changes}} | ||
| | |tablesortcol={{#if:{{{levelrange|}}}|3|2}} | ||
| | |||
}}{{#if:{{{collapse|}}}|</div><br>}}<!-- | }}{{#if:{{{collapse|}}}|</div><br>}}<!-- | ||
--></onlyinclude></includeonly> | --></onlyinclude></includeonly> | ||
Line 25: | Line 24: | ||
Syntax: | Syntax: | ||
<pre>{{WeaponsTable|cat1|...|notcat1|...|title1|...|job|collapse|cssclasses|count}}</pre> | <pre>{{WeaponsTable|cat1|...|notcat1|...|title1|...|job|levelrange|collapse|cssclasses|tooltip|count}}</pre> | ||
*Use cat1, cat2, cat3 to include required categories | *Use cat1, cat2, cat3 to include required categories | ||
Line 32: | Line 31: | ||
*Use title1, title2, ..., title6 to include specific pages | *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 levelrange to include gear in a given level range. Use a minus to separate min and max level like: ''30-40'' | |||
*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). | *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. | *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. | **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. | ||
Line 46: | Line 47: | ||
<pre>{{WeaponsTable|cat1=Artifact Weapons}}</pre> | <pre>{{WeaponsTable|cat1=Artifact Weapons}}</pre> | ||
Will | Will return all weapons of category "Artifact Weapons". | ||
{{WeaponsTable|cat1=Artifact Weapons|count=5}} | {{WeaponsTable|cat1=Artifact Weapons|count=5}} | ||
Line 52: | Line 53: | ||
===Example 2=== | ===Example 2=== | ||
Syntax: | Syntax: | ||
<pre>{{WeaponsTable|cat1=Artifact Weapons|job=WHM}}</pre> | <pre>{{WeaponsTable|cat1=Artifact Weapons|tooltip=true|job=WHM}}</pre> | ||
Will | Will return all weapons which are categorized as "Artifact Weapons" and have "WHM" (or "all") in their job list. So this will return the WHM AF Weapon only. | ||
{{WeaponsTable|cat1=Artifact Weapons|job=WHM}} | {{WeaponsTable|cat1=Artifact Weapons|tooltip=true|job=WHM}} | ||
===Example 3=== | |||
Syntax: | |||
<pre>{{WeaponsTable|cat1=Staves|job=BLM|levelrange=68-74}}</pre> | |||
Will return all staves in the level range 68-74 which can be equipped by a Black Mage. | |||
{{WeaponsTable|cat1=Staves|job=BLM|levelrange=68-74}} |
Latest revision as of 14:59, 13 November 2024
Usage
Wrapper Template to generate lists of weapons based on categories.
Syntax:
{{WeaponsTable|cat1|...|notcat1|...|title1|...|job|levelrange|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 levelrange to include gear in a given level range. Use a minus to separate min and max level like: 30-40
- 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.
See also Template:ArmorTable for example syntax
Example 1
Syntax:
{{WeaponsTable|cat1=Artifact Weapons}}
Will return all weapons of category "Artifact Weapons".
Name | Level | Damage | Delay | DPS | Jobs | Stats | Horizon Changes |
---|---|---|---|---|---|---|---|
Barbaroi Axe | 40 | 32 | 288 | 6.67 | BST | STR +2 CHR +2 Pet: Accuracy +5 | |
Fencing Degen | 40 | 22 | 224 | 5.89 | RDM | MP +10 INT +3 MND +3 Enfeebling Magic Skill +3 |
|
Blessed Hammer | 40 | 31 | 324 | 5.74 | WHM | MP +10 MND +2 MP recovered while healing +3 |
|
Paper Knife | 40 | 15 | 195 | 4.62 | BRD | CHR +5 | |
Kukulcan's Staff | 40 | 22 | 366 | 3.61 | SMN | MP +30 MP recovered while healing +3 |
|
Example 2
Syntax:
{{WeaponsTable|cat1=Artifact Weapons|tooltip=true|job=WHM}}
Will return all weapons which are categorized as "Artifact Weapons" and have "WHM" (or "all") in their job list. So this will return the WHM AF Weapon only.
Name | Level | Damage | Delay | DPS | Jobs | Stats | Horizon Changes |
---|---|---|---|---|---|---|---|
Blessed Hammer | 40 | 31 | 324 | 5.74 | WHM | MP +10 MND +2 MP recovered while healing +3 |
|
Example 3
Syntax:
{{WeaponsTable|cat1=Staves|job=BLM|levelrange=68-74}}
Will return all staves in the level range 68-74 which can be equipped by a Black Mage.
Name | Level | Damage | Delay | DPS | Jobs | Stats | Horizon Changes |
---|---|---|---|---|---|---|---|
Kinnara Pole | 68 | 30 | 366 | 4.92 | WAR / MNK / WHM / BLM / RDM / BST / BRD / SMN / SCH / GEO | HP +25 MP +25 HP recovered while healing +2 MP recovered while healing +2 |
none
|
Mythic Pole | 70 | 55 | 402 | 8.21 | MNK / WHM / BLM / SMN / SCH / GEO | +15 |
none
|
Mythic Pole +1 | 70 | 56 | 390 | 8.62 | MNK / WHM / BLM / SMN / SCH / GEO | +20 |
none
|
Rune Staff | 70 | 32 | 366 | 5.25 | WAR / MNK / WHM / BLM / RDM / BST BRD / SMN / SCH / GEO | Latent effect: INT +2 MND +2 CHR +2 "Magic Atk. Bonus" |
none
|
Master Caster's Pole | 71 | 34 | 366 | 5.57 | WAR / MNK / WHM / BLM / RDM / BST / BRD / SMN / SCH / GEO | HP +20 MP +10 Citizens of Windurst: MP Recovered While Healing +8 |
none
|
Prelatic Pole | 71 | 55 | 402 | 8.21 | All Jobs | INT -4 MND +4 +6 +6 +6 +6 +6 +6 +6 +6 Healing magic skill +10 |
none
|
Imperial Pole | 71 | 60 | 402 | 8.96 | MNK / WHM / BLM / SMN / GEO | Depending on day: Increases elemental weapon skill damage |
none
|
Pole of Trials | 71 | 55 | 402 | 8.21 | WAR / MNK / WHM / BLM / PLD / BRD / DRG / SMN / SCH / GEO | Latent effect: HP +10 MP +10 +10 +10 |
none
|
Martial Staff | 72 | 56 | 390 | 8.62 | MNK / WHM / BLM / PLD / DRG / SMN / SCH / GEO | TP Bonus |
none
|
Mighty Pole | 72 | 56 | 402 | 8.36 | WAR / MNK / WHM / BLM / PLD / BRD DRG / SMN / SCH / GEO | On Windsdays: +15 Divine Magic skill +13 Elemental Magic skill +13 |
none
|
Somnus Signa | 72 | 62 | 402 | 9.25 | BLM | STR +6 MND +5 CHR -1 Additional effect: Sleep |
none
|
Zen Pole | 72 | 55 | 402 | 8.21 | WAR / MNK / WHM / BLM / RDM / BST / BRD / SMN / SCH / GEO | MP +24 MP recovered while healing +2 |
none
|
Carbuncle's Pole | 72 | 55 | 402 | 8.21 | MNK / WHM / BLM / RDM / PLD / BRD / RNG / SMN / BLU / PUP / SCH / GEO / RUN | CHR +4 TP Bonus Latent effect: Light Damage Enchantment: Recover HP | |
Wyvern Perch | 73 | 57 | 402 | 8.51 | WAR / MNK / WHM / BLM / PLD / BRD / DRG / SMN / SCH / GEO | Wyvern: HP +50 |
none
|
Alkalurops | 73 | 49 | 366 | 8.03 | WHM / BLM / RDM / BRD / SMN / SCH / GEO | HP -10 INT +10 MND +10 CHR +10 Magic Accuracy +20 |
none
|
Mekki Shakki | 73 | 70 | 412 | 10.19 | All Jobs | STR +5 Accuracy -4 Attack +12 "Store TP" +5 |
none
|
Thyrsusstab | 73 | 52 | 402 | 7.76 | WAR / MNK / WHM / BLM / PLD / BRD / DRG / SMN / SCH / GEO | Latent effect: DMG: 65 Critical hit rate +6% |
none
|