Module:head/languages: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 1: Line 1:
local export = {}
local export = {}
local default_params = {
["gender"] = {list = true, aliases = {"g", 1}},
["head"] = {},
}


function export.get_args(args, params, inflection_params)
function export.get_args(args, params, inflection_params)
Line 22: Line 27:
function export.get_term()
function export.get_term()
return mw.title.getCurrentTitle().text
return mw.title.getCurrentTitle().text
end
function export.do_language_head(language, pos, inflection_params, frame_args)
local args, inflections = export.get_args(frame_args, default_params, inflection_params[pos])
return m_head.full_head{
term = mw.title.getCurrentTitle().text,
head = args["head"],
language = language,
pos = pos,
genders = args["gender"],
inflections = inflections,
}
end
end


return export
return export