Modul:Hatnote: Unterschied zwischen den Versionen
add role="note" for screen readers per protected edit request by User:Matt Fitzpatrick
(fix a mistake in the module comments; allow overriding the title in makeWikitextError; allow people to call _hatnote without an options table; and remove a comment about usage, as it is now covered in the test cases) |
(add role="note" for screen readers per protected edit request by User:Matt Fitzpatrick) |
||
Zeile 201: | Zeile 201: | ||
end | end | ||
return string.format( | return string.format( | ||
'<div class="%s">%s</div>', | '<div role="note" class="%s">%s</div>', | ||
table.concat(classes, ' '), | table.concat(classes, ' '), | ||
s | s |