Hi. When we have a weblink in wikicode, for example
[www.abc.def/ghj.pdf]
the mime type is recognized well, and we see the accordand icon, pdf in this case. But wikilinks fail to do this, as in
[[abc:def.pdf]]
I made yesterday a very big work for converting weblinks to wikilinks, and I needed to add dozens of {{PDF}} templates, in two cases:
[upload.wikimedia.org/wikipedia/commons/.../filename.pdf] -> [[media:filename.pdf]]{PDF}}
and
[commons.wikimedia.org/wiki/File:filename.pdf] -> [[c:File:filename.pdf]]{{PDF}}
Could you fix this problem, please? Thank you.
Description
Description
Event Timeline
Comment Actions
So to clarify, you want wikilinks to the file namespace to include the external link icons that are associated with that file extension?
Comment Actions
(Mediawiki is not only for Wikipedia but) In Wikipedia usually internal links are within the article body, while external links are in External Links section. With this in mind, having icons within body paragraphs may be noisey and not friendly for readers. So we should probably ask for comments from readersor UI/design experts or WP:VP.
Technically, MW stylesheet intentionally enable it only for external links, but this could be easily done in css so specific users can enable it on their own userpage. More or less like this one:
a[href$=".pdf"] { /* @embed */ background: url("PDFICON") no-repeat left; padding-left: 18px; }