Changes
use mw.html
-- Get required modules.
local getArgs = require('Module:Arguments').getArgs
local messageBox = require('Module:Message box')
--]]
local env = p.getEnvironment(args)
local root = htmlBuildermw.html.create()
root
-- This div tag is from {{documentation/start box}}, but moving it here
-- so that we don't have to worry about unclosed tags.
return tostring(root)
end
-- Renders the start box html.
-- @data - a table of data generated by p.makeStartBoxData.
local sbox = htmlBuildermw.html.create('div')
sbox
local links = data.links
if links then
sbox.:tag('span') .:addClass(data.linksClass) .:attr('id', data.linksId) .:wikitext(links)
end
return tostring(sbox)