• 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 13: Line 13:     
function shipmodule.KanmusuInfo(frame) -- Kanmusu Info Template
 
function shipmodule.KanmusuInfo(frame) -- Kanmusu Info Template
     local shipNum = frame.args[1]
+
     local shipNum = 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
  −
    shipNum = shipdb.findID(frame)
  −
end
      
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
 
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
Line 32: Line 28:     
function shipmodule.makeStatBox(frame)
 
function shipmodule.makeStatBox(frame)
local shipNum = frame.args[1]
+
    local shipNum = 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
  −
    shipNum = shipdb.findID(frame)
  −
end
      
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
 
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
Line 177: Line 169:     
function shipmodule.EquipmentBox(frame)
 
function shipmodule.EquipmentBox(frame)
     local shipNum = frame.args[1]
+
     local shipNum = 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
  −
    shipNum = shipdb.findID(frame)
  −
end
      
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
 
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
Line 255: Line 243:     
function shipmodule.ModernizationBox(frame)
 
function shipmodule.ModernizationBox(frame)
     local shipNum = frame.args[1]
+
     local shipNum = 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
  −
    shipNum = shipdb.findID(frame)
  −
end
      
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
 
     local shipInfo = assert(shipmodule.data[shipNum], "This KanMusu ID doesn't contains any data")
5,421

edits

Navigation menu