• 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 30: Line 30:  
     local shipNum = shipmodule.getIDNum(frame)
 
     local shipNum = shipmodule.getIDNum(frame)
   −
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
+
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
 
-- Top half of infobox
 
-- Top half of infobox
 
     -- Cards & Banners
 
     -- Cards & Banners
Line 171: Line 171:  
     local shipNum = shipmodule.getIDNum(frame)
 
     local shipNum = shipmodule.getIDNum(frame)
   −
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
+
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
    
     -- Equipment table
 
     -- Equipment table
Line 245: Line 245:  
     local shipNum = shipmodule.getIDNum(frame)
 
     local shipNum = shipmodule.getIDNum(frame)
   −
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
+
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
    
     local RscHeader = '<th style="width: 25%; white-space: nowrap; {{border-radius|12px 4px 4px 12px}} background-color: #3baef5; color: #ffffff; padding-left: 5px; padding-right: 5px; text-align: right;">'
 
     local RscHeader = '<th style="width: 25%; white-space: nowrap; {{border-radius|12px 4px 4px 12px}} background-color: #3baef5; color: #ffffff; padding-left: 5px; padding-right: 5px; text-align: right;">'
Line 329: Line 329:  
end
 
end
   −
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
+
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
 
     -- Artist & Voice Info
 
     -- Artist & Voice Info
 
     local RscHeader = '<th style="width: 25%; white-space: nowrap; {{border-radius|12px 4px 4px 12px}} background-color: #3baef5; color: #ffffff; padding-left: 5px; padding-right: 5px; text-align: right;">'
 
     local RscHeader = '<th style="width: 25%; white-space: nowrap; {{border-radius|12px 4px 4px 12px}} background-color: #3baef5; color: #ffffff; padding-left: 5px; padding-right: 5px; text-align: right;">'
Line 355: Line 355:     
function shipmodule.createCategories(frame)
 
function shipmodule.createCategories(frame)
local shipNum = frame.args[1]
+
local shipNum = shipmodule.getIDNum(frame)
    -- Getting ship ID, number, & info
+
    if (tonumber(string.sub(shipNum, 1, 3)) == nil and string.sub(shipNum, 1, 4) ~= "Mist" ) then -- if given a name instead of ID, this searches the db for the ship's corresponding ID
+
     local shipInfo = assert(shipmodule.data[shipNum], "KanMusu ID " .. shipNum .. " doesn't have a database entry")
    shipNum = shipdb.findID(frame)
  −
end
  −
 
  −
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
      
local cat = '[[Category:Ships]]'
 
local cat = '[[Category:Ships]]'
5,421

edits

Navigation menu