Module:AbilityInteraction: Difference between revisionsGive feedback
m Add several interactions. Update comments |
Simplify the docs table to interaction (key and aliases) and example (with help from vergir-bot LLM) |
||
| Line 140: | Line 140: | ||
table.sort(keys) | table.sort(keys) | ||
local out = { '{| class="wikitable"', '! Interaction | local out = { '{| class="wikitable"', '! Interaction !! Example' } | ||
for _, key in ipairs(keys) do | for _, key in ipairs(keys) do | ||
local entry = REGISTRY[key] | local entry = REGISTRY[key] | ||
local | local names = { '<code>' .. key .. '</code>' } | ||
for _, alias in ipairs(entry.aliases or {}) do | for _, alias in ipairs(entry.aliases or {}) do | ||
table.insert( | table.insert(names, '<code>' .. alias .. '</code>') | ||
end | end | ||
table.insert(out, '|-') | table.insert(out, '|-') | ||
table.insert(out, '| | table.insert(out, '| ' .. table.concat(names, ' / ')) | ||
table.insert(out, '| ' .. frame:expandTemplate{ | table.insert(out, '| ' .. frame:expandTemplate{ | ||
title = 'AbilityInteraction', | title = 'AbilityInteraction', | ||