Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m temp save, unfinished write_infobox |
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 = | 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 = | postfix = lang_module.call_lang(postfix) | ||
end | end | ||