• 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 2: Line 2:  
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
 
local getArgs = require('Module:GetArgs')
 
local getArgs = require('Module:GetArgs')
local Ship = require('Module:Ship')
+
--local Ship = require('Module:Ship')
    
function format_category(name)
 
function format_category(name)
Line 78: Line 78:  
end
 
end
    +
--[[
 
function isCarrier(base_ship_name, remodel)
 
function isCarrier(base_ship_name, remodel)
 
     local ship = Ship(base_ship_name .. "/" .. (remodel or ""))
 
     local ship = Ship(base_ship_name .. "/" .. (remodel or ""))
 
     return ship:type() == 11 or ship:type() == 16 or ship:type() == 18
 
     return ship:type() == 11 or ship:type() == 16 or ship:type() == 18
 
end
 
end
 +
]]--
    
-- Global variable, potentially altered by insertRow, checked by Quotes.ShipQuotes.
 
-- Global variable, potentially altered by insertRow, checked by Quotes.ShipQuotes.
Line 87: Line 89:     
function insertRow(result, remodel, args, line, count)
 
function insertRow(result, remodel, args, line, count)
 +
 +
    local ship = args.ship:gsub(" ", "")
    
     local remodel_string = remodel and "/" .. remodel or ""
 
     local remodel_string = remodel and "/" .. remodel or ""
Line 105: Line 109:  
     local is_empty_pre_kai_line = not remodel and not ja and not en and not jaEn and (args[line.name .. "/Kai"] or args[line.name .. "/Kai/En"] or args[line.name .. "/Kai/Both"])
 
     local is_empty_pre_kai_line = not remodel and not ja and not en and not jaEn and (args[line.name .. "/Kai"] or args[line.name .. "/Kai/En"] or args[line.name .. "/Kai/Both"])
    +
    --[[
 
     if line.name == "Night Attack" then
 
     if line.name == "Night Attack" then
 
         line.extra = isCarrier(args.ship, remodel)
 
         line.extra = isCarrier(args.ship, remodel)
Line 110: Line 115:  
         line.extra = not isCarrier(args.ship, remodel)
 
         line.extra = not isCarrier(args.ship, remodel)
 
     end
 
     end
 +
    ]]--
    
     if (not remodel and not line.extra or jaEn or ja or en or note) and not is_empty_pre_kai_line then
 
     if (not remodel and not line.extra or jaEn or ja or en or note) and not is_empty_pre_kai_line then
Line 126: Line 132:  
                 audio_file = format{
 
                 audio_file = format{
 
                     templates.audio_file,
 
                     templates.audio_file,
                     ship = args.ship,
+
                     ship = ship,
 
                     suffix = audio_suffixes[remodel] or "",
 
                     suffix = audio_suffixes[remodel] or "",
 
                     line = same or line.name,
 
                     line = same or line.name,
cssedit, gkautomate
6,996

edits

Navigation menu