Forum:Link color

How do you make it so that when a template is added to a page, all links to that page are a different color? Gamma Metroid 00:54, 28 April 2009 (UTC)


 * If i understand this correctly, you are hoping that the CSS file will know on wich page you added a perticular template ? That can't be.
 * Or, if you want links in the template to be differents, maybe because the background is dark or something, that could be done adding class="something" to the top most element in the template and putting the CSS rule in mediawiki:common.css — TulipVorlax 16:09, 28 April 2009 (UTC)


 * Javascript? Or, there are also extensions such as this one that does that. -- ko イsuru ( talk ) 16:29, 28 April 2009 (UTC)


 * No, I was thinking more like if you put template A on a page, links to that page would be displayed in a different color. So, is it possible?  If so, how do you do it? Gamma Metroid 19:28, 28 April 2009 (UTC)
 * Do you mean making the links in that template a different colour? Then add article , where you can specify the color. E.g.  Wikia ,  Wikia ,  Wikia , etc.--Richardtalk 23:03, 28 April 2009 (UTC)


 * No. I want it so that if template A is on page A, and page B is linking to page A, the link on page B will appear in a different color. Gamma Metroid 02:18, 29 April 2009 (UTC)


 * You can't, the way you want it for that to happen, MediaWiki software needs a way to keep track and there is not such thing --


 * It's possible, but it's very very complicated. -- ko イsuru ( talk ) 06:39, 29 April 2009 (UTC)