|
|
Line 86: |
Line 86: |
| if args.decl then table.insert(data.categories, "Siwa " .. args.decl .. "-declension " .. data.pos_category) end | | if args.decl then table.insert(data.categories, "Siwa " .. args.decl .. "-declension " .. data.pos_category) end |
| if args.cat2 then table.insert(data.categories, "Siwa " .. args["cat2"]) end | | if args.cat2 then table.insert(data.categories, "Siwa " .. args["cat2"]) end |
| | |
| | data.sort_key = args.sort |
| end | | end |
|
| |
|
| pos_functions["proper nouns"] = pos_functions.nouns | | pos_functions["proper nouns"] = pos_functions.nouns |
|
| |
| pos_functions.adjectives = function(class, args, data)
| |
| local params = {
| |
| [1] = {list = "eq"},
| |
| [2] = {list = "comp"},
| |
| [3] = {list = "sup"},
| |
| ["unc"] = {type = "boolean"},
| |
| ["indecl"] = {type = "boolean"},
| |
| ["head"] = {default = PAGENAME},
| |
| }
| |
|
| |
| local args = require("Module:parameters").process(args, params)
| |
| local isdet = data.pos_category == "determiners"
| |
| data.heads = {args["head"]}
| |
|
| |
| table.insert(data.categories, "High Valyrian " .. data.pos_category)
| |
| if args["unc"] or isdet then
| |
| table.insert(data.inflections, {label = "not " .. glossary_link("comparable")})
| |
| if not isdet then table.insert(data.categories, "High Valyrian uncomparable adjectives") end
| |
| elseif args["indecl"] then
| |
| table.insert(data.inflections, {label = glossary_link("indeclinable")})
| |
| table.insert(data.categories, "High Valyrian indeclinable " .. data.pos_category)
| |
| else
| |
| args[1] = require("Module:qhv-adj/head").fetch("eq")
| |
| args[2] = require("Module:qhv-adj/head").fetch("comp")
| |
| args[3] = require("Module:qhv-adj/head").fetch("sup")
| |
|
| |
|
| |
| args[1].label = glossary_link("equative")
| |
| args[2].label = glossary_link("comparative")
| |
| args[3].label = glossary_link("superlative")
| |
|
| |
| table.insert(data.inflections, args[1])
| |
| table.insert(data.inflections, args[2])
| |
| table.insert(data.inflections, args[3])
| |
| end
| |
| end
| |
|
| |
|
| pos_functions["proper nouns"] = pos_functions.nouns | | pos_functions["proper nouns"] = pos_functions.nouns |
| pos_functions["determiners"] = pos_functions.adjectives
| |
|
| |
|
| pos_functions.verbs = function(class, args, data) | | pos_functions.verbs = function(class, args, data) |