Modul:Icon: Unterschied zwischen den Versionen
per Jonesey, add ability to set alt from stored icon
(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.) |
(per Jonesey, add ability to set alt from stored icon) |
||
Zeile 24: | Zeile 24: | ||
end | end | ||
return string.format( | return string.format( | ||
'[[File:%s%s%s|%s|class=noviewer|alt=]]', | '[[File:%s%s%s|%s|class=noviewer|alt=%s]]', | ||
iconData.image, | iconData.image, | ||
iconData.tooltip and '|' .. iconData.tooltip or '', | iconData.tooltip and '|' .. iconData.tooltip or '', | ||
iconData.link == false and '|link=' or '', | iconData.link == false and '|link=' or '', | ||
args.size or '16x16px' | args.size or '16x16px', | ||
iconData.alt or '' | |||
) | ) | ||
end | end |