Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m write_default_items initial |
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" | ||