Manual:$wgStylePath

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
العربية • ‎català • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎中文
Skins: $wgStylePath
The URL of the skins directory.
Introduced in version: 1.3.0
Removed in version: still in use
Allowed values: absolute path
Default value: "{$wgScriptPathManual:$wgScriptPath}/skins" (since 1.4.0)
"{$wgScriptPath}/style" (prior to 1.4.0)
(Note: The default value of this variable depends on other variables, such as the values set in Setup.phpManual:Setup.php, after LocalSettings.phpManual:LocalSettings.php is executed)
Other settings: Alphabetical | By function

Details[edit]

The URL of the skins directory. This is where MediaWiki tells the browser to get the styles from. This settings generally become useless for Mediawiki ≥ 1.17, where skins were loaded though ResourceLoader module.

Note Note: For wiki families with multiple languages, it may be a good idea to set this URL, in all your wiki languages, to just one directory or server. That way the browser will only have to load the CSS once for every wiki.

Note Note: If you change where on your filesystem the skins directory is, you may also have to change $wgStyleDirectoryManual:$wgStyleDirectory. $wgStylePath only controls where the browser gets the styles from, not where MediaWiki looks for the style files.

See also[edit]