Module:Sprite: Difference between revisions

Was confused by local scope
(typo)
(Was confused by local scope)
Line 86: Line 86:


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


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

edits