Manual:Configuration settings/zh

使用指南：配置与设定 以下是一个基于DefaultSettings.php文件的所有设置索引 This is an index of all supported configuration options based on the  file.

永远不要编辑 文件; 复制 appropriate lines 到   合适地替代和修订它们.


 * 按字母顺序排列 | 按功能排列 | 分类：mediawiki配置设定分类列表

一般设置

 * $wgProto - The secure server prefix.
 * $wgServer - 服务器URL.
 * $wgServerName - 服务器的名称，不含协议(http or https). (如, en.wikipedia.org)
 * $wgSitename - 网站名称. 可能被更改
 * $wgVersion - MediaWiki的版本号, 用户能够看到.

路径

 * $IP - 文件安装路径. 不在 defaultsettings.php文件之中. Not in DefaultSettings.php.


 * $wgActionPaths - 不同用户行为的路径. 用于‘漂亮的’urls地址. Paths for various user actions. Used to 'pretty' URLs.


 * $wgAppleTouchIcon - 在苹果手持设备上收藏主页时的可选图标地址. Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices.


 * $wgArticlePath - 用于创建文章链接的URL范例. The URL template used to create article links.


 * $wgDiff3 - GNU diff3 工具的安装路径.


 * $wgFavicon - 站点favicon图片的地址. The URL of the site favicon.

''
 * $wgHashedUploadDirectory - 如果这个变量的值为真，那么就会采用/a/ab/foo.png的目录结构. ''If true, use the /a/ab/foo.png directory structure.
 * $wgLogo - 站点的logo地址(URL).


 * $wgMathDirectory - 包含latex数学图标目录的文件系统路径. 包含LaTeX格式数学图片的目录.


 * $wgMathPath - LaTeX格式数学图片的目录的地址(URL).


 * $wgRedirectScript - The URL of redirect.php, needed for backwards compatibility.
 * $wgScript - The URL of index.php.
 * $wgScriptExtension - Extension to append to script names by default.
 * $wgScriptPath - The base URL path.
 * $wgStockPath (deprecated) - For stock images that come with MediaWiki.
 * $wgStyleDirectory - The file system path to the skins directory.
 * $wgStylePath - 皮肤目录地址(URL).
 * $wgStyleSheetDirectory (deprecated) - The file system path of the directory containing the stylesheets.
 * $wgStyleSheetPath - The URL of the directory containing the stylesheets.
 * $wgTmpDirectory - 模板目录地址(URL).
 * $wgUploadBaseUrl -
 * $wgUsePathInfo - Whether to use 'pretty' URLs.
 * $wgUploadDirectory - The file system path of the upload directory.
 * $wgUploadNavigationUrl - Point the upload navigation link to an external URL.
 * $wgUploadPath - The URL of the upload directory.
 * $wgVariantArticlePath - Used for interwiki links.

Global Objects

 * $wgConf - Create a site configuration object. Not used for much in a default install.

邮件设置

 * $wgEmailAuthentication - Whether Email authentication (confirmation) is needed for that wiki for using any Email function (except password reminder which works independently from this setting)
 * $wgEmergencyContact - Site admin email address
 * $wgEnableEmail - Set to true to enable the e-mail basic features: Password reminders, etc.
 * $wgEnableUserEmail - Set to true to enable user-to-user e-mail.
 * $wgNoReplyAddress - Dummy address which should be accepted during mail send action.
 * $wgPasswordSender - Password reminder email address.
 * $wgSMTP - For using a direct (authenticated) SMTP server connection.
 * $wgUserEmailUseReplyTo - Should the sending user's email be in a Reply-To header instead of From.

邮件通知设置

 * $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)
 * $wgEnotifImpersonal - Send a generic mail instead of a personalised mail for each user.
 * $wgEnotifMaxRecips - Maximum number of users to mail at once when using impersonal mail.
 * $wgEnotifMinorEdits - Email notifications also for "minor edits" (user preference is shown and user needs to opt-in)
 * $wgEnotifRevealEditorAddress - reply-to address of Email notifications may be filled with page editor's address (user preference is shown and user needs to opt-in)
 * $wgEnotifUseJobQ - Send mails via the job queue.
 * $wgEnotifUserTalk - Email notifications can be sent for first change on a user_talk page (user preference is shown and user needs to opt-in)
 * $wgEnotifWatchlist - Email notifications can be sent for the first change on watched pages (user preference is shown and user needs to opt-in)
 * $wgShowUpdatedMarker - Show "Updated (since my last visit)" marker in RC view, watchlist and history.
 * $wgUsersNotifedOnAllChanges - Array of usernames who will be sent a notification email for every change which occurs on a wiki

数据库设置

 * $wgAllDBsAreLocalhost - Make all database connections secretly go to localhost. Useful for debugging.
 * $wgBufferSQLResults (deprecated) - Use buffered queries by default.
 * $wgCheckDBSchema (deprecated)
 * $wgDBAvgStatusPoll - Time before the server get a SHOW STATUS query under overload conditions.
 * $wgDBconnection - (deprecated)
 * $wgDBerrorLog - File to log database errors to.
 * $wgDBname - Name of the database.
 * $wgDBpassword - The password for $wgDBuser.
 * $wgDBport - Database port.
 * $wgDBprefix - Table name prefix.
 * $wgDBschema - (deprecated) On some databases this allows separate logical namespace for application data.
 * $wgDBserver - Database host name or ip address.
 * $wgDBtype - Type of database.
 * $wgDBuser - Database username.
 * $wgLocalDatabases - Other wikis on this site, can be administered from a single developer account.
 * $wgSearchType - Type of DB search used.
 * $wgSecondaryMessageDB (deprecated) - DB to fall back on if the message isn't in the main DB.
 * $wgSqlLogFile (deprecated)
 * $wgSqlTimeout (deprecated)

