Module:Numbered equation

--[=[ Implementation for Template:numbered equation ]=]

require('strict')

local p = {} --p stands for package local getArgs = require('Module:Arguments').getArgs

--[=[ Function docs ]=] function p.main(frame) local args = getArgs(frame) local left = args[1] local math = args[2] local right = args[3] local div = mw.html.create('div') div :addClass("wst-numbered-equation") :tag("div") :addClass("wst-numbered-equation-left") :wikitext(left) :done :tag("div") :addClass("wst-numbered-equation-math") :wikitext(math) :done :tag("div") :addClass("wst-numbered-equation-right") :wikitext(right) :done return tostring(div) end

return p