Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m write_default_items initial
Sur (talk | contribs)
m icon alts fixed for default_items
Line 99: Line 99:
for i, item_key in ipairs(hero["RecommendedItems"]) do
for i, item_key in ipairs(hero["RecommendedItems"]) do
template_args = {}
template_args = {}
template_args[1] = lang_module._get_string(item_key)
template_args[1] = lang_module._get_string(item_key, 'en')
template_args['alt'] = lang_module._get_string(item_key)
local expanded_template = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args }
local expanded_template = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args }
str = str .. "* " .. expanded_template .. "\n"
str = str .. "* " .. expanded_template .. "\n"