1,124
edits
(adding some debugging) |
|||
Line 7: | Line 7: | ||
resource = string.lower(com.trim(resource)) | resource = string.lower(com.trim(resource)) | ||
resource = iconList[resource] | resource = iconList[resource] | ||
mw.log('Requirements ' .. resource .. ' ' .. value) | |||
if resource ~= nil then | if resource ~= nil then | ||
-- Init link here, will be nil if resource is nil | -- Init link here, will be nil if resource is nil | ||
Line 60: | Line 60: | ||
for k, v in ipairs(list) do | for k, v in ipairs(list) do | ||
vs = mw.text.split(v, '-') | vs = mw.text.split(v, '-') | ||
mw.log(vs[1] .. ' ' .. vs[2]) | mw.log(vs[1] .. ' ' .. vs[2] .. '\n') | ||
result = result .. _requirements(vs[1], vs[2], nil, frame.args['text']) | result = result .. _requirements(vs[1], vs[2], nil, frame.args['text']) | ||
if k ~= table.getn(list) then | if k ~= table.getn(list) then |