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 | ||
sprite = html:tag("div") | |||
else | else | ||
sprite = mw.html.create("div") | |||
end | end | ||