MySQL specific

 * $wgDBminWordLen - Used to discard words that MySQL will not return any results for shorter values configure mysql directly.
 * $wgDBmysql4 (deprecated) - Set to true to use enhanced fulltext search.
 * $wgDBmysql5 - Set to true to set MySQL connection into UTF-8 encoding
 * $wgDBTableOptions - MySQL table options to use during installation or update.
 * $wgDBtransactions - Set to true if using InnoDB tables.
 * $wgExternalServers - An array of external MySQL servers.

PostgreSQL specific

 * $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in. Defaults to 'mediawiki'
 * $wgDBts2schema - Schema that the Tsearch2 tables live in for Postgres. Defaults to 'public'

SQLite specific

 * $wgSQLiteDataDir - To override default SQLite data directory.

Shared DB settings

 * $wgSharedDB - The name of the shared database.
 * $wgSharedPrefix - Prefix to use for the shared database.
 * $wgSharedTables - Tables to use in shared database

Sysop SQL queries
These settings are for sysops to make queries through Extension:Asksql.


 * $wgAllowSysopQueries (deprecated) - Set to allow sysop queries.
 * $wgDBsqlpassword (deprecated) - The password for $wgDBsqluser.
 * $wgDBsqluser (deprecated) - The SQL user used for queries.

Compressed Storage Support

 * $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 (enabled by default if zlib is available).dkkdkdk

本地化

 * $wgAmericanDates - Enable for English module to print dates as eg 'May 12' instead of '12 May'.
 * $wgDisableLangConversion - Whether to enable language variant conversion.
 * $wgDisableTitleConversion - Whether to enable language variant conversion for links.
 * $wgDocType - The doc type to use in the  declaration.
 * $wgDTD - Specifies the DTD in the DOCTYPE declaration for page output.
 * $wgEditEncoding - Characters not explicitely converted by output encoding
 * $wgForceUIMsgAsContentMsg - Array of UI messages that should be treated as content messages
 * $wgInputEncoding - The encoding of the input text.
 * $wgInterwikiMagic - Treat language links as magic connectors, not inline links.
 * $wgLanguageCode - Site language code. Should be one of the ./language/Language(.*).php files.
 * $wgLanguageFile (deprecated) - Filename of a language file generated by dumpMessages.php.
 * $wgLegacyEncoding - Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked with utf-8 flag.
 * $wgLoginLanguageSelector - Show a bar of language selection links in the user login and user registration forms.
 * $wgMsgCacheExpiry - When a message in cache expires (in seconds).
 * $wgOutputEncoding - The encoding of the output text.
 * $wgUseDatabaseMessages - Translation using MediaWiki: namespace.
 * $wgUseDynamicDates - Enable to allow rewriting dates in page text. DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
 * $wgUseLatin1 (deprecated) - Enable ISO-8859-1 compatibility mode.
 * $wgXhtmlDefaultNamespace
 * $wgXhtmlNamespaces - Permit other namespaces in addition to the w3.org default.

时区

 * $wgLocaltimezone - Fake out the timezone that the server thinks it's in.
 * $wgLocalTZoffset - Add a distance to the timezone of the server.

中文特定设置

 * $wgZhdaemonHost - The host which zhdaemon is on. This is only used if $wgUseZhdaemon is set.
 * $wgZhdaemonPort - The port on $wgZhdaemonHost which zhdaemon is on.
 * $wgUseZhdaemon - Whether to use zhdaemon to perform Chinese text processing.

Hindi/Arabic-specific

 * $wgTranslateNumerals - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.

调试(Debug)/日志(logging)

 * $wgColorErrors - Whether to color command-line error messages.
 * $wgDebugComments - Include portions of log output in page HTML comment.
 * $wgDebugDumpSql
 * $wgDebugLogFile - The file name of the debug log, or empty if disabled. wfDebug appends to this file.
 * $wgDebugLogGroups - Selective debug logs on a group basis.
 * $wgDebugRawPage - Avoid overlapping debug entries by leaving out CSS.
 * $wgDebugRedirects
 * $wgIgnoreSQLErrors (deprecated) - Whether to disable automatic generation of "we're sorry, but there has been a database error" pages.
 * $wgJobLogFile (deprecated) - Log file for job execution.
 * $wgLogQueries
 * $wgShowSQLErrors - Whether to show "We're sorry, but there has been a database error." pages.
 * $wgStatsMethod - Destination for wfIncrStats data.

