Module:InventorySlot: Difference between revisions

Jump to navigation Jump to search
Should now add `invslot` to html item slots
m (Shouldn't help so frick)
(Should now add `invslot` to html item slots)
Line 60: Line 60:
else
else
slot = mw.html.create("div")
slot = mw.html.create("div")
end
slot:addClass( "invslot" )
if self.__large then
slot:addClass( "invslot-large")
end
end


if self.__html then
if self.__html then
return slot:wikitext(self.__html)
slot:wikitext(self.__html)
end
end
slot:addClass( "invslot" )


if self.__sprite then
if self.__sprite then
local spriteDiv = self.__sprite:GenerateHTML(slot)
self.__sprite:GenerateHTML(slot)
end
if self.__large then
slot:addClass( "invslot-large")
end
end
return slot
return slot
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits

Navigation menu