Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
58 bytes added ,  16:16, 23 October 2021
no edit summary
Line 18: Line 18:
local function _requirements(resource, value, link, text)
local function _requirements(resource, value, link, text)
resource = trim(resource)
resource = trim(resource)
mw.log(resource)
if iconList[string.lower(resource)] ~= nil then
if iconList[string.lower(resource)] ~= nil then
result = '[[file:' .. iconList[resource]['file'] .. '|16px|link='
result = '[[file:' .. iconList[resource]['file'] .. '|16px|link='
Line 56: Line 57:


function p.iconList(frame)
function p.iconList(frame)
mw.log('Begin List')
list = mw.text.split(frame.args[1], ';')
list = mw.text.split(frame.args[1], ';')
result = ''
result = ''
Line 65: Line 67:
end
end
end
end
mw.log('End List')
return result
return result
end
end

Navigation menu