手册:$wgExtensionDirectory
Appearance
| 服务器URL及文件路徑: $wgExtensionDirectory | |
|---|---|
| 至扩展目录的文件系统路径。 |
|
| 引进版本: | 1.25.0(Gerrit change 209216; git #cf2678e2) |
| 移除版本: | 仍在使用 |
| 允许的值: | (相对路径) |
| 默认值: | null (1.38+)"{$IP}/extensions" (1.25-1.37) |
| 其他设置: 按首字母排序 | 按功能排序 | |
详情
至扩展目录的文件系统路径(相对路径)。 这控制着MediaWiki在服务器本身寻找扩展的方法。
This is set to
"{$IP}/extensions" by Setup.php before loading local settings.Ignored when the exact path to a particular template's
.json configuration file is given to the wfLoadTemplate() function.
- Example:
wfLoadTemplate( 'TemplateName', '/path/to/TemplateName/template.json' );
参阅
- $IP
$wgExtensionAssetsPath– 用于扩展的URL$wgStyleDirectory– 用于皮肤的文件系统路径$wgStylePath– the URL for skins.- Manual:Extensions - extensions let you customize how MediaWiki looks and works.
- Manual:Extension registration - instructions for both building and loading skins and extensions.