Module:Icon: Difference between revisions

LVL (talk | contribs)
Testing fix for many icons on one page
LVL (talk | contribs)
Small fix
Line 167: Line 167:


     if aliases[lowerName] then
     if aliases[lowerName] then
         return iconDataCache[aliases[lowerName]], nil
         local entry = iconDataCache[aliases[lowerName]]
        if entry then
            return entry, nil
        end
     end
     end


Line 204: Line 207:
     local name = args[1] or ""
     local name = args[1] or ""
     local customText = args.l1 or ""
     local customText = args.l1 or ""
     local iconType = args.type or "item"
    -- type is passed via #invoke so must be read from frame.args, not parent args
     local iconType = frame.args.type or "item"


     -- Set Defaults
     -- Set Defaults