Editing Module:AbilityInteractionGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 181: | Line 181: | ||
table.sort(keys) | table.sort(keys) | ||
local out = { '{| class="wikitable"', '! Interaction !! Example' } | local out = { '{| class="wikitable"', '! Interaction !! Aliases !! Type !! Example' } | ||
for _, key in ipairs(keys) do | for _, key in ipairs(keys) do | ||
local entry = REGISTRY[key] | local entry = REGISTRY[key] | ||
local | local aliases = {} | ||
for _, alias in ipairs(entry.aliases or {}) do | for _, alias in ipairs(entry.aliases or {}) do | ||
table.insert( | table.insert(aliases, '<code>' .. alias .. '</code>') | ||
end | end | ||
table.insert(out, '|-') | table.insert(out, '|-') | ||
table.insert(out, '| ' .. table.concat( | table.insert(out, '| <code>' .. key .. '</code>') | ||
table.insert(out, '| ' .. (#aliases > 0 and table.concat(aliases, ', ') or '—')) | |||
table.insert(out, '| ' .. entry.type) | |||
table.insert(out, '| ' .. frame:expandTemplate{ | table.insert(out, '| ' .. frame:expandTemplate{ | ||
title = 'AbilityInteraction', | title = 'AbilityInteraction', | ||