မဝ်ဂျူ:languages/data/all
< မဝ်ဂျူ:languages | data
Documentation for this module may be created at မဝ်ဂျူ:languages/data/all/doc
local modules = {
["Module:languages/data/2"] = true,
["Module:languages/data/3/a"] = true,
["Module:languages/data/3/b"] = true,
["Module:languages/data/3/c"] = true,
["Module:languages/data/3/d"] = true,
["Module:languages/data/3/e"] = true,
["Module:languages/data/3/f"] = true,
["Module:languages/data/3/g"] = true,
["Module:languages/data/3/h"] = true,
["Module:languages/data/3/i"] = true,
["Module:languages/data/3/j"] = true,
["Module:languages/data/3/k"] = true,
["Module:languages/data/3/l"] = true,
["Module:languages/data/3/m"] = true,
["Module:languages/data/3/n"] = true,
["Module:languages/data/3/o"] = true,
["Module:languages/data/3/p"] = true,
["Module:languages/data/3/q"] = true,
["Module:languages/data/3/r"] = true,
["Module:languages/data/3/s"] = true,
["Module:languages/data/3/t"] = true,
["Module:languages/data/3/u"] = true,
["Module:languages/data/3/v"] = true,
["Module:languages/data/3/w"] = true,
["Module:languages/data/3/x"] = true,
["Module:languages/data/3/y"] = true,
["Module:languages/data/3/z"] = true,
["Module:languages/data/exceptional"] = true,
}
local m = {}
for mname in pairs(modules) do
for key, value in pairs(require(mname)) do
if value[4] == "All" then
local scripts = {}
for script in pairs(require("Module:scripts/data")) do
table.insert(scripts, script)
end
value[4] = scripts
elseif type(value[4]) == "string" then
value[4] = mw.text.split(value[4], "%s*,%s*")
end
if type(value.ancestors) == "string" then
value.ancestors = mw.text.split(value.ancestors, "%s*,%s*")
end
if type(value.wikimedia_codes) == "string" then
value.wikimedia_codes = mw.text.split(value.wikimedia_codes, "%s*,%s*")
end
m[key] = value
end
local xname = mname .. "/extra"
for lkey, lvalue in pairs(require(xname)) do
if m[lkey] then
for key, value in pairs(lvalue) do
m[lkey][key] = lvalue[key]
end
end
end
end
return m