Forum:Importing css from wikipedia

what would I add to my sitewide css page to import this page from wikipedia?
 * http://en.wikipedia.org/wiki/MediaWiki:Common.css

Granpa (talk) 20:54, September 21, 2012 (UTC)


 * First, you have change the URL to going through index.php instead:


 * http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css


 * Note that that's the exact same page, just the URL looks different. The reason you need to make the URL go through index.php is so that you can add URL parameters onto the end. See this page on mediawiki.org for a list of index.php URL parameters. The URL params you need to add are: action=raw (says that you want the raw file) and ctype=text/css (says that you're expecting a CSS file). After adding those URL parameters, the URL looks like this:


 * http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css


 * Finally, you need to create a CSS @import statement to load that URL. This is the final product for what you'd put in a CSS file here on Wikia:


 * Note: Please be aware that stylesheets from Wikipedia may or may not be designed to work here on Wikia, because they are two different websites with two different skins. So just keep in mind that you might run into problems when porting things from Wikipedia to Wikia. Personally, I would never import a stylesheet from Wikipedia. But I'm guessing you must have some important reason for wanting to do so.


 * the reason is this, I imported http://religion.wikia.com/wiki/Template:Pharaohs from wikipedia.
 * Its a simple navbox but strangely it has its list as a bulleted list yet it displays inline.
 * I figured it must be css so I imported http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css and sure enough it contains a section titled
 * /* Default style for navigation boxes */.
 * But the trouble is that it seems to have no effect on our wiki.
 * I cant figure out whats wrong.
 * Granpa (talk) 21:38, September 21, 2012 (UTC)
 * I can fix that navbox by hand but then I would have to do so for every navbox I import.
 * I would rather have a fix that works for all of them
 * Granpa (talk) 21:40, September 21, 2012 (UTC)

WHOA. All of a sudden its working Granpa (talk) 21:48, September 21, 2012 (UTC)