Module:Sandbox

From Northumberland Climbing
Revision as of 07:32, 23 April 2019 by 197.235.201.91 (talk) (Undid revision 3204777 by 197.235.201.91 (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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