Template:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
m move to a new module page
Vergir (talk | contribs)
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|abilityPropTable|{{{1|}}}}}</includeonly><noinclude>
<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:AbilityTables|the stat_to_props table]].
; 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:AbilityTables]] — backing 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>