Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
added prayers
m (Added alt magic)
(added prayers)
Line 8: Line 8:
local Shared = require('Module:Shared')
local Shared = require('Module:Shared')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
function p.getPrayerNavbox(frame)
  local prayers = {}
  for i, prayer in pairs(SkillData.Prayer) do
    table.insert(prayers, Icons.Icon({prayer.name, type="prayer"}))
  end
  local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"'
  result = result..'\r\n!'..Icons.Icon({'Prayer', 'Prayers', type='skill'})
  result = result..'\r\n|-\r\n|style="text-align:center;"|'..table.concat(prayers, ' • ')
  result = result..'\r\n|}'
  return result
end


function p.getSkillcapeNavbox(frame)
function p.getSkillcapeNavbox(frame)
444

edits