Profiling

 * $wgDebugFunctionEntry - Output debug message on every wfProfileIn/wfProfileOut
 * $wgDebugProfiling - Detects non-matching wfProfileIn/wfProfileOut calls
 * $wgDebugSquid - Lots of debugging output from SquidUpdate.php
 * $wgProfileCallTree - If true, print a raw call tree instead of per-function report
 * $wgProfileLimit - Only record profiling info for pages that took longer than this
 * $wgProfileOnly - Don't put non-profiling info into log file
 * $wgProfilePerHost - Should application server host be put into profiling table?
 * $wgProfilerType (deprecated) - If not empty, specifies profiler type to load.
 * $wgProfileSampleRate (deprecated) - Only profile every n requests when profiling is turned on
 * $wgProfileToCommentUser (deprecated) - Put profiling data in HTML comments in the output file, for a given user only.
 * $wgProfileToDatabase - Log sums from profiling into profiling table in db.
 * $wgProfiling (deprecated) - Enable for more detailed by-function times in debug log
 * $wgUDPProfilerHost - Host for UDP profiler.
 * $wgUDPProfilerPort - Port for UDP profiler.

用户站点

 * $wgAjaxExportList - List of functions in  that are callable via
 * $wgAjaxSearch - Enable use of AJAX auto-suggestion for the search bar.
 * $wgAjaxUploadDestCheck - Enable AJAX check for file overwrite, pre-upload.
 * $wgAjaxWatch - Enable watching/unwatching pages using AJAX.
 * $wgAllowUserCss - Allow user Cascading Style Sheets (CSS)
 * $wgAllowUserJs - Allow user Javascript pages
 * $wgDefaultUserOptions - Settings added to this array will override the language globals for the user preferences used by anonymous visitors and newly created accounts.
 * $wgCapitalLinks - Set this to false to avoid forcing the first letter of links to capitals.
 * $wgDefaultLanguageVariant - Default variant code, if false, the default will be the language code.
 * $wgDefaultRobotPolicy - Default robot exclusion policy for the wiki.
 * $wgExtraLanguageNames - List of language names or overrides for default names in Names.php.
 * $wgExtraSubtitle - The subtitle to appear under every title.
 * $wgHideInterlanguageLinks - Hide interlanguage links from the sidebar.
 * $wgLegalTitleChars - Override default list of illegal characters in page titles.
 * $wgNavigationLinks (deprecated) - Navigation links for the user sidebar.
 * $wgNoFollowLinks - If true, external URL links in wiki text will be given the  attribute.
 * $wgPageShowWatchingUsers - Show watching users in Page views.
 * $wgRestrictionLevels - Set of permission keys that can be selected on the 'page protection' page.
 * $wgSiteNotice - A message to be displayed at the top of every page.
 * $wgSiteSupportPage - A page where your users can donate.
 * $wgUrlProtocols - Defines the protocols which are supported and translated in HTML by the MediaWiki parser.
 * $wgUseAjax - Enable use of AJAX features
 * $wgUseSiteCss - Use the site's Cascading Style Sheets (CSS).
 * $wgUseSiteJs - Use the site's Javascript page.

命名空间

 * $wgContentNamespaces - Namespaces which are considered to contain real content, or articles
 * $wgExtraNamespaces - Additional namespaces.
 * $wgMetaNamespace - The name used for the meta-namespace.
 * $wgMetaNamespaceTalk - The name used for the meta-namespace talk pages.
 * $wgNamespaceAliases - override the default names for namespaces.
 * $wgNamespaceProtection - default protection levels for namespaces.
 * $wgNamespaceRobotPolicies
 * $wgNamespacesToBeSearchedDefault - Which namespaces should be searched?
 * $wgNamespacesWithSubpages - Which namespaces should support subpages?
 * $wgNoFollowNsExceptions - Namespaces where the nofollow setting ($wgNoFollowLinks) is overridden.
 * $wgNonincludableNamespaces - Pages in namespaces in this array can not be used as templates.

Per-page settings

 * $wgArticleRobotPolicies

See also Manual:Page customizations/zh.

皮肤

 * $wgDefaultSkin - 默认皮肤.
 * $wgSkipSkin - Specify the name of a skin that should not be presented in the list of available skins.
 * $wgSkipSkins - More of the same as $wgSkipSkin.
 * $wgUsePHPTal (deprecated)
 * $wgValidSkinNames

类别

 * $wgUseCategoryMagic (deprecated) - Should the category pseudo-namespace be used?
 * $wgCategoryMagicGallery - On category pages, show thumbnail gallery for images belonging to that category instead of listing them as articles.
 * $wgCategoryPagingLimit - Paging limit for items in categories.
 * $wgUseCategoryBrowser - Enable DMOZ-like category tree at the bottom of pages

