Module:Demo

From MINR.ORG WIKI
Revision as of 16:34, 31 December 2014 by Codehydro (talk)

Documentation for this module may be created at Module:Demo/doc

local p = {}

function p.main(frame)
	args = require('Module:Arguments').getArgs(frame, {
		trim = false
	})
	local br = ''
	for k = 1, (args.br or 1) do
		br = br .. '<br>'
	end
	return string.format('<pre%s><nowiki>%s<nowiki></pre>%s%s', args.style and string.format(" style='%s'", args.style) or '', args[1] or '', br, args[1] or '')
end

return p