• 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 2: Line 2:     
local template = {
 
local template = {
top_header = [[<div style="position:relative;height:auto;align-items:center;justify-content:center;display:inline-flex;width:100%">
+
top_header = [[{|style="text-align:center"
{|style="width:100%;"
   
!colspan="5" style="background-color:#3baef5;color:white"|Rewards]],
 
!colspan="5" style="background-color:#3baef5;color:white"|Rewards]],
footer = [[|}
+
footer = [[|}]],
</div>]],
   
header = [[|-
 
header = [[|-
 
!style="background-color:#3baef5;color:white"|Equipment/Item
 
!style="background-color:#3baef5;color:white"|Equipment/Item
Line 14: Line 12:  
!style="background-color:#3baef5;color:white;width:15%"|甲<br>Hard]],
 
!style="background-color:#3baef5;color:white;width:15%"|甲<br>Hard]],
 
all = [=[|-
 
all = [=[|-
!colspan="5" style="background-color:white"|All
+
!colspan="5" style="background-color:#3baef5;color:white"|All
 
|-
 
|-
|colspan="5" style="text-align:center;font-size:12px;line-height:12px"|%s<br>[[%s]]]=],
+
|colspan="5" style="background-color:#eef2f7"|%s<br>[[%s]]]=],
 
row = [=[|-
 
row = [=[|-
|style="text-align:center;background-color:#eef2f7;font-size:12px;line-height:12px"|%s<br>[[%s]]
+
|style="background-color:#eef2f7;font-size:12px"|%s<br>[[%s]]
|style="text-align:center;background-color:#eef2f7;font-size:20px"|%s
+
|style="background-color:#eef2f7;font-size:18px"|%s
|style="text-align:center;background-color:#eef2f7;font-size:20px"|%s
+
|style="background-color:#eef2f7;font-size:18px"|%s
|style="text-align:center;background-color:#eef2f7;font-size:20px"|%s
+
|style="background-color:#eef2f7;font-size:18px"|%s
|style="text-align:center;background-color:#eef2f7;font-size:20px"|%s]=],
+
|style="background-color:#eef2f7;font-size:18px"|%s]=],
 
}
 
}
   Line 32: Line 30:  
data = data[map]
 
data = data[map]
 
if not data then return "Unknown map: " .. map end
 
if not data then return "Unknown map: " .. map end
local result = { template.top_header, template.header }
   
local index = {}
 
local index = {}
 
local tbl = {}
 
local tbl = {}
Line 71: Line 68:  
setData('Easy')
 
setData('Easy')
 
setData('Casual')
 
setData('Casual')
 +
local result = { template.top_header }
 
if ship then
 
if ship then
 
table.insert(result, string.format(template.all, getAsset(ship), ship))
 
table.insert(result, string.format(template.all, getAsset(ship), ship))
 
end
 
end
 +
table.insert(result, template.header)
 
for _, name in ipairs(index) do
 
for _, name in ipairs(index) do
 
table.insert(result, string.format(template.row, getAsset(name), name, getCell(name, 'Casual'), getCell(name, 'Easy'), getCell(name, 'Medium'), getCell(name, 'Hard')))
 
table.insert(result, string.format(template.row, getAsset(name), name, getCell(name, 'Casual'), getCell(name, 'Easy'), getCell(name, 'Medium'), getCell(name, 'Hard')))
cssedit, gkautomate
6,940

edits

Navigation menu