Module:head/languages/lfv: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Created page with "local export = {} local m_head = require("Module:head") local m_parameters = require("Module:parameters") local lfv = require("Module:languages").get_by_code("lfv") local function insert_if_any(inflections, arg, label, glossary) if not arg or #arg < 1 then return end local inflection = {["label"] = label} if glossary then inflection["glossary"] = glossary end for _, v in ipairs(arg) do table.insert(inflections, v) end end function export.noun(frame) local args =...")
 
No edit summary
Line 28: Line 28:
insert_if_any(inflections, args["pej"], "pejorative", true)
insert_if_any(inflections, args["pej"], "pejorative", true)
return m_head.full_head{
return m_head.full_head{
term = mw.title.getCurrentPage().text,
term = mw.title.getCurrentTitle().text,
language = lfv,
language = lfv,
genders = args["g"],
genders = args["g"],