• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 204: Line 204:  
end
 
end
   −
function ShipPage.ClassTemplateTest(frame, args)
+
function ShipPage.ClassTemplateTest(frame)
     args = args or U.getTemplateArgs(frame)
+
     local args = U.getTemplateArgs(frame)
    local basepagename = args.implicit.basepagename or ""
   
     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 classI = ship:class()
 
     local classI = ship:class()
     local class = classI and classI:base_name_test() or "Unknown Class"
+
     local class = classI and classI:base_name_test() or "?"
     if basepagename == "Sandbox" then
+
     return string.format("|%s|%s|%s|", ship_name, ship:name(), tostring(class))
        return "Sandbox/" .. class
  −
    else
  −
        return class
  −
    end
   
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu