Module:utilities/data: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Undo revision 320501 by Sware (talk))
Tag: Undo
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
local data = {}
local data = {}


data.notneeded = {
-- Namespaces which format_categories will allow: (main), Appendix, Thesaurus, Citations, Reconstruction
["und"] = true,
data.category_namespaces = require("Module:table").listToSet{0, 100, 110, 114, 118, 120}
["cmn"] = true,
["ja"] = true,
["zu"] = true,
["nan"] = true,
["yue"] = true,
["ko"] = true,
}


data.neededhassubpage = {
-- Script that should be applied to links in categories.
["ga"] = true,
["gv"] = true,
["nv"] = true,
["roa-jer"] = true,
["fr"] = true,
["rm"] = true,
["prg"] = true,
["gd"] = true,
["twf"] = true,
["en"] = true,
["ro"] = true,
["egl"] = true,
["roa-tar"] = true,
["gl"] = true,
["ast"] = true,
["br"] = true,
}
 
--[[
Script that should be applied to links in categories.
]]
data.catfix_scripts = {
data.catfix_scripts = {
["ab"] = "Cyrl",
["ab"] = "Cyrl",
Line 39: Line 11:
["ary"] = "Arab",
["ary"] = "Arab",
["be"] = "Cyrl",
["be"] = "Cyrl",
["cmn"] ="Hani",
["cu"] = "Cyrs",
["cu"] = "Cyrs",
["el"] = "Grek",
["el"] = "Grek",
["grc"] = "polytonic",
["grc"] = "Polyt",
["he"] = "Hebr",
["he"] = "Hebr",
["hi"] = "Deva",
["ja"] = "Jpan",
["ka"] = "Geor",
["ka"] = "Geor",
["ko"] = "Kore",
["mr"] = "Deva",
["nan-hbl"] = "Hani",
["orv"] = "Cyrs",
["orv"] = "Cyrs",
["ru"] = "Cyrl",
["ru"] = "Cyrl",
Line 49: Line 27:
["syl"] = "Sylo",
["syl"] = "Sylo",
["xfa"] = "Ital",
["xfa"] = "Ital",
["yue"] = "Hani",
["zh"] = "Hani",
["zle-ono"] = "Cyrs",
["zle-ono"] = "Cyrs",
["hi"] = "Deva",
["zle-ort"] = "Cyrs",
["mr"] = "Deva",
--[[
--[[
[""] = "",
[""] = "",
]]
]]
}
-- Namespaces in which format_categories will add categories.
data.allowedNamespaces = {
[""] = true,
["Appendix"] = true,
["Reconstruction"] = true,
["Citations"] = true,
["Contionary"] = true,
}
}


return data
return data

Latest revision as of 09:38, 31 July 2024



local data = {}

-- Namespaces which format_categories will allow: (main), Appendix, Thesaurus, Citations, Reconstruction
data.category_namespaces = require("Module:table").listToSet{0, 100, 110, 114, 118, 120}

-- Script that should be applied to links in categories.
data.catfix_scripts = {
	["ab"] = "Cyrl",
	["ae"] = "Avst",
	["ar"] = "Arab",
	["ary"] = "Arab",
	["be"] = "Cyrl",
	["cmn"] ="Hani",
	["cu"] = "Cyrs",
	["el"] = "Grek",
	["grc"] = "Polyt",
	["he"] = "Hebr",
	["hi"] = "Deva",
	["ja"] = "Jpan",
	["ka"] = "Geor",
	["ko"] = "Kore",
	["mr"] = "Deva",
	["nan-hbl"] = "Hani",
	["orv"] = "Cyrs",
	["ru"] = "Cyrl",
	["sa"] = "Deva",
	["syl"] = "Sylo",
	["xfa"] = "Ital",
	["yue"] = "Hani",
	["zh"] = "Hani",
	["zle-ono"] = "Cyrs",
	["zle-ort"] = "Cyrs",
--[[
	[""] = "",
]]
}

return data