Manual:$wgStylePath/zh

Category:MediaWiki configuration settings/zh#StylePathCategory:MediaWiki configuration settings introduced in version 1.3.0/zh#StylePathCategory:MediaWiki configuration settings still in use/zh#StylePathCategory:Path variables/zh#StylePath
服务器URL及路徑: $wgStylePath
皮肤目录的URL。
引进版本:1.3.0
移除版本:仍在使用
允许的值:(绝对路径)
"{$wgScriptPath }/skins" (1.4+)

"{$wgScriptPath}/style" (1.3)

(注: 此变量的默认值取决于其他变量,例如执行LocalSettings.php 后在Setup.php 中设置的值)

详情

皮肤目录的URL。 This is where MediaWiki tells the browser to get the styles from. This settings became less important or - depending on setup and the skin used - it even became useless for MediaWiki 1.17+, where styles are generally loaded through ResourceLoader modules.

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.
If you change where on your filesystem the skins directory is, you may also have to change $wgStyleDirectory . $wgStylePath only controls where the browser gets the styles from, not where MediaWiki looks for the style files.

參見

Category:Path variables/zh
Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.3.0/zh Category:MediaWiki configuration settings still in use/zh Category:Path variables/zh