'''Short description''' This feature request is mainly done for AccessibleMoin since it is an often mentioned criteria that * images should have alt tags not just titles and * that filedownloads should show at a glance how big the file offered on a wikipage for download is. This means in detail: [[attachment:MacroMarket/Image.py|Test.py]] should better show up as [[attachment:MacroMarket/Image.py|Test.py]] (4.3KB) This seems to be a rediculous detail, however this is one accessibility criteria (especially for people using screenreaders). It's not enough to have file size information only in the filelist of !AttachFile. So I did some changes to !MoinMoin.formatter.text_html (moin-1-6-main-7c58e8af1a97): * implemented showing of filesize in attachment_link * fixed missing i18n support for tooltip in attachment_link and attachment_image. This is also needed for proper localisation * added alt text for inlined image {{attachment:text_html.diff}} Further I want to suggest to change parser standard behaviour for AccessibleMoin: {{{attachment:}}} should not longer be confused with {{{inline:}}}. With attachment you do reference attachments of a page. You use inline to inline an attachment in a page. It's semantically wrong to inline a picture if you write {{{attachment:pic.png}}}!! That's like Internet Explorer always confusing title with alt. Therefore in AccessibleMoin with * {{{attachment:pic.png}}} get a link to the attached image showing the filesize like for other attachments. There's no need to do workarounds like {{{ [attachment:pic.png pic.png] }}} to get only a link to an image displayed. * With {{{inline:pic.png}}} you can inline the image in the page. * However inlining an image shouldn't be used since there is no way to provide a sensible alt text for the image. For proper image display you should use !ImageLink or Image macro and think of a good alt title and a sensible image size. * For backwards compatibility in exisiting wikis you can set in wikiconfig.py a var {{{accessible_moin = False}}}. Then you get normal old parser behaviour. For new wikis I would like to suggest to adopt the new behaviour. Here's the patch for !MoinMoin.parser.text_moin_wiki (moin-1-6-main-7c58e8af1a97): {{attachment:text_moin_wiki.diff}} -- OliverSiemoneit <> ## Tell your story here. ## What is the problem you are trying to solve? ## Is this features useful to most users or just to specific users? ---- CategoryFeaturePatched