This Forum has been archived

Forums: Admin Central Index Technical Help Highlight css: Wikia.css or Common.css?
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 2639 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Hi. I've had this issue for awhile now. I can't see why it's happening. My home wiki has it's highlights in Wikia.css, awhile back I was told by someone that it should go in Common.css. I thought fair enough. But it didn't have any affect. So I moved it to Wikia.css (because I knew it worked there after building it in my personal wikia.css file). Can someone please tell me why this isn't working? I know it's an import, but Admin Tools Wiki has it working, why can't I get it to work? :/ Starfleet Academy 08:35, April 4, 2012 (UTC)

By default Common.css isn't imported into the Wikia skin, - it only is imported into monobook (it used to be the case that common was imported into both - but the rationale is that there are a lot of different things in the Wikia skin, so a common css page isn't needed) unless you have an import statement in MediaWiki:Wikia.css - you won't see anything you put in common.css in the Wikia skin. To restore this funtionality, place this code at the top of your Wikia.css:
@import url("");
Hope that helps -- RandomTime 08:48, April 4, 2012 (UTC)
I'm curious, but why didn't you just copy/paste the relevant code in your wikia.css to your common.css? They don't match.... Cam 08:53, April 4, 2012 (UTC)
Hi guys. Thanks RT! I didn't look at what was being imported! I was on about them using a sub-page when I typed that before. I might not use the dev wiki's highlight though, but thanks again!
@Edmyg: I've just added Grunny to the end of the highlight today (he edited there awhile back). This was what reminded me to ask about the Common.css issue! Anyway what would be the point of copying and pasting to a page that didn't work? I will be copying and pasting now. :) Starfleet Academy 09:08, April 4, 2012 (UTC)
Sorry, that was a copied import statement that I meant to change to fit common.css, but didn't check back through - my fault -- RandomTime 09:19, April 4, 2012 (UTC)
Oh and another thing: Only "ugly" urls work I think, well worked for me any way! ;) Starfleet Academy 09:30, April 4, 2012 (UTC)
Er. What are you talking about?
That's a "pretty" URL, isn't it? --  pecoes  10:40, April 04, 2012 (UTC) 

(Reset indent) Yes that is a pretty url. But this doesn't seem to work in the imports. See: an import at dev and more at Admin Tools as examples. ;) Starfleet Academy 00:24, April 5, 2012 (UTC)

I'm a wikianoob and as such I get things wrong from time to time, but URL rewriting normally happens at the server level. Leaving it to the wikitext parser would be pretty unheard-of. And if it is done by the server - as it should be - then it makes no difference when and where you use the pretty URLs. Ugly URLs are a few milliseconds faster though, which may be why not everybody uses them everywhere. --  pecoes  04:20, April 05, 2012 (UTC) 
Look your probably right okay. But I found that the import didn't work when I had the pretty url, and did when I changed it to the ugly version. I can't explain it though. :) Starfleet Academy 05:49, April 5, 2012 (UTC)
I agree Pecoes! I've just imported some css for a jQuery footer I made and your right, the pretty urls work fine! (The footer is nothing special but it's my first js coding!) :D Starfleet Academy 08:42, April 6, 2012 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.