Module:Populations
From ENDLESS Legend 2 Official Wiki
Documentation for this module may be created at Module:Populations/doc
local function _load_data(name)
assert(name ~= nil and #name > 0, "Could not load data: no name provided")
return mw.loadData("Module:Populations/Data/" .. name)
end
local function load_data(frame)
local name = frame.args[1]
if name == nil or #name == 0 then
name = mw.title.getCurrentTitle().text
end
return _load_data(name)
end
local function icon(t)
return mw.getCurrentFrame():expandTemplate{title=t, args={"-"}}
end
return {
_load_data=_load_data,
load_data=load_data,
icon=icon,
}


