Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
21 bytes added ,  14:59, 23 December 2021
no edit summary
Line 19: Line 19:
if com.exists(value) then
if com.exists(value) then
value = ' (' .. value .. ')'
value = ' (' .. value .. ')'
else
value = ''
end
end
mw.log(value)
result = '[[file:'  
result = '[[file:'  
Line 29: Line 30:
.. ']]'
.. ']]'
if com.exists(text) == true then
if com.exists(text) then
if string.lower(text) ~= 'no' then
if string.lower(text) ~= 'no' then
result = result .. '[['
result = result .. '[['
Line 36: Line 37:
end
end
end
end
result = result .. value
else
else
result = 'Icon does not exist[[Category:Missing Icon]]'
result = 'Icon does not exist[[Category:Missing Icon]]'

Navigation menu