Module:Sprite: Difference between revisions

Remove sprite level inline support
(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


Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits