Module:Sandbox

From MediaWiki.org
Jump to navigation Jump to search
Module documentation
local module = {}

function module.main(frame)
	local arg = frame.args
	local wikitext = arg['wikitext'] or '\'\'aaa\'\''
	local div = mw.html.create('div')
	div
		:attr('id', 'testdiv')
		:css('width', '100%')
		:wikitext(wikitext)
		:tag('hr')
	return tostring(div)
end

return module