Community Central
Community Central
Forums: Index Community Central Forum Different background for namespaces
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 4661 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


The Community Central background is plain light blue, however, the Founder and Admin Central namespace background is blue and green. I was wondering how this is achieved, as for some time on Avatar Wiki, I have been looking for a way to change the background for our fanon namespace, but to have the mainspace background remain the same. Thanks for your help, Rassilon of Old (Talk - Teru) 00:37, July 12, 2011 (UTC)

Add the following code to your "MediaWiki:Wikia.css":
.ns-1 #WikiaMainContent{
  background-color: #ABCDEF;
}
Replace "ns-1" with the namespace of your choice. --Weas-El  01:25, July 12, 2011 (UTC)
Your namespace "Fanon" has the ID "ns-112". --Weas-El  01:29, July 12, 2011 (UTC)
Thanks. Another questions, how do you set, or view the IDs of a namespace? Rassilon of Old (Talk - Teru) 01:30, July 12, 2011 (UTC)
Just go to a page like "Special:AllPages", set the filter to a specific namespace and take a look at the URL. You'll see something like "&namespace=112" at the end of the URL. --Weas-El  01:32, July 12, 2011 (UTC)
Oh great. Cheers! Rassilon of Old (Talk - Teru) 01:36, July 12, 2011 (UTC)
I actually got the code from an old version of Avatar Wiki's css :P I guess it got lost there somewhere along the way -- sannse WikiaStaff.png (help forum | blog) 15:59, July 12, 2011 (UTC)

Can this be done for background images too? leviathan_89 22:31, 12 July, 2011 (UTC)

In addition to #WikiaMainContent, what is the “tag” to make the background colour extend into the right sidebar area, rather than only apply to the article area? For instance, I like how the background colour covers the width of the page when viewing the revision history. It would be nice if it did the same on a talkpage or article. Thanks! — SpikeToronto 07:05, July 13, 2011 (UTC)
P.S. Is there a list somewhere of all these parameters? Between the ones in Monobook CSS/JS and Wikia (i.e., Oasis) CSS/JS, there must be hundreds. It’d be great if there were a table somewhere that listed each of them and what they apply to. Would there perhaps be one at the Wikia Developers Wiki or at MediaWiki? Sometimes I think that three-quarters of the battle is just knowing these. Thanks! — SpikeToronto 14:10, July 13, 2011 (UTC)
The CSS selector for the whole page you're looking for (if I understood you properly) would be #WikiaPage. Since the style sheets get changed from time to time I don't really see the point in maintaining a table listing all the used style properties. Why don't you use Inspect Element (Chrome) or Firebug (Firefox) to find out what each selector does? Sovq 14:27, July 13, 2011 (UTC)
Sovq: Eureka! It worked!! That was just the element I was looking for. On your other point, does Internet Explorer 8 have an equivalent to Inspect Element/Firebug? Thanks! — SpikeToronto 14:55, July 13, 2011 (UTC)
I believe Firebug Lite has support for a verity of browsers. But honestly, while IE is... acceptable as a simple browsing tool, it's definitely lacking in the advanced-tools/add-ons department. I recommend switching to something more functional. Sovq 15:27, July 13, 2011 (UTC)
Please do not attempt to use IE for anything like web development. Your users will hate you. IE should only be used to see how bad things can look. -- Fandyllic (talk · contr) 13 Jul 2011 9:01 PM Pacific
9 out of 10 developers agree.
 Nidek   (Talk) [[Special:Contributions/Nidek| Special:Editcount/Nidek edits made ]] 16:00, July 14, 2011 (UTC)
You people are so mean! If Bill Gates could hear you now … SmileySpikeToronto 06:27, July 16, 2011 (UTC)
The background-color is, well, an actual background per Community's Wikia.css under namespace specific logos and background at the bottom-most area of the page.
BermudaContact Me! 08:14, July 13, 2011 (UTC)