Module:head: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 1: Line 1:
local export = {}
local export = {}
local get_by_code = require("Module:languages").get_by_code


function export.show(frame)
function export.show(frame)
Line 21: Line 20:
}
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local args = require("Module:parameters").process(frame:getParent().args, params)
local language = get_by_code(args[1])
local language = require("Module:languages").get_by_code(args[1])
return "'''" .. head .. "'''" .. ((args["nocat"] and "") or "[[Category:" .. language.name .. " " .. pos .. "s]]")
return "'''" .. head .. "'''" .. ((args["nocat"] and "") or "[[Category:" .. language.name .. " " .. pos .. "s]]")
end
end


return export
return export

Navigation menu