User talk:QuestionUser
Add topicAppearance
From Meta, a Wikimedia project coordination wiki
Latest comment: 18 years ago by Locke Cole in topic MediaWiki:Common.css
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 Cole • t • c 02:37, 4 January 2006 (UTC) Reply