Module:Sprite: Difference between revisions

Jump to navigation Jump to search
m
oops.
m (Gotta have a nil check in fallbacks)
m (oops.)
Line 120: Line 120:
function Sprite:setItem(item)
function Sprite:setItem(item)
     if aliases[item] then
     if aliases[item] then
if aliases[item].text then
self.__settings.text = aliases[item].text
end
if aliases[item].title then
if aliases[item].title then
if #aliases[item].title == 2 then
if #aliases[item].title == 2 then
Line 131: Line 135:
     else
     else
         self.__settings.name = item;
         self.__settings.name = item;
end
if aliases[item].text then
self.__settings.text = aliases[item].text
end
end


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

edits

Navigation menu