Editing Module:AbilitySectionGive 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 6: | Line 6: | ||
local AbilityHints = require "Module:AbilityHints" | local AbilityHints = require "Module:AbilityHints" | ||
local resource_lookup = mw.loadJsonData("Data:ResourceLookup.json") | local resource_lookup = mw.loadJsonData("Data:ResourceLookup.json") | ||
-- Tab definitions — order here determines display order. | -- Tab definitions — order here determines display order. | ||
local TABS = { | local TABS = { | ||
{ key = 'notes', | { key = 'notes', label = 'Notes' }, | ||
{ key = 'tips', | { key = 'tips', label = 'Tips' }, | ||
{ key = 'interactions', | { key = 'interactions', label = 'Interactions' }, | ||
} | } | ||
local function get_hero_key(hero_name) | local function get_hero_key(hero_name) | ||
| Line 77: | Line 61: | ||
table.insert(filled, { | table.insert(filled, { | ||
key = tab.key, | key = tab.key, | ||
label = | label = tab.label, | ||
tab_wt = tab_wt, | tab_wt = tab_wt, | ||
all_wt = wikitext_map[tab.key], | all_wt = wikitext_map[tab.key], | ||
| Line 105: | Line 89: | ||
end | end | ||
table.insert(tabs, { | table.insert(tabs, { | ||
label = | label = 'Show All', | ||
content = '<div class="ability-details-panel">' .. table.concat(all_parts) .. '</div>', | content = '<div class="ability-details-panel">' .. table.concat(all_parts) .. '</div>', | ||
}) | }) | ||