local export = {}
local linker = require('Module:nn-link')
local m_headword = require("Module:headword")
local lang = require("Module:languages").getByCode("nn")
function export.main(frame)
args = frame:getParent().args
PAGENAME = mw.title.getCurrentTitle().text
length = PAGENAME:len()
if args or args then
meir = true
end
masculine = args or args or args or args or args
feminine = args or args or args or args or args
neuter = args or args or args
definite_singular = args or args
plural = args or args
local inflections = {}
if masculine == feminine == neuter then
inflections = {label = 'indefinite singular', masculine}
elseif masculine == feminine then
inflections = {label = 'masculine and feminine', masculine}
inflections = {label = 'neuter', neuter}
else
inflections = {label = 'masculine', masculine}
inflections = {label = 'feminine', feminine}
inflections = {label = 'neuter', neuter}
end
if definite_singular == plural then
table.insert(inflections, {label = 'definite singular and plural', definite_singular})
else
table.insert(inflections, {label = 'definite singular', definite_singular})
table.insert(inflections, {label = 'plural', plural})
end
if not meir then
comparative = args or args
if args or args then
comparative2 = args or args
comparative = linker.link(PAGENAME, comparative) .. '/' .. linker.link(PAGENAME, comparative2)
end
indefinite_superlative = args
if args then
indefinite_superlative2 = args
indefinite_superlative = linker.link(PAGENAME, indefinite_superlative) .. '/' .. linker.link(PAGENAME, indefinite_superlative2)
end
definite_superlative = args
if args then
definite_superlative2 = args
definite_superlative = linker.link(PAGENAME, definite_superlative) .. '/' .. linker.link(PAGENAME, definite_superlative2)
end
if comparative then
table.insert(inflections, {label = 'comparative', comparative})
end
if indefinite_superlative then
table.insert(inflections, {label = 'indefinite superlative', indefinite_superlative})
end
if definite_superlative then
table.insert(inflections, {label = 'definite superlative', definite_superlative})
end
end
return
m_headword.format_headword(PAGENAME, lang, nil) ..
m_headword.format_inflections(inflections, lang, nil)
end
return export