Zum Inhalt springen

Modul:Icon: Unterschied zwischen den Versionen

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.
(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.)
Zeile 24: Zeile 24:
end
end
return string.format(
return string.format(
'[[File:%s%s%s|%s|class=noviewer]]',
'[[File:%s%s%s|%s|class=noviewer|alt=]]',
iconData.image,
iconData.image,
iconData.tooltip and '|' .. iconData.tooltip or '',
iconData.tooltip and '|' .. iconData.tooltip or '',
Anonymer Benutzer