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.
To contact staff directly or to report bugs, please use Special:Contact.
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; }
- 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)
- 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)
- 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 (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)
- The CSS selector for the whole page you're looking for (if I understood you properly) would be
- 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)
- 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.
• Bermuda • Contact Me! • 08:14, July 13, 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.