Module:AbilityTable/doc: Difference between revisionsGive feedback
create documentation page for Module:AbilityTable (with help from vergir-bot LLM) |
update with new api |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
This module exposes | This module exposes two functions. | ||
* <code>render</code> generates a table of hero abilities matching a named list, and is invoked via [[Template:AbilityTable|<code><nowiki>{{AbilityTable}}</nowiki></code>]]. | |||
* <code>is_member(list, ability_key, ability_num)</code> is a shared function that decides whether a single ability belongs to a list (applying the same properties and exclusions); it is used both internally by <code>render</code> and externally by [[Module:AbilityHints]], so the ability-hint icons always stay in sync with these tables. | |||
== See also == | == See also == | ||
| Line 8: | Line 9: | ||
* [[Module:AbilityTable/Notes]] — editor-authored notes displayed in the Notes column | * [[Module:AbilityTable/Notes]] — editor-authored notes displayed in the Notes column | ||
* [[Module:AbilityTable/ComplexRenderers]] — custom column renderers for lists that need more than just Notes | * [[Module:AbilityTable/ComplexRenderers]] — custom column renderers for lists that need more than just Notes | ||
* [[Module:AbilityHints]] — reuses <code>is_member</code> to render interaction-hint icons on ability cards | |||