Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
45 bytes added ,  16:13, 1 December 2021
no edit summary
m (16 revisions imported: Importing from localhost)
Tag: Reverted
Line 7: Line 7:
resource = string.lower(com.trim(resource))
resource = string.lower(com.trim(resource))
resource = iconList[resource]
resource = iconList[resource]
result = ''
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 22: Line 22:
end
end
result = '[[file:'  
-- result = result ..
.. resource['file']  
-- '[[file:'  
.. '|16px|link='
-- .. resource['file']  
.. link
-- .. '|16px|link='
.. ']]'
-- .. link ]]--
-- .. ']]'
if com.exists(text) == true then
if com.exists(text) == true then

Navigation menu