Module:Icon: Difference between revisionsGive feedback
mNo edit summary |
m replaced to not break previous usage |
||
| Line 44: | Line 44: | ||
local name = args[1] or "" | local name = args[1] or "" | ||
local customText = args.l1 or "" | local customText = args.l1 or "" | ||
local | local size = args.size or "20px" | ||
local noLink = args["no-link"] == "true" | local noLink = args["no-link"] == "true" | ||
local iconOnly = args["icon-only"] == "true" | local iconOnly = args["icon-only"] == "true" | ||
| Line 74: | Line 74: | ||
local finalText = (customText ~= "") and customText or displayName | local finalText = (customText ~= "") and customText or displayName | ||
local iconHtml = string.format('<span %s>[[File:%s|%s|link=]]</span>', style, iconData.image, | local iconHtml = string.format('<span %s>[[File:%s|%s|link=]]</span>', style, iconData.image, size) | ||
if iconOnly or displayName == "" then | if iconOnly or displayName == "" then | ||