Module:Sandbox/XarrotD

local p = {} local result = {}

function p:TestHTML local div1 = mw.html.create( 'ul' ) local div1sub = mw.html.create( 'li' ) div1sub:wikitext( 'This is some text.' ) div1:node( div1sub ) local div2 = mw.html.create( 'ul' ) local div2sub = mw.html.create( 'li' ) div2sub:wikitext( 'This is some more text.' ) div2:node( div2sub ) local div3 = mw.html.create( 'ul' ) local div3sub = mw.html.create( 'li' ) div3sub:wikitext( 'This is also text.' ) div3:node( div3sub ) local div = mw.html.create( 'div' ) div :attr( 'class', 'list-columns' ) :css( 'column-width', '25em' ) :node( div1 ) :node( div2 ) :node( div3 ) return tostring(div) end

function p.TestHTML2 return 'This is some text.' end

function p.Generate(frame) if frame.args[1] == '1' then return p:TestHTML elseif frame.args[1] == '2' then return p:TestHTML2 end end

return p