缓存(Cache)

 * $wgCachedMessageArrays - Directory for compiled constant message array databases.
 * $wgCacheEpoch - Set this to current time to invalidate all prior cached pages.
 * $wgCachePages - Allow client-side caching of pages
 * $wgCheckSerialized - Check if serialised files are up to date.
 * $wgEnableParserCache - Keep parsed pages in a cache (objectcache table, turck, or memcached) to speed up output of the same page viewed by another user with the same options.
 * $wgEnableSidebarCache - If true, cache the sidebar navigation links.
 * $wgFileCacheDirectory - Directory where the cached page will be saved when using server-side caching.
 * $wgForcedRawSMaxage - Default maximum age for raw CSS/JS accesses.
 * $wgImageHtmlCacheExpiry (deprecated) - Set to a number of seconds to cache the HTML associated with an image.
 * $wgLocalMessageCache - Directory for local copy of message cache, for use in addition to memcached.
 * $wgLocalMessageCacheSerialized - Defines format of local cache.
 * $wgMainCacheType - Replaces $wgUseMemCached.
 * $wgMaxMsgCacheEntrySize - Maximum entry size in the message cache, in bytes.
 * $wgMessageCacheType - Message cache setting.
 * $wgParserCacheType - Parser cache setting.
 * $wgQueryCacheLimit - Number of rows to cache in 'querycache' table when miser mode is on.
 * $wgRevisionCacheExpiry - Cache extracted revision text in MemCached.
 * $wgThumbnailEpoch - If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if the file didn't already exist.
 * $wgTranscludeCacheExpiry - Expiry time for interwiki transclusion.
 * $wgUseFileCache - This will cache static pages for non-logged-in users to reduce database traffic on public sites.
 * $wgUseGzip - Use GZip to store cached pages.
 * $wgSidebarCacheExpiry - Expiry time for the sidebar cache.
 * $wgUseWatchlistCache (deprecated) - Generate a watchlist once every hour or so.
 * $wgWLCacheTimeout (deprecated) - The hour or so mentioned above.

Persistent Link Cache

 * $wgCompressedPersistentLC (deprecated) - Use gzcompressed blobs.
 * $wgEnablePersistentLC (deprecated)

Memcached 设置
Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.
 * $wgUseMemCached (deprecated) - Use memcache, using the servers set in $wgMemCachedServers.
 * $wgLinkCacheMemcached - Cache links using object cache setting (memcache, Turck MMCache, eAccelerator, etc.)
 * $wgMemCachedDebug - Will be set to false in Setup.php, if the server isn't working.
 * $wgMemCachedPersistent
 * $wgMemCachedServers - Array of Memcached servers.
 * $wgSessionsInMemcached - Store sessions in memcached instead of the default PHP behaviour.
 * $wgUseEAccelShm (deprecated) - You can use this for persistent caching where your wiki runs on a single server. Use eAccelerator for shared memory.
 * $wgUseTurckShm (deprecated) - Use Turck MMCache shared memory.

Interwiki

 * $wgEnableScaryTranscluding - Enable scary transclusion (transcluding from another wiki)
 * $wgImportSources - List of interwiki prefixes for wikis we'll accept as sources for Special:Import (for sysops).
 * $wgInterwikiCache
 * $wgInterwikiExpiry - Expiry time for cache of interwiki table.
 * $wgInterwikiFallbackSite
 * $wgInterwikiScopes
 * $wgLocalInterwiki - The Interwiki prefix of this wiki. It should always be changed in LocalSettings.php.

权限控制
Wiki locking, 用户权限设定, blocking/banning, and some other related settings.


 * $wgAutopromote - 允许自动提升用户一些flags如果他符合标准 Allow automatically promote user some flags if he matches criterias.


 * $wgAccountCreationThrottle - 每个IP地址可以创建的用户数量，(从0---禁用) 需要memcached. Number of accounts each IP address may create, 0 to disable. Requires memcached.


 * $wgAddGroups - 控制谁可以运用用户权限添加特殊组.Controls who can add specific groups using Special:Userrights.


 * $wgAllowAnonymousMinor (deprecated) - ：允许匿名用户标记变化，例如‘minor’（轻微）Allow anonymous users to mark changes as 'minor'.


 * $wgAllowPageInfo - 允许信息动作，此时非常无效. Allow the info action, very inefficient at the moment.


 * $wgAutoblockExpiry - 自动封锁登记失效之前需要多少秒Number of seconds before autoblock entries expire.


 * $wgBlockAllowsUTEdit - 允许被封锁的用户编辑他们的talk页. Allow blocked users to edit their talk pages.


 * $wgDefaultBlockExpiry (deprecated) - 默认过期时间,为strtotime格式或设置为无限 Default expiry time in strtotime format, or infinite for an infinite block.


 * $wgDeleteRevisionsLimit - 设置一个整数用来表明在“bigdelete”权限要求删除一篇文章之前该文章必须修改多少次. Integer of how many revisions an article must have before the bigdelete right is required to delete it.


 * $wgDisabledActions - 被禁止文章行为数列，例如：浏览、编辑、删除等等. Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.


 * $wgEmailConfirmToEdit - 在用户被允许编辑之前，请求他们进行邮件地址认证. Require users to confirm email address before they can edit, true to enable.


 * $wgEnableCascadingProtection - 允许级联保护. Enable cascade protection.


 * $wgEnableAPI - 启动由API数据到api.php的直接通道. Enable direct access to the data API through api.php.


 * $wgEnableWriteAPI - 当授权用户访问时，允许被用于执行写入操作系统（页面编辑、回滚等等）的API启用Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it.


 * $wgGroupPermissions - 用这个变量来设置群组和用户的访问权限. 参见：Manual:User rights/zh and Manual:User rights management/zh Use this to set access rights for groups and users. See also Manual:User rights/zh and Manual:User rights management/zh


 * $wgGroupsAddToSelf - 允许用户从指定组添加自己 allow users to add themselves from specified groups via Special:Userrights


 * $wgGroupsRemoveFromSelf - 允许用户从制定组删除自己. allow users to remove themselves from specified groups via Special:Userrights


 * $wgPasswordSalt - 将兼容旧版本的安装设为false For compatibility with old installations set to false.


 * $wgReadOnly - 由于某些原因禁止编辑、显示某些文字Disallows editing, displaying the string given as the reason.


 * $wgReadOnlyFile - 如果存在这个文件，那么数据库因为这个文件中给出的原因被锁定. If this file is found, the database is locked for the reason given in the contents of the file.


 * $wgRemoveGroups - 这个变量用来控制哪些用户可以运用用户权限删除制定的群组. Special:UserrightsControls who can remove specific groups using Special:Userrights.


 * $wgSysopEmailBans - 让系统禁止将那些电子邮件用户进行访问 Allow sysops to ban users from accessing Emailuser.


 * $wgSysopRangeBans - 让系统禁用的ip范围. Allow sysops to ban IP ranges


 * $wgSysopUserBans - 系统禁止登陆的用户 Allow sysops to ban logged-in users


 * $wgWhitelistAccount (deprecated) - 可以建立用户的帐户类型 Types of accounts that can create new users.


 * $wgWhitelistEdit (deprecated) - 如果这个变量的值为true,那么用户必须登陆才能进行编辑. (1.4以前的版本)If true, users must login to edit. (versions 1.4 and previous)

