Module:Icon: Difference between revisions

Content deleted Content added
implement Template:Icon link, use Module:Arguments for parsing, cleanup sandbox handling
add default empty alt text for icons. There is probably an elegant way to provide real alt text if it is desirable to do so.
Line 24:
end
return string.format(
'[[File:%s%s%s|%s|class=noviewer|alt=]]',
iconData.image,
iconData.tooltip and '|' .. iconData.tooltip or '',