Author: support
Description:
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 T25226 would be useful to have also, but in addition to the default class that should be there per above.
Version: 1.17.x
Severity: enhancement