'' See Manual:Preventing access/zh 有关更多的关于访问的想法与设置，参见：Manual:User rights management/zh了解更多信息. $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups,等等. ''for more methods and settings concerning access. See also Manual:User rights management/zh for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.''
 * $wgWhitelistRead - 匿名用户看到的页面 ''Pages anonymous user may see.

Rate limiter

 * $wgRateLimitLog - Set to a filename to log rate limiter hits.
 * $wgRateLimits - Simple rate limiter options to brake edit floods.
 * $wgRateLimitsExcludedGroups - Array of groups which should never trigger the rate limiter.

Squid

 * $wgInternalServer - Internal server name as known to Squid, if different.
 * $wgMaxSquidPurgeTitles - Maximum number of titles to purge in any one client operation
 * $wgSquidFastPurge (deprecated) - When purging, use persistent connections and don't wait for the response.
 * $wgSquidMaxage - Cache timeout for the squid.
 * $wgSquidServers - A list of proxy servers (ips if possible) to purge on changes.
 * $wgSquidServersNoPurge - Same as $wgSquidServers, except they aren't purged.
 * $wgUseESI - If you run Squid3 with ESI support, enable this.
 * $wgUseSquid - Enable/disable Squid.

Cookies

 * $wgCookieDomain - Set to set an explicit domain on the login cookies.
 * $wgCookieExpiration - Number of seconds before HTTP cookies expire.
 * $wgCookiePath
 * $wgCookieSecure - Whether cookies are secured.
 * $wgDisableCookieCheck
 * $wgSessionName - Override to customise the session name.

Reduction

 * $wgDisableAnonTalk - Disable talk pages for anonymous users (IPs).
 * $wgDisableCounters - Disable view counter shown in the footer of an article/page as: "This page has been accessed X times"
 * $wgDisableFuzzySearch (deprecated)
 * $wgDisableQueryPages - Disable all query pages if miser mode is on, not just some.
 * $wgDisableQueryPageUpdate - Array of special pages that should not be updated.
 * $wgDisableSearchContext
 * $wgDisableSearchUpdate - If you've disabled search semi-permanently, this also disables updates to the table.
 * $wgDisableTextSearch - Disables full text search (including title search).
 * $wgMiserMode - If true, disable database-intensive features
 * $wgShowHostnames - If set to true, exposes host names through API and HTML comments.
 * $wgUseDumbLinkUpdate - Do /  for link updates instead of incremental.
 * $wgWantedPagesThreshold - Minimum number of links required before a page is listed on Special:Wantedpages

上传
Uploads have to be specially set up to be secure.


 * $wgAjaxLicensePreview - Allow preview licences during upload via AJAX.
 * $wgAllowCopyUploads - allow uploads from URLs, not just local files
 * $wgCheckFileExtensions - This is a flag to determine whether or not to check file extensions on upload.
 * $wgEnableUploads - Enables uploads and shows link to upload page
 * $wgDisableUploads (deprecated) - Does opposite of $wgEnableUploads
 * $wgFileBlacklist - Files with these extensions will never be allowed as uploads.
 * $wgFileExtensions - This is the list of preferred extensions for uploading files. Uploading files with extensions not in this list will trigger a warning.
 * $wgFileStore - Indicates where deleted images are to be stored.
 * $wgLocalFileRepo - A single repository structure for the local repository.
 * $wgRemoteUploads - Set to true to enable the upload link while local uploads are disabled.
 * $wgStrictFileExtensions - If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
 * $wgUploadSizeWarning - Warn if uploaded files are larger than this.
 * $wgMaxUploadSize - Maximum size for file uploads.
 * $wgSaveDeletedFiles (deprecated) - Indicates that deleted images are to be stored for later undeletion.
 * $wgHTTPTimeout - Timeout for HTTP requests done via CURL.
 * $wgHTTPProxy - Proxy to use for CURL requests.

