Module:HeroData/nav: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m preprocess |
m concat card to ret earlier |
||
| Line 12: | Line 12: | ||
local ret = '' | local ret = '' | ||
for hero_key, hero_data in pairs(heroes_data) do | for hero_key, hero_data in pairs(heroes_data) do | ||
local card | local card | ||
if hero_data["Name"] ~= nil and hero_data["IsDisabled"] == false then | if hero_data["Name"] ~= nil and hero_data["IsDisabled"] == false then | ||
if (hero_data["InDevelopment"] == false and current_or_upcoming == 'Current' or hero_data["InDevelopment"] == true and current_or_upcoming == 'Upcoming') then | if (hero_data["InDevelopment"] == false and current_or_upcoming == 'Current' or hero_data["InDevelopment"] == true and current_or_upcoming == 'Upcoming') then | ||
card = '{{Hero Card Nav|Hero=' .. lang_module.get_string(hero_key) .. '}}' | card = '{{Hero Card Nav|Hero=' .. lang_module.get_string(hero_key) .. '}}' | ||
ret = ret .. card .. ' ' | |||
end | end | ||
end | end | ||
end | end | ||