Module:HeroDataArrays: Difference between revisions

Jump to navigation Jump to search
m type is deprecated
m key got renamed
Line 43: Line 43:
p.heroHealthTable = function(frame)
p.heroHealthTable = function(frame)
-- Pull data
-- Pull data
heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>Health"})
heroHealthData = heroDataArray({"Name", "MaxHealth", "LevelScaling>MaxHealth"})


-- Input table will be called a, output wikitable will be called z
-- Input table will be called a, output wikitable will be called z
Line 57: Line 57:
"| style=\"text-align:left;\" | "..
"| style=\"text-align:left;\" | "..
frame:expandTemplate{title="PageRef", args={a["Name"]}}..
frame:expandTemplate{title="PageRef", args={a["Name"]}}..
" || "..a["MaxHealth"].." || +"..a["LevelScaling>Health"].." || "..
" || "..a["MaxHealth"].." || +"..a["LevelScaling>MaxHealth"].." || "..
tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling>Health"])*14).." \n"
tostring(tonumber(a["MaxHealth"])+tonumber(a["LevelScaling>MaxHealth"])*14).." \n"
end
end