Module:Nested Lists: Difference between revisions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 106: | Line 106: | ||
if iconName and iconName ~= '' then | if iconName and iconName ~= '' then | ||
-- Check whether the requested icon exists. | |||
if not exists.checkExists('File:' .. iconName) then | |||
iconName = 'Unknown.png' | |||
end | |||
-- Link the icon to the item page if it exists. | |||
if pageExists then | if pageExists then | ||
icon = string.format( | icon = string.format( | ||