Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
(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) | ||
if link:sub( 1, | if link:sub( 1,1 ) == '[' then | ||
parentDiv:wikitext(']') | |||
else | |||
parentDiv:wikitext(']]') | parentDiv:wikitext(']]') | ||
end | end | ||
return parentDiv | |||
end | end | ||
edits