• 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
no edit summary
Line 65: Line 65:  
end
 
end
   −
function ShipPage:format_ship_infoboxes()
+
function ShipPage:format_ship_infoboxes(basepagename)
 
     local forms = ship_remodel_forms(self._vars.ship_name)
 
     local forms = ship_remodel_forms(self._vars.ship_name)
 
     local infoboxes = {}
 
     local infoboxes = {}
 
     for i, form in ipairs(forms) do
 
     for i, form in ipairs(forms) do
 +
        local override
 +
        if basepagename == "Sandbox" then
 +
            override = { _page = "Sandbox/" .. self._vars.ship_name }
 +
        end
 
         table.insert(infoboxes, format{
 
         table.insert(infoboxes, format{
 
             self._ship_infobox,
 
             self._ship_infobox,
 
             title = (self._ship_infobox_titles[i] or "?") .. (reversible_forms[form] and " (Reversible)" or ""),
 
             title = (self._ship_infobox_titles[i] or "?") .. (reversible_forms[form] and " (Reversible)" or ""),
             infobox = ShipInfoKai:Infobox({ form })
+
             infobox = ShipInfoKai:Infobox({ form, override = override })
 
         })
 
         })
 
     end
 
     end
Line 88: Line 92:  
     }
 
     }
 
     self:format_ship_meta()
 
     self:format_ship_meta()
     self:format_ship_infoboxes()
+
     self:format_ship_infoboxes(basepagename)
 
     self:format_ship_categories(basepagename)
 
     self:format_ship_categories(basepagename)
 
     return format(self._header, self._vars)
 
     return format(self._header, self._vars)
cssedit, gkautomate
7,060

edits

Navigation menu