Module:Sprite: Difference between revisions

Jump to navigation Jump to search
(typo)
(Was confused by local scope)
Line 86: Line 86:


function Sprite:GenerateHTML (html)
function Sprite:GenerateHTML (html)
local sprite
if html then
if html then
local sprite = html:tag("div")
sprite = html:tag("div")
else
else
local sprite = mw.html.create("div")
sprite = mw.html.create("div")
end
end