Module:Sprite: Difference between revisions

ohgodIhopethisdoesn'tbreakeverything
(this should allow for changing sizes of spritesheets, it also may just break everything.)
(ohgodIhopethisdoesn'tbreakeverything)
Line 308: Line 308:
sprite:cssText( styles )
sprite:cssText( styles )


if self.__settings.link then
local parentDiv = mw.html.create("span"):css("position","relative")
parentDiv:node(spriteDiv)
local link = self.__settings.link
if link:sub( 1,2 ) == '[[' then
parentDiv:wikitext(']]')
elseif link:sub ( 1,1 ) == '[' then
parentDiv:wikitext(']')
return parentDiv
end
end


return sprite
return sprite
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits