Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 13: Line 13:
   local cookedFish = {}
   local cookedFish = {}
   local harvestedFood = {}
   local harvestedFood = {}
  local special = {}
   for i, item in pairs(ItemData.Items) do
   for i, item in pairs(ItemData.Items) do
     if i >= 22 and i < 34 then
     if i >= 22 and i < 34 then
Line 21: Line 22:
   end
   end
   table.insert(harvestedFood, Icons.Icon({'Carrot', type='item'}))
   table.insert(harvestedFood, Icons.Icon({'Carrot', type='item'}))
  table.insert(special, Icons.Icon({'Raw Magic Fish', type='item'}))
  table.insert(special, Icons.Icon({'Lemonade', type='item'}))
   local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"'
   local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"'
   result = result..'\r\n!colspan="2"|[[File:Carrot_(item).svg|25px|link=Food]] [[Food]]'
   result = result..'\r\n!colspan="2"|[[File:Carrot_(item).svg|25px|link=Food]] [[Food]]'
444

edits