Last modified: 2013-05-24 00:36:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3254, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1254 - InterWiki-Icons: show an optional small icon (favicon) on interwiki links
InterWiki-Icons: show an optional small icon (favicon) on interwiki links
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.22.0
All All
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: T. Gries
http://meta.wikimedia.org/wiki/InterW...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-03 00:34 UTC by T. Gries
Modified: 2013-05-24 00:36 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2005-01-03 00:34:14 UTC
I propose to show optionally a small icon (such as the Wikipedia "W" letter for
Interlanguage-links to other wikipedias, or the Google "G" in a box for
Interwiki-links to google etc.) just before the target string of an interwiki
link, which has the form [[interwikiprefix:target]]

In this case of an interwiki where a small icon (in general, the favicon of the
site corresponding to interwikiprefix) is present on the wiki server, and the
sysop and the user option enables this new feature, then - instead of the linked
text string "interwikiprefix:target" only "(icon)target" is shown.

This visualises interwiki icons on a page by showing the well known icon(s) for
such sites. Copyrights  of the small icons must be cleared of course. Other more
general icons, such as simple small red arrows "→" could be used
alternatively for a graphical representation and indication of interwiki links.

I prepared a description with images and screenshot of a mock-up on
http://meta.wikimedia.org/wiki/InterWikiIcons .

As not everyone will like that, I have provisionally proposed a user option to
opt-out the graphical icons for interwiki. Then the user will have the same UI
as it is now.

I hope, you'll like it.
Comment 1 Zigger 2005-01-03 01:45:23 UTC
For v1.3 and v1.4, link icons can already be set (for monobook & recent browsers
such as Firefox) by users' monobook.css customisations, based on
skins/monobook/main.css.  e.g.

#bodyContent a[href ^="http://meta.wikipedia.org"] {
    background: url("http://meta.wikipedia.org/favicon.ico") center right no-repeat;
    padding-right: 16px;
}
Comment 2 T. Gries 2005-01-03 06:57:27 UTC
(In reply to comment #1)
> For v1.3 and v1.4, link icons can already be set (for monobook & recent browsers
> such as Firefox) by users' monobook.css customisations, based on
> skins/monobook/main.css.  e.g.
> 
> #bodyContent a[href ^="http://meta.wikipedia.org"] {
>     background: url("http://meta.wikipedia.org/favicon.ico") center right
no-repeat;
>     padding-right: 16px;
> }
> 

Dear Zigger,

I have tried a first test in version 1.3.7 but without success:

- Netscape 7.1 (usually, this works with css) and 
- [[we:test]]  wherein "we:" as interwikiprefix for
"http://www.wikipedia.org/wiki/$1"
- User:Myself/monobook.css:
#bodyContent a[href ^="http://www.wikipedia.org"] {
    background: url("http://www.wikipedia.org/favicon.ico") center right no-repeat;
    padding-right: 16px;
}


So, perhaps your comment is one solution, but as indicated, only for special
cases. However, I will consider further tests - thanks you. It would be great,
if you let me know of any problem, you might detect in my ad-hoc test above.
Comment 3 T. Gries 2005-01-09 16:48:27 UTC
(In reply to comment #1) 
> For v1.3 and v1.4, link icons can already be set (for monobook & recent browsers 
> such as Firefox) by users' monobook.css customisations, based on 
> skins/monobook/main.css.  e.g. 
>  
> #bodyContent a[href ^="http://meta.wikipedia.org"] { 
>     background: url("http://meta.wikipedia.org/favicon.ico") center right no-repeat; 
>     padding-right: 16px; 
> } 
>  
Two questions to Zigger: 
 
1. In stylesheets/monobook.css it works (thanks for the idea), but why doesn't it work when I put the code into a page User:NN/
monobook.css ? 
 
2. If I want to have the icon before the link, I got also a trailing white space (why?). I use the following modified code: 
 
#bodyContent a[href ^="http://meta.wikipedia.org"] { 
     background: url("http://meta.wikipedia.org/favicon.ico") center left no-repeat; 
     padding-left: 16px; 
 } 
 
Comment 4 Zigger 2005-01-10 22:50:59 UTC
It may be a cascade issue -- see the CSS specs:
 http://www.w3.org/TR/CSS1#the-cascade
 http://www.w3.org/TR/CSS21/cascade.html#cascade
But I have no idea how well all the main browsers implement this.
Comment 5 Mark Clements (HappyDog) 2008-04-23 00:45:22 UTC
The CSS solution given in comment 1 is sufficient for wikis that wish to add this functionality locally.  

This will not be implemented in core.  I say that as if I have some kind of authority - I don't, but nonetheless this will not be implemented in core.  Trust me.
Comment 6 T. Gries 2008-04-23 05:03:24 UTC
ok, I agree.
Comment 7 Daniel Friesen 2008-04-23 05:49:31 UTC
There is an extension which can create links which display actual favicons.
http://www.mediawiki.org/wiki/Extension:FaviconLink

Potentially we could fix up that extension to support the actual functionality that this bug report is asking for.
If anyone still wants the functionality, feel free to poke me, and I could probably create an extension or two for adding favicons before external links, interwiki links, etc...
Comment 8 Dan Jacobson 2013-05-24 00:35:42 UTC
At the bottom of http://zh.wikipedia.org/wiki/%E8%88%B9%E8%A5%AA
the user sees a blue link, "We Love Colors".

A blue link. What could possibly go wrong?

It's not external either (no external icon). Let's click it!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links