2,788
edits
(Created page with "local export = {} local params = { [1] = {required = true}, [2] = {}, ["in"] = {}, ["nocap"] = {type = "boolean"}, ["notext"] = {type = "boolean"}, ["nocat"] = {type = "boolean"}, } function export.show(frame) local args = require("Module:parameters").process(frame:getParent().args, params) local out = "" if not args["notext"] then out = out .. "" .. (args["nocap"] and "c" or "C") .. "oined" .. (args[2] and " in " or "") end if...") |
No edit summary |
||
Line 10: | Line 10: | ||
function export.show(frame) | function export.show(frame) | ||
local args = require("Module:parameters").process(frame:getParent().args, params) | local args = require("Module:parameters").process(frame:getParent().args, params) | ||
local language = require("Module:languages").get_by_code(args[1]) | |||
local out = "" | local out = "" | ||
if not args["notext"] then | if not args["notext"] then | ||
Line 16: | Line 17: | ||
if args[2] then out = out .. args[2] end | if args[2] then out = out .. args[2] end | ||
if args["in"] then out = " in " .. args["in"] end | if args["in"] then out = " in " .. args["in"] end | ||
if not args["nocat"] then out = out .. "[[Category:" .. language.name .. " coinages]]" end | |||
return out | return out | ||
end | end | ||
return export | return export |