Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m temp save, unfinished write_infobox
Sur (talk | contribs)
m call_lang removed
Line 3: Line 3:
local attributes_data = mw.loadJsonData("Data:AttributeData.json")
local attributes_data = mw.loadJsonData("Data:AttributeData.json")
local util_module = require('Module:Utilities')
local util_module = require('Module:Utilities')
local lang_module = require('Module:Lang')
local attribute_module = require('Module:AttributeData')
local attribute_module = require('Module:AttributeData')


Line 120: Line 121:
-- get label and postfix
-- get label and postfix
label = util_module.call_lang(stat_data["label"])
label = lang_module.get_string(stat_data["label"])
postfix = stat_data["postfix"]
postfix = stat_data["postfix"]
if (postfix == nil) then  
if (postfix == nil) then  
postfix = ""
postfix = ""
else
else
postfix = util_module.call_lang(postfix)
postfix = lang_module.call_lang(postfix)
end
end