Changes

m
no edit summary
Line 53: Line 53:     
     local world, map = string.match(pagename, "([^/]+)/([^/]+)")
 
     local world, map = string.match(pagename, "([^/]+)/([^/]+)")
     world = world or "?"
+
     world = world or "??"
     map = map or "?"
+
     map = map or "??"
   −
     local world_number = world_numbers[world] or "?"
+
     local world_number = world_numbers[world] or "??"
     local map_number = string.match(map:sub(3, 4), "%d") or "?"
+
     local map_number = string.match(map:sub(3, 4), "%d") or "??"
   −
     local node = args[1] or "?"
+
     local node = args[1] or "??"
     local node_type = args[2] or "?"
+
     local node_type = args[2] or "??"
     local is_simple_node_type = node_type == "?" or U.ifind(simple_node_types, node_type)
+
     local is_simple_node_type = node_type == "??" or U.ifind(simple_node_types, node_type)
   −
     local diffs = (world_number == "?" or world_number >= 41) and diff_numbers or diff_numbers_legacy
+
     local diffs = (world_number == "??" or world_number >= 41) and diff_numbers or diff_numbers_legacy
 
     local diff = diffs[args.diff] and args.diff
 
     local diff = diffs[args.diff] and args.diff
     local diff_number = diffs[diff] or "?"
+
     local diff_number = diffs[diff] or "??"
    
     local nameSuffix = args.name and ": " .. args.name or ""
 
     local nameSuffix = args.name and ": " .. args.name or ""
Line 88: Line 88:  
         local args = U.getTemplateArgs(frame)
 
         local args = U.getTemplateArgs(frame)
 
         local world, map = string.match(args.implicit.pagename, "([^/]+)/([^/]+)")
 
         local world, map = string.match(args.implicit.pagename, "([^/]+)/([^/]+)")
         args.implicit.world = world or '?'
+
         args.implicit.world = world or '??'
         args.implicit.map = map or '?'
+
         args.implicit.map = map or '??'
 
         local table_string = NodeInfo:Table(args.explicit, args.implicit)
 
         local table_string = NodeInfo:Table(args.explicit, args.implicit)
 
         if args.explicit.diff or args.implicit.pagename and args.implicit.pagename:sub(1, 5) == "World" then
 
         if args.explicit.diff or args.implicit.pagename and args.implicit.pagename:sub(1, 5) == "World" then
cssedit, gkautomate
7,064

edits