Template:WeaponSkillsTable: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus
added horizon changes now found directly on the individual ws page
imported>Kaimoon0
m split documentation to Template:WeaponSkillsTable/doc
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><table {{#if:{{{id|}}}|id="{{{id}}}"}} class="sortable horizon-table ffxi-table center-col-2 {{{cssclasses|}}}" style="width: auto; {{{style|}}}">
<includeonly><onlyinclude>
<tr>
{{#dpl:
<th scope="col">Name</th>
| category=Weapon Skills
<th scope="col">Requirements</th>
| includematch=/type\s*=\s*{{{1}}}/
<th scope="col" class="unsortable">Description/<wbr>Skillchain&nbsp;Properties/<wbr>Modifiers</th>
| include={Infobox Weapon Skill¦WeaponSkillsTable.dpl},##Horizon Changes.*
<th scope="col" class="unsortable">Horizon Changes {{changes}}</th>
| table=class="horizon-table ffxi-table center-col-2 table-md {{{cssclasses|}}}",Name,Skill Level,Description,Modifiers,Skillchain Properties,Horizon Changes {{changes}}
</tr>
| tablesortcol=2
{{#cargo_query:
|tables=WeaponSkills
|where=WeaponType="{{{1}}}"
|fields=_pageName=Page,Name,SkillRequired,JobsRequired,SubJobAllowed,QuestRequired,EquipmentSources,Description,CONCAT(SkillchainProperties__full)=SkillchainProperties,StrModifier,DexModifier,VitModifier,AgiModifier,IntModifier,MndModifier,ChrModifier,OtherModifier,HorizonChanges
|format=template
|template=WeaponSkillsTable/row
|named args=yes
|order by=(SkillRequired IS NULL),SkillRequired
}}
}}
</onlyinclude></includeonly>
</table></includeonly><noinclude>{{Documentation}}</noinclude>
==Usage==

Template which returns a table with all [[Weapon Skill]]s for a given weapon type. Optional parameter ''cssclasses'' to add css classes to the table for styling.

see [[:Template:WeaponSkillsTable.dpl]] for the phantom template responsible for generating the table.

===Examples===
<pre>{{WeaponSkillsTable|Axe}}</pre>
{{WeaponSkillsTable|Axe}}

<pre>{{WeaponSkillsTable|Axe|cssclasses=hide-col-2 hide-col-4}}</pre>
{{WeaponSkillsTable|Axe|cssclasses=hide-col-2 hide-col-4}}

Latest revision as of 03:27, 18 September 2025

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Usage

Template which returns a table with all Weapon Skills for a given weapon type. Optional parameter cssclasses to add css classes and style to add html style to the table. Optional parameter id to give the html element an id in case that is needed.

See Template:WeaponSkillsTable/row for the template which formats each database result as an HTML table row.

Examples

{{WeaponSkillsTable|Axe}}
Error: Table WeaponSkills not found.
Name Requirements Description/Skillchain Properties/Modifiers Horizon Changes HorizonXI specific changes
{{WeaponSkillsTable|Axe|cssclasses=hide-col-2|id=axe-table}}
Error: Table WeaponSkills not found.
Name Requirements Description/Skillchain Properties/Modifiers Horizon Changes HorizonXI specific changes

Data source

The data displayed by this template is set by {{Infobox Weapon Skill}} templates on individual weapon skill pages. To add, remove, or change data, edit those infoboxes.