共享上传
These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting.
 * $wgCacheSharedUploads - Cache shared metadata in memcached.
 * $wgForeignFileRepos - An array of repository structure for foreigns repositories.
 * $wgHashedSharedUploadDirectory - Whether to hash the shared upload directory.
 * $wgRepositoryBaseUrl - Base URL for a repository wiki.
 * $wgSharedLatin1 (deprecated) - set true if the repository uses latin1 filenames.
 * $wgSharedUploadDBname - DB name with metadata about shared directory.
 * $wgSharedUploadDBprefix - DB prefix for shared image uploads.
 * $wgSharedUploadDirectory - Path on the file system where shared uploads can be found.
 * $wgSharedUploadPath - Full path on the web server where shared uploads can be found.
 * $wgUseSharedUploads - Whether to look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).
 * $wgFetchCommonsDescriptions - set this "true" if you want to integrate media-descriptions, stored in the commonswiki

MIME types

 * $wgLoadFileinfoExtension - Switch for loading the FileInfo extension by PECL at runtime.
 * $wgMimeDetectorCommand - Sets an external mime detector program.
 * $wgMimeInfoFile - Sets the mime type info file to use by MimeMagic.php.
 * $wgMimeTypeFile - Sets the mime type definition file to use by MimeMagic.php.
 * $wgTrivialMimeDetection - Switch for trivial mime detection. 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.

See also Manual:Mime type detection/zh

图片
Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.
 * $wgAllowTitlesInSVG - If true, will be allowed in files with an "image/svg" MIME type.
 * $wgDjvuPostProcessor - Path of the DJVU post processor.
 * $wgDjvuRenderer - Path of the ddjvu DJVU renderer.
 * $wgDjvuToXML - Path of the djvutoxml executable.
 * $wgFileRedirects - If enabled, MediaWiki checks redirects in Image: namespace.
 * $wgGenerateThumbnailOnParse - Allow thumbnail rendering on page view.
 * $wgIgnoreImageErrors - If true, inline scaled images will still produce tags ready for output instead of showing an error message.
 * $wgImageLimits - Limit images on image description pages to a user-selectable limit.
 * $wgImageMagickConvertCommand - Set to the command used to evoke ImageMagick.
 * $wgMaxImageArea - Don't thumbnail an image if it will use too much working memory.
 * $wgMediaHandlers - Plugins for media file type handling.
 * $wgSharedThumbnailScriptPath - Same as $wgThumbnailScriptPath, but for shared uploads.
 * $wgSVGConverter - A key from $wgSVGConverters to use as converter.
 * $wgSVGConverterPath - If not in the executable PATH, specify.
 * $wgSVGConverters - Scalable Vector Graphics (SVG) may be uploaded as images.
 * $wgThumbnailScriptPath - Give a path here to use thumb.php for thumbnail generation on client request, instead of generating them on render and outputting a static URL.
 * $wgThumbUpright - Adjust width of upright images when parameter 'upright' is used
 * $wgUseImageMagick - Resizing can be done using PHP's internal image libraries or using ImageMagick. The latter supports more file formats than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
 * $wgUseImageResize (deprecated) - Set $wgUseImageResize to true if you want to enable dynamic server side image resizing (Thumbnails)
 * $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data.
 * parameters for upload path
 * $wgThumbLimits - List of image sizes users can pick from
 * $wgTrustedMediaFormats - List of trusted media-types and mime types.
 * $wgSVGMaxSize - Don't scale a SVG larger than this unless its native size is larger.

See also Manual:Configuring file uploads/zh

杀毒

 * $wgAntivirus - Internal name of virus scanner.
 * $wgAntivirusRequired - Determines if a failed virus scan will cause the file to be rejected.
 * $wgAntivirusSetup - Configuration for different virus scanners.

语法

 * $wgAllowDisplayTitle - Allow the magic word   to override  the title of a page.
 * $wgAllowExternalImages - Whether to allow inline image pointing to other websites.
 * $wgAllowExternalImagesFrom - If $wgAllowExternalImages is false, you can specify an exception here.
 * $wgMaxPPExpandDepth - Stack depth limit for expansion with the preprocessor.
 * $wgMaxPPNodeCount - A complexity limit on template expansion.
 * $wgParserConf - Parser configuration.
 * $wgParserCacheExpireTime
 * $wgParserTestFiles - Parser test suite files to be run by parserTests.php.
 * $wgUseXMLparser (deprecated) - Use XML parser?

HTML

 * $wgRawHtml - Allow raw, unchecked HTML in ... sections.
 * $wgUserHtml (deprecated) - Allow limited user-specified HTML in wiki pages?

TeX
To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package and have latex, dvips, gs (ghostscript), and convert (ImageMagick) installed and available in the PATH. Please see math/README for more information.


 * $wgTexvc - Location of the texvc binary.
 * $wgUseTeX - Enables the use of (TeX) tags.

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.


 * $wgAlwaysUseTidy
 * $wgDebugTidy - Put tidy warnings in HTML comments, only works for internal tidy.
 * $wgTidyBin - Should be set to the path of the tidy binary.
 * $wgTidyConf - Should be set to the path of the tidy configuration file.
 * $wgTidyInternal - Controls the use of the PECL extension to use an inprocess tidy library instead of spawning a separate program.
 * $wgTidyOpts - Options passed to tidy on the command line.
 * $wgUseTidy - Use tidy to make sure HTML output is sane.
 * $wgValidateAllHtml - Validate the overall output using tidy and refuse to display the page if it's not valid.

