Module:HeroData/nav: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) No edit summary |
Gammaton32 (talk | contribs) No edit summary |
||
| Line 165: | Line 165: | ||
local in_herolabs = frame.args['in_herolabs'] or 'false' | local in_herolabs = frame.args['in_herolabs'] or 'false' | ||
local debug_mode = frame.args['debug_mode'] == 'true' | local debug_mode = frame.args['debug_mode'] == 'true' | ||
local heroes = get_heroes(in_herolabs) | local heroes = get_heroes(in_herolabs) | ||
| Line 171: | Line 170: | ||
for _, hero in ipairs(heroes) do | for _, hero in ipairs(heroes) do | ||
local start_gallery = '<gallery>' | local start_gallery = '<gallery>' | ||
local end_gallery = '</gallery>' | local end_gallery = '</gallery>' | ||
local item | |||
item = 'File:' .. hero.name .. file_name .. '|'.. hero.name .. description .. | |||
table.insert(parts, item) | |||
end | end | ||