Utilisateur:CFCF/sandbox

Útá Wikipedia.

local div = mw.html.create( 'div' ) div :attr( 'id', 'testdiv' ) :css( 'width', '100%' ) :wikitext( 'Some text' ) :tag( 'hr' ) return tostring( div )

-- Output:

Some text