Forum:MediaWiki and colons

I've been trying to add backgrounds to certain pages of my wiki, and I have gotten help with it and tried to learn from it. My next attempt was to add background to pages that have an additional text after a colon. Only the MediaWiki takes the colon as a code and turns it green, so it doesn't reach the additional text. -- Bunai82 (talk) 15:28, October 25, 2011 (UTC)
 * gaia mediawiki


 * That's because you can't have a colon in a class name or id. Instead, MediaWiki will encode it as an underscore. Keep in mind that the space is also an underscore, so the page  would be encoded as , not.


 * So adding two underscores will allow me to link the background? -- Bunai82 (talk) 01:31, October 26, 2011 (UTC)

Nope, didn't seem to work ;_; -- Bunai82 (talk) 15:43, October 31, 2011 (UTC)


 * Try this:

 body.page-Halloween_2k3_The_First_Halloween, body.page-Halloween_2k4_Zombie_Outbreak, body.page-Halloween_2k5_Grunny_Invasion, body.page-Halloween_2k6_The_Zurg, body.page-Halloween_2k7_Humans_vs_Vampires, body.page-Halloween_2k8_Halloween_Hysteria, body.page-Halloween_2k9_Demonbusters, body.page-Halloween_2k10_Grave_Danger, body.page-Halloween_2k11_The_Masquerade {background: url('http://images.wikia.com/gaia/images/8/8b/Overall_bg_halloween.png') !important; }
 * The easiest way to look up the class name for a specific page is going to the page in question, using your browser's "view source", searching for  and then simply copying the class which starts with  . -- Porter21 (talk) 03:05, November 1, 2011 (UTC)


 * Okay. I'll try that.
 * Well, it worked on the recent page (2k11), but the others are still black link. -- Bunai82 (talk) 08:05, November 3, 2011 (UTC)


 * Alright, update, it works
 * But the links still don't turn purple... I guess I leave it like that... -- Bunai82 (talk) 21:51, November 5, 2011 (UTC)