Adding An Image to a Tab Breaks the Tab

Jump to: navigation, search

I'm trying to figure out how an image is added into the tab along side the header. Such as the following example: http://pinataisland.info/viva/Dragonache

209.252.79.19520:50, 6 October 2010

It seems like it works for you now.

Sergey Chernyshev02:14, 10 October 2010
Edited by another user.
Last edit: 21:47, 11 October 2010

Sorry, I seem to have explained myself poorly. The example URL was someone who successfully was able to embed an image into the tabs. I'm trying to replicate the same effect on my own wiki. I'm just not sure how it was done.

209.252.79.19517:45, 11 October 2010

Anyone have any ideas how I could successfully embed an image in each tab? I've looked all over and haven't a clue where to begin. Again, I saw it done here:

http://pinataisland.info/viva/Dragonache

And haven't been able to duplicate this.

209.252.79.19515:03, 19 October 2010

It appears that Dragonache has modified their codebase to support this.

However, adding an image to a tab is completely do-able if you are running MW 1.14 or newer.

The problem stems from the fact that when you do an [[Image:<filename>]], MediaWiki wraps the resulting image tag with an anchor href tag. This anchor href tag competes with the header tab (which uses an anchor name tag).

To get around this, you need to tell MediaWiki not to wrap the image tag with an anchor tag; this is achieved by changing the image tag to [[Image:<filename>|link=]] tag. See http://www.mediawiki.org/wiki/Help:Images#Link_to_another_page

Just leave the link blank.

129.83.31.214:00, 7 December 2010

I'm glad a fix is here, but really this is a poor solution as it involves user retraining either on a case by case basis (every image link types) or user retraining to get them to all use a different template.

Could header tabs be made to be compatible with anchors? I'd still like to be able to use my header and image anchors.

Olivier Beaton18:16, 3 November 2011
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox