Changes

add edit links
Line 15: Line 15:  
|style="width:20%"|Rewards
 
|style="width:20%"|Rewards
 
|style="width:0.5%"|
 
|style="width:0.5%"|
|style="width:30%"|Note
+
|style="width:30%"|Note<span style="float:right;margin-top:-2em">[[Module:Data/Quest/${category}|[edit]]]</span>
 
|-]=]
 
|-]=]
   Line 36: Line 36:  
   local filter = { (args.explicit['filterMatch'] or nil), (args.explicit['filterGroup'] or nil) }
 
   local filter = { (args.explicit['filterMatch'] or nil), (args.explicit['filterGroup'] or nil) }
 
   local result = {}
 
   local result = {}
  table.insert(result, table_header)
+
   for i, category in ipairs(args.explicit) do
   for i,cat in ipairs(args.explicit) do
+
     local data = Data.load('Quest', category)
     local data = Data.load('Quest', cat)
+
    table.insert(result, _.format(table_header, { category = category }))
 
     for i, q in ipairs(data) do
 
     for i, q in ipairs(data) do
 
       if (not filter[1] or not filter[2]) or (string.match(q[filter[2]], filter[1])) then
 
       if (not filter[1] or not filter[2]) or (string.match(q[filter[2]], filter[1])) then
Line 57: Line 57:  
       end  
 
       end  
 
     end
 
     end
 +
    table.insert(result, table_footer)
 
   end
 
   end
   table.insert(result, table_footer)
+
    
 
   return frame:preprocess(_.join(result, '\n'))
 
   return frame:preprocess(_.join(result, '\n'))
 
end
 
end
    
return View(render)
 
return View(render)
cssedit, gkautomate
7,064

edits