Module:languages-oow: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 4: Line 4:
local m_inline = require("Module:inline")
local m_inline = require("Module:inline")


-- local data = mw.loadData("Module:languages-oow/data")
local data = mw.loadData("Module:languages-oow/data")
local data = {
["en"] = {code = "en", name = "English", wiki = "English language"},
["de"] = {code = "de", name = "German", flag = "🇩🇪", wiki = "German language"},
["pl"] = {code = "pl", name = "Polish", flag = "🇵🇱", wiki = "Polish language"},
["sl"] = {code = "sl", name = "Slovene", flag = "🇸🇮", wiki = "Slovene language"},
}


local available_genders = {
local available_genders = mw.loadData("Module:gender and number/data")
["n"] = {label = "n", hint = "neuter gender", category = "neuter %", group = "gender"},
["f"] = {label = "f", hint = "feminine gender", category = "feminine %", group = "gender"},
["m"] = {label = "m", hint = "masculine gender", category = "masculine %", group = "gender"},
["c"] = {label = "c", hint = "common gender", category = "common %", group = "gender"},
["du"] = {label = "du", hint = "duale tantum", category = "dualia tantum", group = "number"},
["pl"] = {label = "pl", hint = "plurale tantum", category = "pluralia tantum", group = "number"},
["in"] = {label = "in", hint = "inanimate", category = "inanimate %", group = "animacy"},
["an"] = {label = "an", hint = "animate", category = "animate %", group = "animacy"},
["pr"] = {label = "pers", hint = "personal", category = "personal %", group = "animacy"},
["vr"] = {label = "vir", hint = "virile", category = "virile %", group = "virility"},
["impf"] = {label = "impf", hint = "imperfective aspect", category = "imperfective %", group = "aspect"},
["pf"] = {label = "pf", hint = "perfective aspect", category = "perfective %", group = "aspect"},
}


function format_gender(gender)
function format_gender(gender)