Fandom

Community Central

Comments0

Coding Tips Edition 1: Oasis Workarounds and WikiBreak Forcing

Catuse167 February 24, 2012 User blog:Catuse167

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Hi there! I've decided to occasionally post coding tips & tricks for Wikia users. Why? I dunno. But somebody can put them to good use, even if I can't. So here goes nothing.

Oasis WorkaroundsEdit

One of the most hated things about Oasis is the 660px width. It kills tables, among other problems that keep it from working correctly. Luckily, there are two workarounds to avoid this, plus another that is probably a Terms of Service violation, unfortunately:

The first is to simply add style="width:980px;" to tables, divs, and the like, that are cut off by Oasis. You can see the effect at http://finalfantasy.wikia.com/wiki/List_of_Final_Fantasy_XIII_Weapons#List_of_Weapons FFWiki's tables].

Another workaround is to include a link to http://<yourwikiurl>.wikia.com/index.php?title=User_blog:Catuse167/Coding_Tips_Edition_1:_Oasis_Workarounds_and_WikiBreak_Forcing&useskin=monobook at the top of a page, perhaps in a template.

Lastly, include the following code in a wikia.css file. This is almost certainly a terms of service violation, but not being a lawyer, I'm too lazy to check. I still don't use it anyways, although I imagine sticking it into your own CSS files isn't illegal. Adding it to MediaWiki:Wikia.css probably is though.

.wikiaRail {display:none;}
.wikiaMainContent {width:990px;}

WikiBreak enforcingEdit

If you every find yourself addicted to Wikia, or you just need to take a break and want to make it clear to RC patrollers you aren't coming back for a while, add this CSS code to your wikia.css or monobook.css, whichever skin you are using (NOTE: DO NOT ADD TO BOTH! SRSLY! ONLY YOU AND ADMINS CAN EDIT THESE FILES!)

body {display:none;}

Then go to http://<yourwikiurl>.wikia.com/index.php?title=Special:MyPage/wikia.css<or monobook.css, whichever you AREN'T using>&action=edit, and crop out that line when you're done. Simple as pie!

Cat 00:53, February 24, 2012 (UTC)

Also on Fandom

Random Wiki