Editing Module:AbilityTableGive feedback
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 326: | Line 326: | ||
end | end | ||
table.insert(out, header_row) | table.insert(out, header_row) | ||
for _, key in ipairs(filtered) do | for _, key in ipairs(filtered) do | ||
local entry = views[key] | local entry = views[key] | ||
local ability = entry.view | local ability = entry.view | ||
local ability_cell = frame:expandTemplate{ | local hero_cell = frame:expandTemplate{ title = "HeroIcon", args = { entry.heroName } } | ||
local ability_cell = frame:expandTemplate{ title = "AbilityIcon", args = { ability["Name"] } } | |||
local extra = get_cells(ability) | local extra = get_cells(ability) | ||
enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]]) | enrich_notes_full(extra, stat_notes and stat_notes[ability["Name"]]) | ||
local | local row = '| class="ability-table-cell-hero" | ' .. hero_cell | ||
.. ' || class="ability-table-cell-ability" | ' .. ability_cell | |||
for _, header in ipairs(final_headers) do | for _, header in ipairs(final_headers) do | ||
local value = extra[header] | local value = extra[header] | ||