Documentation for this module may be created at Module:Sandbox/User:SuperDragonXD/divs/doc
local div = mw.html.create( 'div' ) div :attr( 'id', 'testdiv' ) :css( 'width', '100%' ) :wikitext( 'Some text' ) :tag( 'hr' ) return tostring( div ) -- Output: <div id="testdiv" style="width:100%;">Some text<hr /></div>