Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
1 byte removed ,  Yesterday at 11:22
no edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
if resource ~= nil then
if resource ~= nil then
-- Init link here, will be nil if resource is nil
if not com.exists(link) then
link = resource['link']
end
--No point trimming the value if it won't be used
--No point trimming the value if it won't be used
Line 22: Line 27:
--Check after trim as may be whitespace only
--Check after trim as may be whitespace only
if com.exists(value) then
if com.exists(value) then
value = ' ' .. value .. ' '
value = '' .. value .. ' '
else
else
value = ''
value = ''
end
-- Init link here, will be nil if resource is nil
if not com.exists(link) then
link = resource['link']
end
end


Line 45: Line 45:
end
end
end
end
result = result .. value
result = value .. result
else
else
result = 'Icon does not exist[[Category:Missing Icon]]'
result = 'Icon does not exist[[Category:Missing Icon]]'
458

edits

Navigation menu