Module:Crafting: Difference between revisions

m
no edit summary
m (only use custom names and lore if the parameters are set to something)
mNo edit summary
Line 85: Line 85:


     local name = args['name'] or args['Name'] or args['title'] or args['Title']
     local name = args['name'] or args['Name'] or args['title'] or args['Title']
     if name ~= nil then
     if name.len() ~= 0 then
         sprite:SetTitle(name)
         sprite:SetTitle(name)
     end
     end


     local lore = args['lore'] or args['Lore'] or args['text'] or args['Text']
     local lore = args['lore'] or args['Lore'] or args['text'] or args['Text']
     if lore ~= nil then
     if lore.len() ~= 0 then
         sprite:SetLore(lore)
         sprite:SetLore(lore)
     end
     end
Line 155: Line 155:


     local name = args['name'] or args['Name'] or args['title'] or args['Title']
     local name = args['name'] or args['Name'] or args['title'] or args['Title']
     if name ~= nil then
     if name.len() ~= 0 then
         sprite:SetTitle(name)
         sprite:SetTitle(name)
     end
     end


     local lore = args['lore'] or args['Lore'] or args['text'] or args['Text']
     local lore = args['lore'] or args['Lore'] or args['text'] or args['Text']
     if lore ~= nil then
     if lore.len() ~= 0 then
         sprite:SetLore(lore)
         sprite:SetLore(lore)
     end
     end
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,563

edits