Module:Sandbox

Revision as of 05:51, 31 July 2020 by Ianbirtwistle (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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