Jump to content

Module:Demo

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codehydro (talk | contribs) at 15:39, 31 December 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

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

return p