• 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
support air raid bodes
Line 1: Line 1: −
   
local Utils = require('Module:Utils')
 
local Utils = require('Module:Utils')
 
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
 
local NodeInfo = require('Module:NodeInfo')
 
local NodeInfo = require('Module:NodeInfo')
 +
 +
local title_template_simple = [[<div id="${map} ${node} ${diff}" style="width:700px;text-align:center;">${map} ${node}: ${name}</div>
 +
]]
    
local title_template = [[<div id="${map} ${node} ${diff}" style="width:700px;text-align:center;">${map} ${node}: ${name} ([http://db.kcwiki.moe/drop/map/${event_number}${map_number}/${diff_number}/${node}-SAB.html PoiDB])</div>
 
local title_template = [[<div id="${map} ${node} ${diff}" style="width:700px;text-align:center;">${map} ${node}: ${name} ([http://db.kcwiki.moe/drop/map/${event_number}${map_number}/${diff_number}/${node}-SAB.html PoiDB])</div>
Line 27: Line 29:  
     map = map or "E-?"
 
     map = map or "E-?"
   −
     local node = args[1] and string.match(args[1], "^[A-Z]$") and args[1] or "?"
+
     local node = args[1] and (string.match(args[1], "^[A-Z]$") or args[1] == "AB") and args[1] or "?"
 
     local diff = diff_numbers[args.diff] and args.diff or "?"
 
     local diff = diff_numbers[args.diff] and args.diff or "?"
 
     local name = args.name or "?"
 
     local name = args.name or "?"
Line 36: Line 38:     
     return format{
 
     return format{
         title_template,
+
         node == "AB" and title_template_simple or title_template,
 
         map = map,
 
         map = map,
 
         node = node,
 
         node = node,
cssedit, gkautomate
7,064

edits

Navigation menu