See also Manual:Build Tidy from source/zh.

特殊页

 * $wgAllowSpecialInclusion - Allow special page inclusions such as.
 * $wgDateGroupedLogs - Group logs under date headings similar to enhanced recent changes.
 * $wgExportAllowHistory - Enable the full-history option on Special:Export.
 * $wgExportAllowListContributors
 * $wgExportMaxHistory - Special:Export requests for history of pages with more revisions than this will be rejected.
 * $wgFilterRobotsWL (deprecated) - Enable filtering of robots in Special:Watchlist.
 * $wgImportTargetNamespace - Optional default target namespace for interwiki imports.
 * $wgLogActions - Lists the message key string for formatting individual events of each type and action when listed in the logs.
 * $wgLogHeaders - Lists the message key string for descriptive text to be shown at the op of each log type.
 * $wgLogNames - Lists the message key string for each log type.
 * $wgLogTypes - List of log types.
 * $wgMaxRedirectLinksRetrieved - Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
 * $wgUseNPPatrol - Use new pages patrolling to check for vandalism.

最近更改
See Special:Recentchanges


 * $wgAllowCategorizedRecentChanges - Allow to filter the recentchanges by a category or one of its sub(subsubsub...)categories
 * $wgPutIPinRC - Log IP addresses in the recentchanges table.
 * $wgRCChangedSizeThreshold - Highlight character count difference lower than this.
 * $wgRCMaxAge - Recentchanges items are periodically purged; entries older than this many seconds will go.
 * $wgRCSeconds (deprecated) - Show seconds in Recent Changes.
 * $wgRCShowChangedSize - Show the amount of changed characters in recent changes.
 * $wgRCShowWatchingUsers - Show watching users in recent changes, watchlist and page history views.
 * $wgUseRCPatrol - Use RC Patrolling to check for vandalism.

UDP updates
Send RC updates via UDP. See: Manual:Simple IRC RC Bot/zh


 * $wgRC2UDPAddress
 * $wgRC2UDPPort
 * $wgRC2UDPPrefix

用户

 * $wgActiveUserEditCount - 将被系统当做“活动”用户的编辑次数 The number of edits a person must make to be considered an "active" user.


 * $wgActiveUserDays - 将被系统看做“活动”用户的人的天数 The number of days a person must make edits to be considered an "active" user.


 * $wgAutoConfirmAge - 在一个帐户被授予隐含的‘自动认证’组成员之前需要多少秒 Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group membership.


 * $wgAutoConfirmCount - 在一个帐户被授予隐含的‘自动认证’组成员之前需要编辑多少次 Number of edits an account requires before it's given the implicit 'autoconfirm' group membership.


 * $wgAllowRealName - 是否允许实名域 Whether or not to allow real name fields.


 * $wgDefaultUserOptions - 添加到这个列的设置会废除默认设置中匿名访问与新注册用户的参数 Settings added to this array will override the default settings for the user preferences used by anonymous visitors and newly created accounts.


 * $wgDisableAnonTalk - 对匿名用户禁用‘talk’页面（IPs）Disable talk pages for anonymous users (IPs)


 * $wgMaxNameChars - 用户名最多是多少字节 Maximum number of bytes in username.


 * $wgMinimalPasswordLength - 指定用户密码的最小长度 Specifies the minimal length of a user password.

''
 * $wgMaxSigChars - 最大的自定义签名长度 ''Maximum customized signature length.
 * $wgPasswordReminderResendTime - 密码提醒多长时间后消失 Minimum time, in hours, which must elapse between password reminder.


 * $wgReservedUsernames - 不能消失的用户名列表 List of account names that cannot exist.


 * $wgShowIPinHeader - 默认为匿名用户在用户工具栏显示IP地址Show the IP in the user bar for anonymous users by default.

用户代理

 * $wgBadRanges (deprecated) - An array of arrays of IP addresses that each value in $wgBadUserAgents apply to.
 * $wgBadUserAgents (deprecated) - Array of user agents that should be automatically blocked.
 * $wgBrowserBlackList - Browser Blacklist for unicode non compliant browsers.
 * $wgRangeBlockReason (deprecated) - This reason is given for the range block.
 * $wgRangeBlockUser (deprecated) - The block is attributed to this user ID.

Feed

 * $wgFeed - Toggle syndication feeds on and off.
 * $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
 * $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.

版权

 * $wgCheckCopyrightUpload - Set this to false if you want to disable checking that detailed copyright information values are not empty.
 * $wgCopyrightIcon - Set this to some HTML to override the copyrights icon with an arbitrary logo.
 * $wgEnableCreativeCommonsRdf - Includes licensing information derived from Creative Commons licenses.
 * $wgEnableDublinCoreRdf
 * $wgMaxCredits - Set this to the number of authors that you want to be credited below an article text.
 * $wgRightsIcon
 * $wgRightsPage
 * $wgRightsText
 * $wgRightsUrl
 * $wgShowCreditsIfMax - If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
 * $wgUseCopyrightUpload - Set this to true if you want detailed copyright information forms on Upload.

