1,124
edits
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], '%[%[', ''), '%]%]', '') |