Module:utilities/data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
-- Namespaces which format_categories will allow: (main), Appendix, Thesaurus, Citations, Reconstruction | -- Namespaces which format_categories will allow: (main), Appendix, Thesaurus, Citations, Reconstruction | ||
data.category_namespaces = require("Module:table").listToSet{0, 100, 110, 114, 118 | data.category_namespaces = require("Module:table").listToSet{0, 100, 110, 114, 118} | ||
-- Script that should be applied to links in categories. | -- Script that should be applied to links in categories. | ||
| Line 11: | Line 11: | ||
["ary"] = "Arab", | ["ary"] = "Arab", | ||
["be"] = "Cyrl", | ["be"] = "Cyrl", | ||
["cmn"] ="Hani", | ["cmn"] = "Hani", | ||
["cu"] = "Cyrs", | ["cu"] = "Cyrs", | ||
["de"] = "Latn", | |||
["el"] = "Grek", | ["el"] = "Grek", | ||
["en"] = "Latn", | |||
["fa"] = "fa-Arab", | |||
["grc"] = "Polyt", | ["grc"] = "Polyt", | ||
["he"] = "Hebr", | ["he"] = "Hebr", | ||
["hi"] = "Deva", | ["hi"] = "Deva", | ||
["hu"] = "Latn", | |||
["ja"] = "Jpan", | ["ja"] = "Jpan", | ||
["ka"] = "Geor", | ["ka"] = "Geor", | ||
| Line 23: | Line 27: | ||
["nan-hbl"] = "Hani", | ["nan-hbl"] = "Hani", | ||
["orv"] = "Cyrs", | ["orv"] = "Cyrs", | ||
["ro"] = "Latn", | |||
["ru"] = "Cyrl", | ["ru"] = "Cyrl", | ||
["sa"] = "Deva", | ["sa"] = "Deva", | ||
["sq"] = "Latn", | |||
["syl"] = "Sylo", | ["syl"] = "Sylo", | ||
["xfa"] = "Ital", | ["xfa"] = "Ital", | ||
Latest revision as of 18:13, 11 January 2025
- The following documentation is located at Module:utilities/data/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
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}
-- 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",
["de"] = "Latn",
["el"] = "Grek",
["en"] = "Latn",
["fa"] = "fa-Arab",
["grc"] = "Polyt",
["he"] = "Hebr",
["hi"] = "Deva",
["hu"] = "Latn",
["ja"] = "Jpan",
["ka"] = "Geor",
["ko"] = "Kore",
["mr"] = "Deva",
["nan-hbl"] = "Hani",
["orv"] = "Cyrs",
["ro"] = "Latn",
["ru"] = "Cyrl",
["sa"] = "Deva",
["sq"] = "Latn",
["syl"] = "Sylo",
["xfa"] = "Ital",
["yue"] = "Hani",
["zh"] = "Hani",
["zle-ono"] = "Cyrs",
["zle-ort"] = "Cyrs",
--[[
[""] = "",
]]
}
return data