Module:utilities/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 41: Line 41:
["cu"] = "Cyrs",
["cu"] = "Cyrs",
["el"] = "Grek",
["el"] = "Grek",
["grc"] = "polytonic",
["grc"] = "Polyt",
["he"] = "Hebr",
["he"] = "Hebr",
["ka"] = "Geor",
["ka"] = "Geor",
Line 50: Line 50:
["xfa"] = "Ital",
["xfa"] = "Ital",
["zle-ono"] = "Cyrs",
["zle-ono"] = "Cyrs",
["zle-ort"] = "Cyrs",
["hi"] = "Deva",
["hi"] = "Deva",
["mr"] = "Deva",
["mr"] = "Deva",
Line 57: Line 58:
}
}


-- Namespaces in which format_categories will add categories.
local lower = require("Module:string utilities").lower
data.allowedNamespaces = {
 
[""] = true,
local interwikis = {}
["Appendix"] = true,
for _, interwiki in pairs(mw.site.interwikiMap()) do
["Reconstruction"] = true,
interwikis[lower(interwiki.prefix)] = true
["Citations"] = true,
end
["Contionary"] = true,
data.interwikis = interwikis
}
 
local namespaces = {}
for _, namespace in pairs(mw.site.namespaces) do
namespaces[lower(namespace.name)] = true
for _, alias in pairs(namespace.aliases) do
namespaces[lower(alias)] = true
end
end
data.namespaces = namespaces


return data
return data

Navigation menu