Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m orders now come from Data:StatBoxAttrs.json |
m infobox values actually passed to infobox correctly |
||
| Line 101: | Line 101: | ||
local shouldDisplay | local shouldDisplay | ||
local template_args = {} | local template_args = {} | ||
local stat_values = {Weapon = "", Vitality = ""} | |||
-- Iterate attribute categories | -- Iterate attribute categories | ||
| Line 130: | Line 131: | ||
end | end | ||
-- First add localized stat name for left column | |||
stat_values[category] = stat_values[category] .. "," .. label | |||
-- Then add stat value for right column | |||
stat_values[category] = stat_values[category] .. "," .. stat_value .. postfix | |||
end | end | ||
-- Add the stat values in the category to i.e weapon_values and vitality_values parameters | |||
template_args[string.lower(category) .. "_values"] = stat_values[category] | |||
end | end | ||