Module:Sprite: Difference between revisions
Jump to navigation
Jump to search
(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( | sprite = html:tag(tagtype) | ||
else | else | ||
sprite = mw.html.create( | sprite = mw.html.create(tagtype) | ||
end | end | ||