local p =
local function _main(args) if mw.title.getCurrentTitle.namespace
local title = "" if args.title then title = "title=" .. args.title end
local italic = "" if args.i or args.italic then italic = "inline-quote-talk-italic" end
local quotes = "" if args.q or args.quotes then quotes = "inline-quote-talk-marks" end
local text = args[1] or "Example text" local formatted_text = '%s
' formatted_text = string.format(formatted_text, title, italic, quotes, text) formatted_text = string.gsub(formatted_text, "%s+", " ")
return formatted_textend
function p.main(frame) local getArgs = require("Module:Arguments").getArgs local args = getArgs(frame) return _main(args)end
return p