Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
17 bytes added ,  17:07, 14 February 2022
no edit summary
Line 59: Line 59:
function p.iconList(frame)
function p.iconList(frame)
if string.match(string.lower(frame.args[1]), '%[%[file:') ~= nil then
if string.match(string.lower(frame.args[1]), '%[%[file:') ~= nil then
return '[[Category:Material List with Embedded Templates]]'
return frame.args[1] .. '[[Category:Material List with Embedded Templates]]'
else
else
list = string.gsub(string.gsub(frame.args[1], '%[%[', ''), '%]%]', '')
list = string.gsub(string.gsub(frame.args[1], '%[%[', ''), '%]%]', '')

Navigation menu