Configuration settings

来自DeerGrove Wiki
Administrator讨论 | 贡献2018年5月3日 (四) 13:48的版本 (创建页面,内容为“{{languages}} {{TOCright}} 这是所有支持的'''配置设置'''索引,基于<code>'''[https://github.com/wikimedia/mediawiki-core/blob/master/includes/DefaultS…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

模板:Languages 模板:TOCright

这是所有支持的配置设置索引,基于DefaultSettings.php文件。

请不要编辑DefaultSettings.php文件;而应该把您需要的参数复制到LocalSettings.php中并替换掉原有的参数。

如果您在此找不到配置设置的话,请检查其是否在DefaultSettings.php中定义。变量应在此文档中记载。

模板:TNT

按字母排序列表 | 按功能排序列表 | 分类:MediaWiki配置设置

模板:Anchor

一般设置

模板:Anchor

路径

See also Uploads for file/image upload path settings.

参见皮肤一节获取皮肤路径设置。

模板:Anchor

全局对象

模板:Anchor

电子邮件设置

参见用户访问:$wgEmailConfirmToEdit

模板:Anchor

电子邮件通知(Enotif)设置

Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions.

模板:Anchor

数据库设置

模板:Anchor

负载均衡设置

模板:Anchor

MSSQL相关

模板:Anchor

MySQL相关

模板:Anchor

Oracle相关

模板:Anchor

PostgreSQL相关

  • $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in.

模板:Anchor

SQLite相关

模板:Anchor

共享数据库设置

模板:Anchor

压缩存储支持

  • $wgCompressRevisions - If this is set on, all future revisions will be compressed on page save, but only if zlib support is available and enabled in PHP.
  • $wgDisableOutputCompression - Disable output compression (compression is enabled by default if zlib is available).

模板:Anchor

本地化

模板:Anchor

时区设置

模板:Anchor

语言特定

英语
  • $wgAmericanDates - Enable for English module to print dates as eg 'May 12' instead of '12 May'.
阿拉伯语/印地语
  • $wgTranslateNumerals - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.

模板:Anchor

调试/日志记录

参见:手册:如何调试

模板:Anchor

性能分析

模板:Anchor


网站个性化

模板:Anchor

Ajax

模板:Anchor

前端

模板:Anchor

资源加载器

See ResourceLoader for more information.

模板:Anchor

名字空间

模板:Anchor

输出

The following settings are only used if $wgHtml5 is set to "false" 模板:TNT:

模板:Anchor

机器人方针

模板:Anchor

移动支持

模板:Anchor

网站统计

模板:Anchor

皮肤

模板:Anchor

分类

模板:Anchor

缓存

模板:TNT

参见:跨wiki一栏获取跨wiki缓存设置。

模板:Anchor

客户端缓存

模板:Anchor

文件缓存

Settings for Server side file caching.

  • $wgFileCacheDepth - Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
  • $wgFileCacheDirectory - Directory where the cached page will be saved when using server-side caching.
  • $wgUseFileCache - This will cache static pages for non-logged-in users to reduce database traffic on public sites.

模板:Anchor

消息缓存

模板:Anchor

边栏缓存

模板:Anchor

解析器缓存

模板:Anchor

高速缓存设置

Settings for configuring the Memcached memory-based object store (if you are using it) 模板:Git file has more details.

模板:Anchor


跨wiki

模板:Anchor

跨wiki缓存

参见跨wiki缓存获取更多信息。

模板:Anchor

访问

Wiki locking, blocking/banning, and some other related settings.

See Manual:Preventing access for more methods and settings concerning access. See also Manual:User rights</> for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

模板:Anchor

速率控制

模板:Anchor

API


模板:Anchor

Wiki锁定

  • $wgReadOnly - 禁止编辑并显示给定的理由。
  • $wgReadOnlyFile - 同样是是禁止编辑,但如果有给定的文件,数据库锁定的理由则采用文件中的内容。

模板:Anchor


减少

模板:Anchor

上传

Uploads have to be specially set up to be secure.

模板:Anchor

共享上传

These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting, or 模板:Ll if you only need read access to images on Commons.

模板:Anchor

MIME类型

模板:Warning This is not a configuration setting, but a global state variable. It should be used solely by thumb.php!
  • $wgVerifyMimeType - Determines if the mime type of uploaded files should be checked
  • $wgMimeTypeBlacklist - Files with these mime types will never be allowed as uploads if $wgVerifyMimeType is enabled.
  • $wgXMLMimeTypes - An array of XML mime types we can detect via MimeMagic.

See also: Manual:Mime type detection

模板:Anchor

图片

See also: Manual:Configuring file uploads

模板:Anchor

DjVu

模板:Anchor

EXIF

  • $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data.
  • $wgUpdateCompatibleMetadata - Whether to automatically update the img_metadata field if the metadata field is outdated but compatible with the current version.

模板:Anchor

ImageMagick

将 $wgUseImageMagick 设置为true 可使用 ImageMagick 而不是内置函数。

模板:Anchor

SVG

模板:Anchor

缩略图设置

模板:Anchor

防病毒

模板:Anchor

解析器

模板:Anchor

HTML

  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.

模板:Anchor

Tidy

Tidy is an open source tool that cleans up broken HTML. You can use this to ensure that broken HTML in articles doesn't affect the layout of your wiki. While Tidy itself is going to be replaced, the configuration settings can still be used for the replacements.

See also: Manual:Build Tidy from source.

模板:Anchor

特殊页面

模板:Anchor

最近更改

See also Help:Recent changes and 模板:Wg

模板:Anchor

UDP更新

Send Recent changes updates via UDP. See: Manual:Simple IRC RC Bot

模板:Anchor


用户

模板:Anchor

验证

模板:Anchor

用户访问

模板:Anchor

用户代理

模板:Anchor

Cookies

模板:Anchor

订阅源

  • $wgFeed - Toggle syndication feeds on and off.
  • $wgAdvertisedFeedTypes - Which feed types should be provided by default.
  • $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
  • $wgFeedClasses - Available feeds objects.
  • $wgFeedDiffCutoff - When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
  • $wgFeedLimit - Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages.
  • $wgOverrideSiteFeed - Override the site's default rss/atom feed that appears on every page.

模板:Anchor

版权

模板:Anchor

搜索

模板:Anchor

作业

模板:Anchor

代理

模板:Anchor

Squid

These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.

模板:Anchor

HTCP组播刷新

模板:Anchor

扩展

模板:Anchor

维护脚本设置

模板:Anchor

杂项设置

参见

  • 模板:Manual: how to set and retrieve configuration variables.
  • 模板:Manual: how to register new configuration variables for extensions and skins.

[[Category:Configure{{#translation:}}| ]] [[Category:MediaWiki configuration{{#translation:}}| ]] [[Category:MediaWiki configuration settings{{#translation:}}| ]] [[Category:Variables{{#translation:}}| ]]