Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
m
getFoodNavbox: Padding to align header
(getFoodNavbox: Revise implementation to include all current and hopefully all future food)
m (getFoodNavbox: Padding to align header)
Line 130: Line 130:
   local resultPart = {}
   local resultPart = {}
   table.insert(resultPart, '{| class="wikitable mw-collapsible" style="margin:0 auto 10px; clear:both; width: 100%"')
   table.insert(resultPart, '{| class="wikitable mw-collapsible" style="margin:0 auto 10px; clear:both; width: 100%"')
   table.insert(resultPart, '\r\n|-\r\n!style="background-color:#275C87;color:#FFFFFF;" colspan="2"| [[File:Crab_(item).svg|25px|link=Food]] [[Food]]')
   table.insert(resultPart, '\r\n|-\r\n!style="background-color:#275C87;color:#FFFFFF;padding-left:64px;" colspan="2"| [[File:Crab_(item).svg|25px|link=Food]] [[Food]]')
   table.insert(resultPart, '\r\n|-\r\n!colspan="2"| Cooked')
   table.insert(resultPart, '\r\n|-\r\n!colspan="2"| Cooked')
   for catID, foodTable in ipairs(cookedFood) do
   for catID, foodTable in ipairs(cookedFood) do