local p = {}
local currentTitle = mw.title.getCurrentTitle()
for k,_ in pairs(currentTitle) do
p[k] = function(frame)
local args = require("Module:Arguments").getArgs(frame)
local title = (args[1] and mw.title.new(args[1])) or (args.title and mw.title.new(args.title)) or currentTitle
return args[title[k]] or title[k]
end
end
return p