Module:Sprite: Difference between revisions

Jump to navigation Jump to search
Add inline support
(added a title)
(Add inline support)
Line 96: Line 96:
end
end


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


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

edits

Navigation menu