Changes

m
no edit summary
Line 195: Line 195:  
     local ship_name = args.explicit.ship or args.implicit.pagename or ""
 
     local ship_name = args.explicit.ship or args.implicit.pagename or ""
 
     local ship = Ship(ship_name)
 
     local ship = Ship(ship_name)
     local class = ship:class() and ship:class():name_override()
+
     local classI = ship:class()
 +
    local class = classI and classI:name_override() or "Unknown Class"
 
     if basepagename == "Sandbox" then
 
     if basepagename == "Sandbox" then
         return ("Sandbox/" .. class) or "Unknown Class"
+
         return "Sandbox/" .. class
 
     else
 
     else
         return class or "Unknown Class"
+
         return class
 
     end
 
     end
 
end
 
end
Line 208: Line 209:  
     local ship_name = args.explicit.ship or args.implicit.pagename or ""
 
     local ship_name = args.explicit.ship or args.implicit.pagename or ""
 
     local ship = Ship(ship_name)
 
     local ship = Ship(ship_name)
     local class, what = ship:class() and ship:class():name_override()
+
     local classI = ship:class()
 +
    local class, what
 +
    if classI then
 +
        class, what = classI:name_override()
 +
    end
 
     if basepagename == "Sandbox" then
 
     if basepagename == "Sandbox" then
         return ("Sandbox/" .. class) or "Unknown Class"
+
         return "Sandbox/" .. (class or "Unknown Class")
 
     else
 
     else
 
         return string.format(
 
         return string.format(
cssedit, gkautomate
7,064

edits