Jobs

 * $wgJobRunRate - Speed of the background task job queue (e.g. update of links).
 * $wgJobClasses - Maps jobs to their handling classes.
 * $wgUpdateRowsPerJob - Number of rows to update per job.

扩展

 * $wgAllowSlowParserFunctions - Allow other parser functions like "pagesinnamespace".
 * $wgAPIModules - API module extensions.
 * $wgAuth - Authentication plugin. See AuthPlugin.php.
 * $wgAutoloadClasses - Array mapping class names to filenames, for autoloading.
 * $wgDisableInternalSearch - Disable internal search so that extensions can implement it.
 * $wgExtensionCredits - Global list of extension credits.
 * $wgExtensionFunctions
 * $wgExtensionMessagesFiles - Extension messages files.
 * $wgExternalStores - External stores allow including content from non database sources following URL links.
 * $wgHooks - Global list of hooks.
 * $wgPagePropLinkInvalidations - Page property link table invalidation lists.
 * $wgParserOutputHooks - Parser output hooks.
 * $wgSearchForwardUrl - Set this to a URL to forward search requests to some external location.
 * $wgSkinExtensionFunctions

HTCP multicast purging

 * $wgHTCPMulticastAddress - Not used yet. Commented out.
 * $wgHTCPMulticastTTL
 * $wgHTCPPort

其他设置

 * $wgAntiLockFlags - Anti-lock flags.
 * $wgBreakFrames - Break out of framesets. This can be used to prevent external sites from framing your site with ads.
 * $wgClockSkewFudge - Helps avoid cache problems due to timer resolution.
 * $wgCommandLineDarkBg - For colorized maintenance script output.
 * $wgCommandLineMode - Indicates whether MediaWiki is running in command-line mode. Should never be set manually!
 * $wgCompressRevisions - If this is set on, old revisions will be compressed on page save if zlib support is available.
 * $wgConf - Create a site configuration object. Not used for much in a default install.
 * $wgCountCategorizedImagesAsUsed - On Special:Unusedimages, consider images used if they are put into a category.
 * $wgDisableHardRedirects - Disable redirects to special pages and interwiki redirects, which use a 302 and have no redirected from link.
 * $wgDisableOutputCompression - Disable output compression (enabled by default if zlib is available).
 * $wgEnableSOAP (deprecated) - Enable SOAP interface.
 * $wgExternalDiffEngine - Use external C++ diff engine (module wikidiff from the extensions package).
 * $wgExtraRandompageSQL - Filter for Special:Randompage. Part of a WHERE clause.
 * $wgFilterCallback - Similarly (to $wgSpamRegex) if this function returns true.
 * $wgGoToEdit - Go button goes straight to the edit screen if the article doesn't exist
 * $wgGrammarForms - Used for parser function.
 * $wgHitcounterUpdateFreq - Sets how often page counters should be updated.
 * $wgIPBlockExpiration (deprecated) - IP blocks expire after this many seconds
 * $wgJsMimeType - Media type (MIME type) to use for JavaScript scripts.
 * $wgLegacySchemaConversion (deprecated) - Option to speed up the conversion step for large sites when migrating the schema from 1.4 to 1.5.
 * $wgLivePreview, see also Manual:Live preview/zh
 * $wgMakeDumpLinks (deprecated) - Produce hashed HTML article paths.
 * $wgMaxArticleSize - Maximum article size in kilobytes.
 * $wgMaxShellFileSize - Maximum file size created by shell processes under linux, in KB.
 * $wgMaxShellMemory - Maximum amount of virtual memory available to shell processes under linux, in KB.
 * $wgMaxTocLevel - Maximum indent level of toc.
 * $wgRedirectSources
 * $wgRestrictionTypes
 * $wgShowIPinHeader - Show the IP in the user bar for anonymous users by default.
 * $wgSortSpecialPages - Whether or not to sort special pages in Special:Specialpages.
 * $wgSpamRegex - A regular expression pattern which stops a page from being saved.
 * $wgStyleVersion - Appended in the query string of static CSS and JS to clear client side cache when changing this.
 * $wgUpdateRowsPerQuery - Number of rows to update per query.
 * $wgUseBetterLinksUpdate (deprecated)
 * $wgUseCommaCount - Specifies the criteria used to define a 'valid article' when counting.
 * $wgUseData (deprecated)
 * $wgUseETag
 * $wgUseExternalDiffEngine (deprecated) - Use external C++ diff engine (module wikidiff from the extensions package).
 * $wgUseExternalEditor - Activate external editor interface for files and pages.
 * $wgUseGeoMode (deprecated) - Recognise longitude/latitude coordinates.
 * $wgUseOldExistenceCheck (deprecated) - Use old prefill link method, for debugging only.
 * $wgUserBlockExpiration (deprecated) - User blocks expire after this many seconds.
 * $wgUseTrackbacks - Not yet documentated (see Trackback)
 * $wgUseValidation (deprecated) - Validation for print or other production versions.
 * $wgValidationForAnons (deprecated) - Whether to use article validation for anonymous users.