User talk:QuestionUser

From Meta, a Wikimedia project coordination wiki

MediaWiki:Common.css[edit]

You need to modify includes\SkinTemplate.php to get MediaWiki to use MediaWiki:Common.css. You can see the necessary changes in the CVS at SourceForge, but here's what you should look for–

		# If we use the site's dynamic CSS, throw that in, too
		if ( $wgUseSiteCss ) {
			$sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', 'action=raw&ctype=text/css&smaxage=' . $wgSquidMaxage, NS_MEDIAWIKI) . '";' . "\n";
			$sitecss .= '@import "' . $this->makeUrl('-','action=raw&gen=css' . $siteargs) . '";' . "\n";
		}

and change that to–

		# If we use the site's dynamic CSS, throw that in, too
		if ( $wgUseSiteCss ) {
			$query = "action=raw&ctype=text/css&smaxage=$wgSquidMaxage";		
			$sitecss .= '@import "' . $this->makeNSUrl('Common.css', $query, NS_MEDIAWIKI) . '";' . "\n";
			$sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', $query, NS_MEDIAWIKI) . '";' . "\n";			
			$sitecss .= '@import "' . $this->makeUrl('-','action=raw&gen=css' . $siteargs) . '";' . "\n";
		}

Hope that helps. —Locke Coletc 02:37, 4 January 2006 (UTC)[reply]