• 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 13: Line 13:  
     line_link = "[${link} ${line}]",
 
     line_link = "[${link} ${line}]",
 
     first_row_style = [[style=""]],
 
     first_row_style = [[style=""]],
 +
    spoiler = [[<span style="background-color:#3A3A3A">${text}</span>]],
 
     row = [=[|- ${style}
 
     row = [=[|- ${style}
 
| nowrap="nowrap" |${audio_button}${line}
 
| nowrap="nowrap" |${audio_button}${line}
Line 34: Line 35:  
     ["Modernization"] = "Modernization is shared with remodeling line.",
 
     ["Modernization"] = "Modernization is shared with remodeling line.",
 
}
 
}
 +
 +
local spoilers = {
 +
    "Secretary Married", "Wedding", "Sunk",
 +
}
 +
 +
function format_text(text, line)
 +
    return text and spoilers[line] and format{templates.spoiler, text = text} or text or ""
 +
end
    
function insertRow(result, remodel, args, line, extra)
 
function insertRow(result, remodel, args, line, extra)
Line 54: Line 63:  
             },
 
             },
 
             line = link and format{templates.line_link, link = link, line = line} or line,
 
             line = link and format{templates.line_link, link = link, line = line} or line,
             ja = jaEn or ja or "",
+
             ja = format_text(jaEn or ja),
 
             ja_colspan = jaEn and "2" or "1",
 
             ja_colspan = jaEn and "2" or "1",
             en_cell = jaEn and "" or "|" .. (en or "") .. "\n",
+
             en_cell = jaEn and "" or "|" .. format_text(en) .. "\n",
             note = note or "",
+
             note = format_text(note),
 
         })
 
         })
 
         return 1
 
         return 1
cssedit, gkautomate
6,942

edits

Navigation menu