1,124
edits
Line 6: | Line 6: | ||
local function _requirements(resource, value, link, text) | local function _requirements(resource, value, link, text) | ||
resource = string.lower(com.trim(resource)) | resource = string.lower(com.trim(resource)) | ||
resource = iconList[resource] | resource = iconList[resource] | ||
Line 17: | Line 16: | ||
--No point trimming the value if it won't be used | --No point trimming the value if it won't be used | ||
value = com.trim(value) | value = com.trim(value) | ||
mw.log(value .. ' ') | |||
--Check after trim as may be whitespace only | --Check after trim as may be whitespace only | ||
if com.exists(value) == true then | if com.exists(value) == true then |