• 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 6: Line 6:  
local function getShipCard(ship)
 
local function getShipCard(ship)
 
   local s = Ship(ship)
 
   local s = Ship(ship)
   local i = s:id() or s:true_id()
+
   -- local i = s:id() or s:true_id()
   local is = i and (i < 10 and '00' .. i or i < 100 and '0' .. i or i) or '?'
+
   -- local is = i and (i < 10 and '00' .. i or i < 100 and '0' .. i or i) or '?'
   return '[[File:KanMusu' .. is .. 'Banner.png|160px|link=' .. s:base_name() .. ']]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
+
   return '[[File:Ship Banner ' .. s:name() .. '.png|160px|link=' .. s:base_name() .. ']]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
 
end
 
end
    
local function getEquipmentCard(eq)
 
local function getEquipmentCard(eq)
   return '[[File:Equipment' .. (Equipment(eq):id() or '?') .. '-1.png|100px|link=' .. eq .. ']]'
+
  local e = Equipment(eq)
 +
   return '[[File:Equipment Card ' .. e:name() .. '.png|100px|link=' .. e:name() .. ']]'
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu