• 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 13: Line 13:     
local function getShipCard(ship)
 
local function getShipCard(ship)
     return '[[File:KanMusu' .. Ship(ship):id() .. 'Banner.png]]<br>' .. '[[' .. Ship(ship):base_name() .. '|' .. Ship(ship):name() .. ']]'
+
    local s = Ship(ship)
 +
     return '[[File:KanMusu' .. (s:id() or s:true_id() or '?') .. 'Banner.png]]<br>[[' .. s:base_name() .. '|' .. s:name() .. ']]'
 
end
 
end
    
local function getEquipmentCard(eq)
 
local function getEquipmentCard(eq)
     return '[[File:Equipment' .. Equipment(eq):id() .. '-1.png|150px]]' .. '<!--' .. eq .. '-->'
+
     return '[[File:Equipment' .. Equipment(eq):id() .. '-1.png|150px]]<!--' .. eq .. '-->'
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu