Last modified: 2013-09-19 04:07:17 UTC
When using the '|link=' option within [[File:]] the 'image' class is not applied to the <a> attribute. This makes it difficult to style the output with CSS. Please can a class be added to the <a> attribute for images in all cases. If class 'image' is deemed inappropriate, then perhaps 'imageLink' could be used? Example with class: WIKITEXT: [[File:filename.jpg]] HTML: <a href="/wikipath/index.php/File:filename.jpg" class="image"> <img alt="filename.jpg" src="/wikipath/images/da/da/filename.jpg" ...etc /> </a> Example without class: WIKITEXT: [[File:filename.jpg|link=http://wikimedia.org]] HTML: <a href="http://wikimedia.org"> <img alt="filename.jpg" src="/wikipath/images/da/da/filename.jpg" ...etc /> </a> Footnote: Bug 23226 would be useful to have also, but in addition to the default class that should be there per above.
Yes, it would be useful if 'image' class were assigned to any anchor with the image inside.