Template:AbilityTable: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m move to a new module page |
Update invoke to render; add hide parameter passthrough (with help from vergir-bot LLM) |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="AbilityTable/styles.css" />{{#invoke:AbilityTable| | <includeonly><templatestyles src="AbilityTable/styles.css" />{{#invoke:AbilityTable|render|{{{1|}}}|hide={{{hide|}}}}}</includeonly><noinclude> | ||
Renders a sortable table of all abilities that have the named stat. | Renders a sortable table of all abilities that have the named stat. | ||
| Line 5: | Line 5: | ||
<pre>{{AbilityTable|charges}}</pre> | <pre>{{AbilityTable|charges}}</pre> | ||
With a hidden column: | |||
<pre>{{AbilityTable|charges|hide=Time Between Charges}}</pre> | |||
Multiple columns can be hidden using a comma-separated list: | |||
<pre>{{AbilityTable|charges|hide=Time Between Charges, Notes}}</pre> | |||
== Parameters == | == Parameters == | ||
; 1 : The stat name. Must match a key in [[Module: | ; 1 : The stat name. Must match a key in [[Module:AbilityTable|the stat_to_props table]]. | ||
; hide : Optional. A comma-separated list of column names to exclude. Hero and Ability columns cannot be hidden. | |||
== See also == | == See also == | ||
* [[Template:ItemPropTable]] — equivalent template for items | * [[Template:ItemPropTable]] — equivalent template for items | ||
* [[Module: | * [[Module:AbilityTable]] — backing module | ||
* [[Module:GameData]] — shared data-loading framework | * [[Module:GameData]] — shared data-loading framework | ||
[[Category:Ability templates]] | [[Category:Ability templates]] | ||
</noinclude> | </noinclude> | ||