Module:Sprite: Difference between revisions

Jump to navigation Jump to search
m
it'stoolateineedtogotosleep
(ohgodIhopethisdoesn'tbreakeverything)
m (it'stoolateineedtogotosleep)
Line 108: Line 108:
title = title,
title = title,
lore = lore,
lore = lore,
enchanted = enchanted
enchanted = enchanted,
link = link
}
}
}
}
Line 310: Line 311:
if self.__settings.link then
if self.__settings.link then
local parentDiv = mw.html.create("span"):css("position","relative")
local parentDiv = mw.html.create("span"):css("position","relative")
local link = self.__settings.link
if link:sub ( 1,1 ) == '[' then
parentDiv:wikitext(link:sub( 1,#link-1 ) .. '|')
else
parentDiv:wikitext('[[' .. link .. '|')
end
parentDiv:node(spriteDiv)
parentDiv:node(spriteDiv)
local link = self.__settings.link
if link:sub( 1,2 ) == '[[' then
if link:sub( 1,1 ) == '[' then
parentDiv:wikitext(']')
else
parentDiv:wikitext(']]')
parentDiv:wikitext(']]')
elseif link:sub ( 1,1 ) == '[' then
parentDiv:wikitext(']')
return parentDiv
end
end
return parentDiv
end
end


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

edits

Navigation menu