Jump to content

Module:User:Mr. Stradivarius/sandbox2

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 09:05, 29 March 2013 (working out how to use HtmlBuilder). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
p = {}

local HtmlBuilder = require('Module:HtmlBuilder')

function p.test()
    root = HtmlBuilder.create('div')
    tableroot = root.tag('table')
    tablerow1 = tableroot.tag('tr')
        tablerow1.tag('td')
        tablerow1.tag('td')
        tablerow1.tag('td')
    tablerow2 = tableroot.tag('tr')
        tablerow2.tag('td')
        tablerow2.tag('td')
        tablerow2.tag('td')

    return tostring(root)
end

return p