• 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 37: Line 37:  
local types = {}
 
local types = {}
 
local assetTypes = { item = 'Item Icon', equipment = 'Equipment Card', ship = 'Ship Banner' }
 
local assetTypes = { item = 'Item Icon', equipment = 'Equipment Card', ship = 'Ship Banner' }
 +
local assetSizes = { item = '75px', equipment = '75px', ship = '240px' }
 
local function setData(diff)
 
local function setData(diff)
 
for _, v in ipairs(data[diff] or {}) do
 
for _, v in ipairs(data[diff] or {}) do
Line 62: Line 63:  
for _, name in ipairs(index) do
 
for _, name in ipairs(index) do
 
local typ = types[name]
 
local typ = types[name]
local asset = string.format("[[File:%s %s.png|%s|link=%s]]", assetTypes[typ] or '??', name, typ == 'equipment' and '75px' or '', name)
+
local asset = string.format("[[File:%s %s.png|%s|link=%s]]", assetTypes[typ] or '??', name, assetSizes[typ] or '??', name)
 
table.insert(result, string.format(template.row, asset, name, getCell(name, 'Casual'), getCell(name, 'Easy'), getCell(name, 'Medium'), getCell(name, 'Hard')))
 
table.insert(result, string.format(template.row, asset, name, getCell(name, 'Casual'), getCell(name, 'Easy'), getCell(name, 'Medium'), getCell(name, 'Hard')))
 
end
 
end
cssedit, gkautomate
6,928

edits

Navigation menu