Bürokraten, Oberflächenadministratoren, SMW-Administratoren, SMW-Kuratoren, SMW-Editoren, Oversighter, Administratoren, Widget-Bearbeiter
204.366
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 6: | Zeile 6: | ||
p.helloWorld = function() | p.helloWorld = function() | ||
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> | |||
end | end | ||
Bearbeitungen