Template:AbilityTable: Difference between revisions

Vergir (talk | contribs)
Update invoke to render; add hide parameter passthrough (with help from vergir-bot LLM)
Move noinclude content to /doc subpage, add {{Documentation}} (with help from vergir-bot LLM)
Line 1: Line 1:
<includeonly><templatestyles src="AbilityTable/styles.css" />{{#invoke:AbilityTable|render|{{{1|}}}|hide={{{hide|}}}}}</includeonly><noinclude>
<includeonly><templatestyles src="AbilityTable/styles.css" />{{#invoke:AbilityTable|render|{{{1|}}}|hide={{{hide|}}}}}</includeonly>{{Documentation}}
Renders a sortable table of all abilities that have the named stat.
 
== Usage ==
 
<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 ==
 
; 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 ==
 
* [[Template:ItemPropTable]] — equivalent template for items
* [[Module:AbilityTable]] — backing module
* [[Module:GameData]] — shared data-loading framework
[[Category:Ability templates]]
</noinclude>