Line 72: |
Line 72: |
| end | | end |
| | | |
− | function ShipPage:format_ship_categories() | + | function ShipPage:format_ship_categories(basepagename) |
− | self._vars.ship_categories = ShipCategoriesKai:Categories({ self._vars.ship_name }) | + | self._vars.ship_categories = basepagename == "Sandbox" and "" or ShipCategoriesKai:Categories({ self._vars.ship_name }) |
| end | | end |
| | | |
Line 83: |
Line 83: |
| self:format_ship_meta() | | self:format_ship_meta() |
| self:format_ship_infoboxes() | | self:format_ship_infoboxes() |
− | if basepagename ~= "Sandbox" then | + | self:format_ship_categories(basepagename) |
− | self:format_ship_categories()
| |
− | end
| |
| return format(self._header, self._vars) | | return format(self._header, self._vars) |
| end | | end |
Line 98: |
Line 96: |
| args = args or Utils.getTemplateArgs(frame) | | args = args or Utils.getTemplateArgs(frame) |
| local ship_name = args.explicit.ship or args.implicit.pagename or "" | | local ship_name = args.explicit.ship or args.implicit.pagename or "" |
| + | if not args.explicit.ship and args.implicit.pagename and args.implicit.basepagename == "Sandbox" then |
| + | ship_name = ship_name .. "/" |
| + | end |
| local ship = Ship(ship_name) | | local ship = Ship(ship_name) |
| local ship_type = ship:type() | | local ship_type = ship:type() |