Module:AbilityTable/Lists/doc: Difference between revisions

No edit summary
Line 29: Line 29:
== How to exclude an ability from a list ==
== How to exclude an ability from a list ==


If an ability appears in a table but shouldn't, first check whether the property causing the match actually belongs in the list. If several unrelated abilities are showing up as false positives, it's likely that a prop was added to the list by mistake inspect the list carefully and consider removing it. Make sure to test after removing a prop to confirm you didn't accidentally drop any legitimate abilities.
If an ability appears in a table but shouldn't, first check whether the property causing the match actually belongs in the list. If several unrelated abilities are showing up as false positives, it's likely that a prop was added to the list by mistake, inspect the list carefully and consider removing it. Make sure to test after removing a prop to confirm you didn't accidentally drop any legitimate abilities.


If the false positive is a genuine exception the prop belongs in the list but this one ability happens to match it incorrectly then add the ability to <code>exclude_abilities</code> under the relevant list name with a comment explaining why:
If the false positive is a genuine exception, the prop belongs in the list but this one ability happens to match it incorrectly, then add the ability to <code>exclude_abilities</code> under the relevant list name with a comment explaining why:


<pre>
<pre>
Line 52: Line 52:
</pre>
</pre>


Test the result with <code><nowiki>{{AbilityTable|mylist}}</nowiki></code> and adjust until the list looks right adding missing abilities and excluding false positives as described above.
Test the result with <code><nowiki>{{AbilityTable|mylist}}</nowiki></code> and adjust until the list looks right, adding missing abilities and excluding false positives as described above.


'''Step 3 (optional)''': If the table should have extra columns beyond Notes, register a renderer in [[Module:AbilityTable]] and implement it in [[Module:AbilityTable/ComplexRenderers]].
'''Step 3 (optional)''': If the table should have extra columns beyond Notes, register a renderer in [[Module:AbilityTable]] and implement it in [[Module:AbilityTable/ComplexRenderers]].


'''Step 4 (optional)''': Add human notes for specific abilities in [[Module:AbilityTable/Notes]].
'''Step 4 (optional)''': Add human notes for specific abilities in [[Module:AbilityTable/Notes]].