Module:head: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 5: Line 5:
local args = (frame:getParent() and frame:getParent().args) or frame.args
local args = (frame:getParent() and frame:getParent().args) or frame.args
local language = get_by_code(args[1])
local language = get_by_code(args[1])
local pos = args[2] or args["pos"]
if not pos then
error("Part of speech must be supplied")
end
local head = args["head"] or mw.title.getCurrentTitle().text
local head = args["head"] or mw.title.getCurrentTitle().text
return "'''" .. head .. "'''"
return "'''" .. head .. "'''[[Category:" .. language.name .. " " .. pos .. "s]]"
end
end


return export
return export

Navigation menu