Module:Sandbox/Samlovesmath/Infobox hero: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Samlovesmath (talk | contribs) Created page with "local p = {}; local heroes_data = mw.loadJsonData("Data:HeroData.json") --local theme_data = mw.loadJsonData("Data:Samlovesmath/Infobox_hero.json") -- TEMPORARY FIX local theme_data = { ["hero_default"] = { ["bg-image"] = "Default_select_background.png", ["logo-height"] = "x35px" }, ["hero_astro"] = { ["bg-image"] = "Holliday_select_background.png", ["logo-height"] = "x42px" }, ["hero_atlas"] = { ["bg-image"] = "Abrams_select_background.png", ["logo-heig..." |
Samlovesmath (talk | contribs) mNo edit summary |
||
| Line 166: | Line 166: | ||
} | } | ||
function p.is_hero_key(frame) | |||
local hero_key = frame.args[1] | |||
for i,v in pairs(heroes_data) do | |||
if i == hero_key then | |||
return true | |||
end | |||
end | |||
return false | |||
end | |||
function p.en_is_hero_key(frame) | function p.en_is_hero_key(frame) | ||