Template:WeaponSkillsTable: Difference between revisions
From HorizonXI Wiki
(added option to give html id to tables e.g. for collapsibles) |
m (added option to directly add style to the table) |
||
| Line 4: | Line 4: | ||
| includematch=/type\s*=\s*{{{1}}}/ | | includematch=/type\s*=\s*{{{1}}}/ | ||
| include={Infobox Weapon Skill¦WeaponSkillsTable.dpl},##Horizon Changes.* | | include={Infobox Weapon Skill¦WeaponSkillsTable.dpl},##Horizon Changes.* | ||
| table={{#if:{{{id|}}}|id="{{{id}}}"|}} class="horizon-table ffxi-table center-col-2 {{{cssclasses|}}}",Name,Skill Level,Description,Modifiers,Skillchain Properties,Horizon Changes {{changes}} | | table={{#if:{{{id|}}}|id="{{{id}}}"|}} class="horizon-table ffxi-table center-col-2 {{{cssclasses|}}}" {{#if: {{{cssstyles|}}}|style="{{{style}}}"|}},Name,Skill Level,Description,Modifiers,Skillchain Properties,Horizon Changes {{changes}} | ||
| tablesortcol=2 | | tablesortcol=2 | ||
}} | }} | ||
| Line 10: | Line 10: | ||
==Usage== | ==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 | Template which returns a table with all [[Weapon Skill]]s 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.dpl]] for the phantom template responsible for generating the table. | see [[:Template:WeaponSkillsTable.dpl]] for the phantom template responsible for generating the table. | ||
Revision as of 12:41, 3 December 2023
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.dpl for the phantom template responsible for generating the table.
Examples
{{WeaponSkillsTable|Axe}}
| Name | Skill Level | Description | Modifiers | Skillchain Properties | Horizon Changes
|
|---|---|---|---|---|---|
| Gale Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Avalanche Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Rampage | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Mistral Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Raging Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Smash Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Spinning Axe | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Calamity | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Decimation | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
| Onslaught | |||||
| [[{{{Page}}}|{{{Name}}}]] | None |
None | |||
{{WeaponSkillsTable|Axe|cssclasses=hide-col-2 hide-col-4|id=axe-table}}

