1,124
edits
Line 17: | Line 17: | ||
local function _requirements(resource, value, link, text) | local function _requirements(resource, value, link, text) | ||
resource = trim(resource) | resource = string.lower(trim(resource)) | ||
if iconList[resource] ~= nil then | |||
if iconList[ | |||
result = '[[file:' .. iconList[resource]['file'] .. '|16px|link=' | result = '[[file:' .. iconList[resource]['file'] .. '|16px|link=' | ||
if link ~= nil and link ~= '' then | if link ~= nil and link ~= '' then | ||
Line 50: | Line 48: | ||
function p.requirements(frame) | function p.requirements(frame) | ||
r = | r = frame.args['resource'] | ||
v = frame.args['value'] | v = frame.args['value'] | ||
l = frame.args['link'] | l = frame.args['link'] |