Module:Sonicwave32 test

local arguments = require("Dev:Arguments")

local p = {}

function p.test1(frame) local args = arguments.getArgs(frame) mw.logObject(args) local hardness = tonumber(args[1]) return math.ceil(hardness * 20) / 20 end

function p.test2(frame) local tableHTML = mw.html.create('table') tableHTML :attr('class', 'wikitable') :tag('tr') :tag('th') :wikitext('column1') :tag('th') :wikitext('column2') :tag('th') :wikitext('column3') :tag('tr') :tag('td') :wikitext('test1') :tag('td') :wikitext('test2') :tag('td') :wikitext('test3') :tag('tr') :tag('td') :wikitext('test4') :tag('td') :wikitext('test5') :tag('td') :wikitext('test6') return tostring(tableHTML) end

return p