• 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
Implemented a more permanent solution to the node type differences
Line 3: Line 3:  
local NodeInfo = require('Module:NodeInfo')
 
local NodeInfo = require('Module:NodeInfo')
   −
local title_template_simple_event = [[<div id="${map} ${node} ${diff}" style="width:700px;text-align:center;">${map} ${node}: ${name}</div>
+
local title_template_simple_event = [[<div id="${map} ${node} ${diff}" style="width:700px;text-align:center;">${map} ${node}${name}</div>
 
]]
 
]]
   −
local title_template_event = [[<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_event = [[<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_simple = [[<div id="${map} ${node}" style="width:700px;text-align:center;">${map} ${node}: ${name}</div>
+
local title_template_simple = [[<div id="${map} ${node}" style="width:700px;text-align:center;">${map} ${node}${name}</div>
 
]]
 
]]
   −
local title_template = [[<div id="${map} ${node}" style="width:700px;text-align:center;">${map} ${node}: ${name} ([http://db.kcwiki.moe/drop/map/${world_number}${map_number}/${node}-SAB.html PoiDB])</div>
+
local title_template = [[<div id="${map} ${node}" style="width:700px;text-align:center;">${map} ${node}${name} ([http://db.kcwiki.moe/drop/map/${world_number}${map_number}/${node}-SAB.html PoiDB])</div>
 
]]
 
]]
   Line 45: Line 45:  
     ["Medium"] = 3,
 
     ["Medium"] = 3,
 
     ["Hard"] = 4,
 
     ["Hard"] = 4,
 +
}
 +
 +
local node_types = {
 +
    ["Normal"] = true,
 +
    ["Boss"] = true,
 +
    ["Resource"] = false,
 +
    ["Storm"] = false,
 +
    ["Empty"] = false,
 +
    ["Select"] = false,
 +
    ["Night"] = true,
 +
    ["Aerial"] = true,
 +
    ["Defense"] = false,
 +
    ["Raid"] = true,
 
}
 
}
   Line 59: Line 72:  
     local node = args[1] or "?"
 
     local node = args[1] or "?"
 
     local diff = diffs[args.diff] and args.diff
 
     local diff = diffs[args.diff] and args.diff
     local name = args.name or "?"
+
     local name = ": "+args.name or ""
    
     local map_number = string.match(map:sub(3, 4), "%d") or "?"
 
     local map_number = string.match(map:sub(3, 4), "%d") or "?"
 
     local diff_number = diffs[diff]
 
     local diff_number = diffs[diff]
 
+
   
 
     return diff and format{
 
     return diff and format{
         node == "AB" and title_template_simple_event or title_template_event,
+
         node_types[args[2]] and title_template_simple_event or title_template_event,
 
         map = map,
 
         map = map,
 
         node = node,
 
         node = node,
Line 74: Line 87:  
         diff_number = diff_number,
 
         diff_number = diff_number,
 
     } or format{
 
     } or format{
         node == "AB" and title_template_simple or title_template,
+
         node_types[args[2]] and title_template_simple or title_template,
 
         map = map,
 
         map = map,
 
         node = node,
 
         node = node,
cssedit, prechecked
1,656

edits

Navigation menu