Module:Sprite: Difference between revisions

Jump to navigation Jump to search
(Change of plans)
(typo)
Line 87: Line 87:
function Sprite:GenerateHTML (html)
function Sprite:GenerateHTML (html)
if html then
if html then
local sprite = html.tag("div")
local sprite = html:tag("div")
else
else
local sprite = mw.html.create("div")
local sprite = mw.html.create("div")
end
end
 
sprite:addClass("sprite")
sprite:addClass("sprite")