Template:WeaponSkillsTable: Difference between revisions
imported>Aramachus added option to give html id to tables e.g. for collapsibles |
imported>Aramachus 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 |
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}}
Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:WeaponSkillsTable: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'cl1.cl_to' in 'ON' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:WeaponSkillsTable Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Weapon_Skills'))) WHERE p.page_is_redirect = 0 LIMIT 500 </code>
{{WeaponSkillsTable|Axe|cssclasses=hide-col-2 hide-col-4|id=axe-table}}
Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:WeaponSkillsTable: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'cl1.cl_to' in 'ON' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:WeaponSkillsTable Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Weapon_Skills'))) WHERE p.page_is_redirect = 0 LIMIT 500 </code>