Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
add role="note" for screen readers per protected edit request by User:Matt Fitzpatrick
>Mr. Stradivarius (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) |
>Mr. Stradivarius (add role="note" for screen readers per protected edit request by User:Matt Fitzpatrick) |
||
Line 201: | Line 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 |