Module:Sprite: Difference between revisions

Jump to navigation Jump to search
(Add inline support)
(Remove sprite level inline support)
Line 96: Line 96:
end
end


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