• 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 137: Line 137:  
end
 
end
   −
local function render(args)
+
local tabberTemplate = [=[Total yield = ${total}
 +
{{!}}-{{!}}
 +
Hourly yield = ${hourly}
 +
{{!}}-{{!}}
 +
Requirements = ${requirements}]=]
 +
 
 +
local function render(args, frame)
 
   local world = tonumber(args.explicit.world)
 
   local world = tonumber(args.explicit.world)
 
   local es = U.ifilter(data, function(e) return e.maparea_id == world end)
 
   local es = U.ifilter(data, function(e) return e.maparea_id == world end)
   return U.format{
+
 
 +
   local total = U.format{
 
     tableHeader,
 
     tableHeader,
 
     icon = isons[world],
 
     icon = isons[world],
Line 166: Line 173:  
     }
 
     }
 
   end)) .. "\n|}"
 
   end)) .. "\n|}"
 +
 +
  return not frame and total or frame:callParserFunction('#tag:tabber', U.format{
 +
    tabberTemplate,
 +
    total = total,
 +
    hourly = '',
 +
    requirements = '',
 +
  })
 
end
 
end
  
cssedit, gkautomate
7,060

edits

Navigation menu