Jump to content

Module:Sandbox

From Wikitech

Documentation for this module may be created at Module:Sandbox/doc (Test casesTest results)

local module = {}

function module.main(frame)
	local arg = frame.args
	local wikitext = arg['input'] or 'default'
	local div = mw.html.create('div')
	div
		:attr('id', 'testdiv')
		:css('width', '100%')
		:wikitext(mw.ustring.sub(wikitext, 5, 20))
	return tostring(div)
end


return module