4,951
edits
Falterfire (talk | contribs) (Fixed a thing) |
Falterfire (talk | contribs) (Added getPrayerCategories) |
||
Line 132: | Line 132: | ||
return p._getPrayerStat(prayer, statName) | return p._getPrayerStat(prayer, statName) | ||
end | |||
function p._getPrayerCategories(prayer) | |||
return '[[Category:Prayers]]' | |||
end | |||
function p.getPrayerCategories(frame) | |||
local prayerName = frame.args ~= nil and frame.args[1] or frame[1] | |||
local prayer = p.getPrayer(prayerName) | |||
if prayer == nil then | |||
return "ERROR: Could not find a prayer named "..prayerName | |||
end | |||
return p._getPrayerCategories(prayer) | |||
end | end | ||
return p | return p |