https://bugzilla.wikimedia.org/show_bug.cgi?id=29920
Web browser: ---
Bug #: 29920
Summary: CLASS attribute missing in [[File:...|link=...]]
Product: MediaWiki
Version: 1.17.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l