查看“Configuration settings”的源代码
←
Configuration settings
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{languages}} {{TOCright}} 这是所有支持的'''配置设置'''索引,基于<code>'''[https://github.com/wikimedia/mediawiki-core/blob/master/includes/DefaultSettings.php DefaultSettings.php]'''</code>文件。 请不要编辑<code>DefaultSettings.php</code>文件;而应该把您需要的参数复制到<code>''[[Special:MyLanguage/Manual:LocalSettings.php|LocalSettings.php]]''</code>中并替换掉原有的参数。 如果您在此找不到配置设置的话,请检查其是否在<code>DefaultSettings.php</code>中定义。变量应在此文档中记载。 {{TNT|Note|在MediaWiki 1.19及以前版本中移除的设置不再记载于此。请使用搜索框查找相关手册页面(例如<code>Manual:$wgAllowAnonymousMinor</code>)。}} :[[Special:MyLanguage/Manual:Configuration settings (alphabetical)|按字母排序列表]] | [[Special:MyLanguage/Manual:Configuration settings|按功能排序列表]] | [[:Category:MediaWiki configuration settings/zh|分类:MediaWiki配置设置]] {{anchor|General Settings}} == 一般设置 == * [[Special:MyLanguage/Manual:$wgCanonicalServer|$wgCanonicalServer]]——服务器的正规URL,用于IRC订阅、电子邮件通知等。 * [[Special:MyLanguage/Manual:$wgServer|$wgServer]]——服务器的基础URL。 * [[Special:MyLanguage/Manual:$wgServerName|$wgServerName]]——服务器的名称,不包含协议。 * [[Special:MyLanguage/Manual:$wgSitename|$wgSitename]]——网站名称。 * [[Special:MyLanguage/Manual:$wgVersion|$wgVersion]]——MediaWiki版本号。'''您不应该更改它!''' {{anchor|Paths}} == 路径 == * [[Special:MyLanguage/Manual:$IP|$IP]] - The full path to the installation directory. * [[Special:MyLanguage/Manual:$wgActionPaths|$wgActionPaths]] - Paths for various user actions. Used to make URLs prettier. * [[Special:MyLanguage/Manual:$wgAppleTouchIcon|$wgAppleTouchIcon]] - Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices * [[Special:MyLanguage/Manual:$wgArticlePath|$wgArticlePath]] - 用于创建条目链接的基础URL。 * [[Special:MyLanguage/Manual:$wgConfigRegistry|$wgConfigRegistry]] - Registry of factory functions to create config objects * [[Special:MyLanguage/Manual:$wgDiff|$wgDiff]] - 至GNU差异效用的路径。 * [[Special:MyLanguage/Manual:$wgDiff3|$wgDiff3]] - 至GNU差异3效用的路径。 * [[Special:MyLanguage/Manual:$wgDirectoryMode|$wgDirectoryMode]] - Default <code>chmod</code> permission value for newly created directories. * [[Special:MyLanguage/Manual:$wgFavicon|$wgFavicon]] - 网站收藏夹图标的URL。 * [[Special:MyLanguage/Manual:$wgGitBin|$wgGitBin]] - 至git二进制的路径。 * [[Special:MyLanguage/Manual:$wgGitInfoCacheDirectory|$wgGitInfoCacheDirectory]] - Directory where GitInfo will look for pre-computed cache files. * [[Special:MyLanguage/Manual:$wgLoadScript|$wgLoadScript]] - 至load.php的URL。 * [[Special:MyLanguage/Manual:$wgLogo|$wgLogo]] - 网站标志的URL。 * [[Special:MyLanguage/Manual:$wgLogoHD|$wgLogoHD]] - 用于网站标志的高清版本的URL。 * [[Special:MyLanguage/Manual:$wgPhpCli|$wgPhpCli]] - Executable name of PHP cli client (php/php5). * [[Special:MyLanguage/Manual:$wgRedirectScript|$wgRedirectScript]] - {{TNT|removed-inline|1.22}} redirect.php的URL。 * [[Special:MyLanguage/Manual:$wgScript|$wgScript]] - index.php的URL。 * [[Special:MyLanguage/Manual:$wgScriptExtension|$wgScriptExtension]] - {{TNT|removed-inline|1.27}} Extension to append to script names by default. * [[Special:MyLanguage/Manual:$wgScriptPath|$wgScriptPath]] - 基础URL路径。 * [[Special:MyLanguage/Manual:$wgStyleSheetPath|$wgStyleSheetPath]] - 不要设置<code>$wgStyleSheetPath</code>。请改用{{$wg|StylePath}}。 * [[Special:MyLanguage/Manual:$wgTmpDirectory|$wgTmpDirectory]] - The path of the temporary directory. * [[Special:MyLanguage/Manual:$wgUsePathInfo|$wgUsePathInfo]] - 是否使用“漂亮的”URL。 * [[Special:MyLanguage/Manual:$wgVariantArticlePath|$wgVariantArticlePath]] - Used for links when having language's variants. See also [[#Uploads|Uploads]] for file/image upload path settings. 参见[[#Skins|皮肤]]一节获取皮肤路径设置。 {{anchor|Global Objects}} == 全局对象 == * [[Special:MyLanguage/Manual:$wgAutoloadLocalClasses|$wgAutoloadLocalClasses]] - Array mapping class names to filenames, for autoloading. * [[Special:MyLanguage/Manual:$wgConf|$wgConf]] - Create a site configuration object. Not used for much in a default install. * [[Special:MyLanguage/Manual:$wgVirtualRestConfig|$wgVirtualRestConfig]] - REST服务配置。 {{anchor|Email settings}} == 电子邮件设置 == 参见用户访问:[[Special:MyLanguage/Manual:$wgEmailConfirmToEdit|$wgEmailConfirmToEdit]]'' * [[Special:MyLanguage/Manual:$wgAdditionalMailParams|$wgAdditionalMailParams]] - Additional email parameters, will be passed as the last argument to mail() PHP function call. * [[Special:MyLanguage/Manual:$wgAllowHTMLEmail|$wgAllowHTMLEmail]] - Set to true to enable HTML emails. * [[Special:MyLanguage/Manual:$wgEmailAuthentication|$wgEmailAuthentication]] - Set to true to enable email authentication (confirmation) for this wiki. Except for password reminder emails, email functions only work for authenticated email addresses. * [[Special:MyLanguage/Manual:$wgEmergencyContact|$wgEmergencyContact]] - 网站管理员电子邮件地址 * [[Special:MyLanguage/Manual:$wgEnableEmail|$wgEnableEmail]] - Set to true to enable basic email features. * [[Special:MyLanguage/Manual:$wgEnableUserEmail|$wgEnableUserEmail]] - Set to true to enable user-to-user email. * [[Special:MyLanguage/Manual:$wgNoReplyAddress|$wgNoReplyAddress]] - Reply-to address for automatically generated emails. * [[Special:MyLanguage/Manual:$wgPasswordReminderResendTime|$wgPasswordReminderResendTime]] - Minimum time, in hours, which must elapse between password reminder emails. * [[Special:MyLanguage/Manual:$wgPasswordSender|$wgPasswordSender]] - 密码提示电子邮件地址。 * [[Special:MyLanguage/Manual:$wgPasswordSenderName|$wgPasswordSenderName]] - {{TNT|removed-inline|1.23}} 密码提示({{ll|Manual:$wgPasswordSender|$wgPasswordSender}})名称。 * [[Special:MyLanguage/Manual:$wgRequirePasswordforEmailChange|$wgRequirePasswordforEmailChange]] - {{TNT|removed-inline|1.27}} Whether the user must enter their password to change their email address * [[Special:MyLanguage/Manual:$wgSMTP|$wgSMTP]] - For using a direct (authenticated) SMTP server connection. * [[Special:MyLanguage/Manual:$wgSysopEmailBans|$wgSysopEmailBans]] - Allow sysops to ban users from accessing Special:Emailuser. * [[Special:MyLanguage/Manual:$wgUserEmailConfirmationTokenExpiry|$wgUserEmailConfirmationTokenExpiry]] - The time, in seconds, after which an email address confirmation token expires. * [[Special:MyLanguage/Manual:$wgUserEmailUseReplyTo|$wgUserEmailUseReplyTo]] - Set to true to put the sending user's email in a Reply-To header instead of From. {{anchor|Email notification (Enotif) settings}} === 电子邮件通知(Enotif)设置 === :''Actual notifications for each user are defined in the options. You can change defaults with [[Special:MyLanguage/Manual:$wgDefaultUserOptions|$wgDefaultUserOptions]]. * [[Special:MyLanguage/Manual:$wgEnotifFromEditor|$wgEnotifFromEditor]] - Whether to make email notifications appear to come from the user who makes the edit * [[Special:MyLanguage/Manual:$wgEnotifImpersonal|$wgEnotifImpersonal]] - Send a generic mail instead of a personalised mail for each user. * [[Special:MyLanguage/Manual:$wgEnotifMaxRecips|$wgEnotifMaxRecips]] - Maximum number of users to mail at once when using impersonal mail. * [[Special:MyLanguage/Manual:$wgEnotifMinorEdits|$wgEnotifMinorEdits]] - Set to true to allow sending email notification also for edits marked as minor edits * [[Special:MyLanguage/Manual:$wgEnotifRevealEditorAddress|$wgEnotifRevealEditorAddress]] - Set to true to insert the page editor's email address into the email notifications Reply-To address * [[Special:MyLanguage/Manual:$wgEnotifUseJobQ|$wgEnotifUseJobQ]] - 通过{{ll|Manual:Job queue|job queue}}发送邮件。 * [[Special:MyLanguage/Manual:$wgEnotifUseRealName|$wgEnotifUseRealName]] - Use real name instead of username in email "from" field. * [[Special:MyLanguage/Manual:$wgEnotifUserTalk|$wgEnotifUserTalk]] - Set to true to allow the email notification for the own user_talk page * [[Special:MyLanguage/Manual:$wgEnotifWatchlist|$wgEnotifWatchlist]] - Set to true to allow the email notification for watched pages * [[Special:MyLanguage/Manual:$wgUseEnotif|$wgUseEnotif]] - 总体“使用Enotif”设置 * [[Special:MyLanguage/Manual:$wgUsersNotifiedOnAllChanges|$wgUsersNotifiedOnAllChanges]] - Array of usernames who will be sent a notification email for every change which occurs on a wiki. {{anchor|Database settings}} == 数据库设置 == * [[Special:MyLanguage/Manual:$wgAllDBsAreLocalhost|$wgAllDBsAreLocalhost]] - Make all database connections secretly go to localhost. * [[Special:MyLanguage/Manual:$wgContentHandlerUseDB|$wgContentHandlerUseDB]] {{TNT|removed-inline|1.28}} - Whether to use the database fields introduced by the ContentHandler facility * [[Special:MyLanguage/Manual:$wgDBAvgStatusPoll|$wgDBAvgStatusPoll]] {{TNT|removed-inline|1.26}} - Average time between SHOW STATUS queries in overload conditions. * [[Special:MyLanguage/Manual:$wgDBcompress|$wgDBcompress]] - Whether to use compression in DB connection. * [[Special:MyLanguage/Manual:$wgDBerrorLog|$wgDBerrorLog]] - 记载数据库错误的文件。 * [[Special:MyLanguage/Manual:$wgDBname|$wgDBname]] - 数据库名称。 * [[Special:MyLanguage/Manual:$wgDBpassword|$wgDBpassword]] - {{wg|DBuser}}的密码。 * [[Special:MyLanguage/Manual:$wgDBport|$wgDBport]] - 数据库端口。'''只由PostgreSQL和MSSQL使用。''' * [[Special:MyLanguage/Manual:$wgDBprefix|$wgDBprefix]] - 数据表名称前缀。 * [[Special:MyLanguage/Manual:$wgDBserver|$wgDBserver]] - 数据库服务器的主机名或IP地址。 * [[Special:MyLanguage/Manual:$wgDBssl|$wgDBssl]] - 在数据库连接时是否使用SSL。 * [[Special:MyLanguage/Manual:$wgDBtype|$wgDBtype]] - 数据库类型。 * [[Special:MyLanguage/Manual:$wgDBuser|$wgDBuser]] - 数据库用户名。 * [[Special:MyLanguage/Manual:$wgLocalDatabases|$wgLocalDatabases]] - 此网站上的其他wiki,可从单一开发者账户管理。 * [[Special:MyLanguage/Manual:$wgMaxUserDBWriteDuration|$wgMaxUserDBWriteDuration]] - Maximum time a user-generated transaction can spend in writes. * [[Special:MyLanguage/Manual:$wgOldChangeTagsIndex|$wgOldChangeTagsIndex]] - {{TNT|removed-inline|1.22}} 为change_tags指数使用旧名称。 * [[Special:MyLanguage/Manual:$wgSearchType|$wgSearchType]] - 用于wiki的搜索类型。 * [[Special:MyLanguage/Manual:$wgSQLMode|$wgSQLMode]] - SQL模式 {{anchor|LoadBalancer settings}} === 负载均衡设置 === * [[Special:MyLanguage/Manual:$wgDBClusterTimeout|$wgDBClusterTimeout]] - {{TNT|removed-inline|1.24}} 数据库超时。 * [[Special:MyLanguage/Manual:$wgDBservers|$wgDBservers]] - Settings for the database load balancer (database servers and load ratios). * [[Special:MyLanguage/Manual:$wgDefaultExternalStore|$wgDefaultExternalStore]] - 新版本的默认外部存储。 * [[Special:MyLanguage/Manual:$wgLBFactoryConf|$wgLBFactoryConf]] - 负载均衡工厂配置。 * [[Special:MyLanguage/Manual:$wgMasterWaitTimeout|$wgMasterWaitTimeout]] - {{TNT|deprecated-inline|1.24}} How long to wait for a slave to catch up to the master. * [[Special:MyLanguage/Manual:$wgSlaveLagCritical|$wgSlaveLagCritical]] - If lag is higher than this value, show a more obvious warning than <code>{{ll|Manual:$wgSlaveLagWarning|$wgSlaveLagWarning}}</code>. * [[Special:MyLanguage/Manual:$wgSlaveLagWarning|$wgSlaveLagWarning]] - If lag is higher than this value, show a warning in some special pages (like watchlist). {{anchor|MSSQL-specific|MSSQL specific}} === MSSQL相关 === * [[Special:MyLanguage/Manual:$wgDBWindowsAuthentication|$wgDBWindowsAuthentication]] - Whether to use [[w:Integrated Windows Authentication|Integrated Windows Authentication]] rather than the standard {{ll|Manual:$wgDBuser|$wgDBuser}}/{{ll|Manual:$wgDBpassword|$wgDBpassword}} combo. {{anchor|MySQL-specific|MySQL specific}} === MySQL相关 === * [[Special:MyLanguage/Manual:$wgDBmysql5|$wgDBmysql5]] - Set to true to set MySQL connection into UTF-8 encoding (experimental) * [[Special:MyLanguage/Manual:$wgDBTableOptions|$wgDBTableOptions]] - MySQL table options to use during installation or update. * [[Special:MyLanguage/Manual:$wgDBtransactions|$wgDBtransactions]] - {{TNT|removed-inline|1.20}} Set to true if using InnoDB tables. * [[Special:MyLanguage/Manual:$wgExternalServers|$wgExternalServers]] - An array of external MySQL servers. {{anchor|Oracle-specific|Oracle specific}} === Oracle相关 === *[[Special:MyLanguage/Manual:$wgDBOracleDRCP|$wgDBOracleDRCP]] - Enables persistent connection with DRCP on Oracle. {{anchor|PostgreSQL-specific|PostgreSQL specific}} === PostgreSQL相关 === * [[Special:MyLanguage/Manual:$wgDBmwschema|$wgDBmwschema]] - Schema that Postgres stores the MediaWiki tables in. {{anchor|SQLite-specific|SQLite specific}} === SQLite相关 === * [[Special:MyLanguage/Manual:$wgSQLiteDataDir|$wgSQLiteDataDir]] - To override default SQLite data directory. {{anchor|Shared DB settings}} === 共享数据库设置 === * [[Special:MyLanguage/Manual:$wgSharedDB|$wgSharedDB]] - 共享数据库的名称。 * [[Special:MyLanguage/Manual:$wgSharedPrefix|$wgSharedPrefix]] - 用于共享数据库的前缀。 * [[Special:MyLanguage/Manual:$wgSharedTables|$wgSharedTables]] - 在分享数据库中使用的数据表。 * [[Special:MyLanguage/Manual:$wgSharedSchema|$wgSharedSchema]] - The table schema for the shared database. {{anchor|Compressed Storage Support}} === 压缩存储支持 === * [[Special:MyLanguage/Manual:$wgCompressRevisions|$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. * [[Special:MyLanguage/Manual:$wgDisableOutputCompression|$wgDisableOutputCompression]] - Disable output compression (compression is enabled by default if zlib is available). {{anchor|Localization}} == 本地化 == * [[Special:MyLanguage/Manual:$wgBetterDirectionality|$wgBetterDirectionality]] {{TNT|removed-inline|1.23}} - 实验性更佳{{ll|directionality support}}。 * [[Special:MyLanguage/Manual:$wgDisabledVariants|$wgDisabledVariants]] - 为语言变体转换禁用变体。 * [[Special:MyLanguage/Manual:$wgDisableLangConversion|$wgDisableLangConversion]] - 是否启用语言变体转换。 * [[Special:MyLanguage/Manual:$wgDisableTitleConversion|$wgDisableTitleConversion]] - 是否为链接启用语言变体转换。 * [[Special:MyLanguage/Manual:$wgDummyLanguageCodes|$wgDummyLanguageCodes]] {{TNT|deprecated-inline|1.29}} - 不对应实际语言的语言代码列表。 * [[Special:MyLanguage/Manual:$wgEditEncoding|$wgEditEncoding]] {{TNT|removed-inline|1.28}} - 未明确由输出编码转换的字符 * [[Special:MyLanguage/Manual:$wgForceUIMsgAsContentMsg|$wgForceUIMsgAsContentMsg]] - Array of UI messages that should be treated as content messages * [[Special:MyLanguage/Manual:$wgInterwikiMagic|$wgInterwikiMagic]] - Treat language links as magic connectors, not inline links. * [[Special:MyLanguage/Manual:$wgLanguageCode|$wgLanguageCode]] - 网站语言代码。应为./languages/messages/Messages(.*).php文件之一。 * [[Special:MyLanguage/Manual:$wgLegacyEncoding|$wgLegacyEncoding]] - 当加载未通过utf-8标记的旧版本时,将其设置为例如“ISO-8859-1”来处理字符集转换。 * [[Special:MyLanguage/Manual:$wgLoginLanguageSelector|$wgLoginLanguageSelector]] - 在用户登录和注册的表单中显示一个语言选择条。 * [[Special:MyLanguage/Manual:$wgMsgCacheExpiry|$wgMsgCacheExpiry]] - When a message in cache expires (in seconds). * [[Special:MyLanguage/Manual:$wgUseDatabaseMessages|$wgUseDatabaseMessages]] - 使用MediaWiki:名字空间的翻译。 * [[Special:MyLanguage/Manual:$wgUseDynamicDates|$wgUseDynamicDates]] {{TNT|removed-inline|1.21}} - 启用以允许在页面文本中重写日期。'''对大多数语言而言格式不会正确。''' * {{Manual|$wgExtraLanguageCodes}} - List of mappings from one language code to another, to override built-in mappings {{anchor|Timezone settings}} === 时区设置 === * [[Special:MyLanguage/Manual:$wgLocaltimezone|$wgLocaltimezone]] - Fake out the timezone that the server thinks it's in. * [[Special:MyLanguage/Manual:$wgLocalTZoffset|$wgLocalTZoffset]] - Add a distance to the timezone of the server. * [[Special:MyLanguage/Manual:$wgDBerrorLogTZ|$wgDBerrorLogTZ]] - 在错误日志中使用的时区。 {{anchor|Language-specific}} === 语言特定 === ;英语 * [[Special:MyLanguage/Manual:$wgAmericanDates|$wgAmericanDates]] - Enable for English module to print dates as eg 'May 12' instead of '12 May'. ;阿拉伯语/印地语 * [[Special:MyLanguage/Manual:$wgTranslateNumerals|$wgTranslateNumerals]] - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface. {{anchor|Debug/logging}} == 调试/日志记录 == :参见:[[Special:MyLanguage/Manual:How to debug|手册:如何调试]] * [[Special:MyLanguage/Manual:$wgAggregateStatsID|$wgAggregateStatsID]] - Allows statistics to be aggregated over more than one wiki when using udp logging. * [[Special:MyLanguage/Manual:$wgDebugAPI|$wgDebugAPI]] - Enable API debugging by removing some restrictions like POST-only * [[Special:MyLanguage/Manual:$wgDebugComments|$wgDebugComments]] - Include portions of log output in page HTML comment. * [[Special:MyLanguage/Manual:$wgDebugDBTransactions|$wgDebugDBTransactions]] {{TNT|removed-inline|1.27}} - Trace lifecycle of the database transaction (opening, commit, rollback) * [[Special:MyLanguage/Manual:$wgDebugDumpSql|$wgDebugDumpSql]] - Dump SQL queries to debug output * [[Special:MyLanguage/Manual:$wgDebugDumpSqlLength|$wgDebugDumpSqlLength]] {{TNT|removed-inline|1.27}} - Length limit for dumping queries * [[Special:MyLanguage/Manual:$wgDebugLogFile|$wgDebugLogFile]] - The file name of the debug log, or empty if disabled. wfDebug() appends to this file. * [[Special:MyLanguage/Manual:$wgDebugLogGroups|$wgDebugLogGroups]] - Selective debug logs on a group basis. * [[Special:MyLanguage/Manual:$wgDebugLogPrefix|$wgDebugLogPrefix]] - 用于调试日志行的前缀 * [[Special:MyLanguage/Manual:$wgDebugPrintHttpHeaders|$wgDebugPrintHttpHeaders]] - Print HTTP headers for every request in the debug information. * [[Special:MyLanguage/Manual:$wgDebugRawPage|$wgDebugRawPage]] - Avoid overlapping debug entries by leaving out CSS. * [[Special:MyLanguage/Manual:$wgDebugRedirects|$wgDebugRedirects]] - Displays redirect location instead of actually redirecting to the target URL * [[Special:MyLanguage/Manual:$wgDebugTimestamps|$wgDebugTimestamps]] - Prefix debug messages with relative timestamp. * [[Special:MyLanguage/Manual:$wgDebugToolbar|$wgDebugToolbar]] - 显示调试工具栏。 * [[Special:MyLanguage/Manual:$wgDeprecationReleaseLimit|$wgDeprecationReleaseLimit]] - Release limitation to wfDeprecated warnings. * [[Special:MyLanguage/Manual:$wgDevelopmentWarnings|$wgDevelopmentWarnings]] - Whether to throw PHP notices for some possible error conditions and for deprecated functions. * [[Special:MyLanguage/Manual:$wgLogExceptionBacktrace|$wgLogExceptionBacktrace]] - Whether to send the exception backtrace to the error log. * [[Special:MyLanguage/Manual:$wgMWLoggerDefaultSpi|$wgMWLoggerDefaultSpi]] - Default service provider for creating MWLogger instances. * [[Special:MyLanguage/Manual:$wgResourceLoaderDebug|$wgResourceLoaderDebug]] - See also {{ll|ResourceLoader/Features#Debug mode}} for more about what debug does. * [[Special:MyLanguage/Manual:$wgOverrideHostname|$wgOverrideHostname]] - Override server hostname detection with a hardcoded value. * [[Special:MyLanguage/Manual:$wgShowDBErrorBacktrace|$wgShowDBErrorBacktrace]] - If true, show a backtrace for database errors. * [[Special:MyLanguage/Manual:$wgShowDebug|$wgShowDebug]] - Display debug data at the bottom of the main content area. * [[Special:MyLanguage/Manual:$wgShowSQLErrors|$wgShowSQLErrors]] - Whether to show "We're sorry, but there has been a database error." pages. * [[Special:MyLanguage/Manual:$wgShowExceptionDetails|$wgShowExceptionDetails]] - If set to true, uncaught exceptions will print a complete stack trace to output. * [[Special:MyLanguage/Manual:$wgStatsMethod|$wgStatsMethod]] {{TNT|removed-inline|1.27}} - Destination for wfIncrStats() data. {{anchor|Profiling}} === 性能分析 === * [[Special:MyLanguage/Manual:$wgDebugFunctionEntry|$wgDebugFunctionEntry]] {{TNT|removed-inline|1.25}} - Output debug message on every wfProfileIn/wfProfileOut * [[Special:MyLanguage/Manual:$wgDebugProfiling|$wgDebugProfiling]] {{TNT|removed-inline|1.23}} - Detects non-matching wfProfileIn/wfProfileOut calls * [[Special:MyLanguage/Manual:$wgProfiler|$wgProfiler]] - * [[Special:MyLanguage/Manual:$wgProfileCallTree|$wgProfileCallTree]] {{TNT|removed-inline|1.27}} - If true, print a raw call tree instead of per-function report * [[Special:MyLanguage/Manual:$wgProfileLimit|$wgProfileLimit]] {{TNT|deprecated-inline|1.25}} - Only record profiling info for pages that took longer than this * [[Special:MyLanguage/Manual:$wgProfileOnly|$wgProfileOnly]] {{TNT|deprecated-inline|1.23}} - Don't put non-profiling info into log file * [[Special:MyLanguage/Manual:$wgProfilePerHost|$wgProfilePerHost]] {{TNT|removed-inline|1.27}} - Should application server host be put into profiling table? * [[Special:MyLanguage/Manual:$wgProfileToDatabase|$wgProfileToDatabase]] {{TNT|removed-inline|1.23}} - Log sums from profiling into profiling table in db. * [[Special:MyLanguage/Manual:$wgUDPProfilerHost|$wgUDPProfilerHost]] {{TNT|removed-inline|1.27}} - UDP分析器的主机。 * [[Special:MyLanguage/Manual:$wgUDPProfilerPort|$wgUDPProfilerPort]] {{TNT|removed-inline|1.27}} - UDP分析器的端口。 {{anchor|Site customization}} == 网站个性化 == * [[Special:MyLanguage/Manual:$wgBreakFrames|$wgBreakFrames]] - Break out of framesets. This can be used to prevent external sites from framing your site. * [[Special:MyLanguage/Manual:$wgCanonicalLanguageLinks|$wgCanonicalLanguageLinks]] {{TNT|removed-inline|1.24}} - Whether to enable canonical language links in meta data. * [[Special:MyLanguage/Manual:$wgCapitalLinks|$wgCapitalLinks]] - Set this to false to avoid forcing the first letter of links to capitals. * [[Special:MyLanguage/Manual:$wgCapitalLinkOverrides|$wgCapitalLinkOverrides]] - 用于{{ll|Manual:$wgCapitalLinks|$wgCapitalLinks}}的按名字空间配置 * [[Special:MyLanguage/Manual:$wgDefaultLanguageVariant|$wgDefaultLanguageVariant]] - Default variant code, if false, the default will be the language code. * [[Special:MyLanguage/Manual:$wgEditPageFrameOptions|$wgEditPageFrameOptions]] - Control framing of wiki pages globally. * [[Special:MyLanguage/Manual:$wgEnableNewpagesUserFilter|$wgEnableNewpagesUserFilter]] {{TNT|removed-inline|1.24}} - 在Special:Newpages中启用用户搜索。 * [[Special:MyLanguage/Manual:$wgExtraLanguageNames|$wgExtraLanguageNames]] - List of language names or overrides for default names in Names.php. * [[Special:MyLanguage/Manual:$wgExtraRandompageSQL|$wgExtraRandompageSQL]] {{TNT|removed-inline|1.19}} - Special:Randompage的过滤器。WHERE子句的一部分。 * [[Special:MyLanguage/Manual:$wgExtraSubtitle|$wgExtraSubtitle]] {{TNT|removed-inline|1.24}} - The subtitle to appear under every title. * [[Special:MyLanguage/Manual:$wgHideInterlanguageLinks|$wgHideInterlanguageLinks]] - 从边栏隐藏跨语言链接。 * [[Special:MyLanguage/Manual:$wgIllegalFileChars|$wgIllegalFileChars]] - Override the default list of illegal characters in file names. * [[Special:MyLanguage/Manual:$wgLegalTitleChars|$wgLegalTitleChars]] - Override default list of illegal characters in page titles. * [[Special:MyLanguage/Manual:$wgMaxArticleSize|$wgMaxArticleSize]] - Maximum article size in kilobytes. * [[Special:MyLanguage/Manual:$wgMaxRedirectLinksRetrieved|$wgMaxRedirectLinksRetrieved]] - Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination. * [[Special:MyLanguage/Manual:$wgMaxRedirects|$wgMaxRedirects]] - Max number of redirects to follow when resolving redirects. * [[Special:MyLanguage/Manual:$wgNoFollowDomainExceptions|$wgNoFollowDomainExceptions]] - External links to these domain names (or any subdomains) will not be set to <code>rel="nofollow"</code> * [[Special:MyLanguage/Manual:$wgNoFollowLinks|$wgNoFollowLinks]] - If true, external URL links in wiki text will be given the <code>rel="nofollow"</code> attribute. * [[Special:MyLanguage/Manual:$wgPageShowWatchingUsers|$wgPageShowWatchingUsers]] {{TNT|removed-inline|1.25}} - Show watching users in Page views. * [[Special:MyLanguage/Manual:$wgRestrictionLevels|$wgRestrictionLevels]] - Set of permission keys that can be selected on the 'page protection' page. * [[Special:MyLanguage/Manual:$wgSiteNotice|$wgSiteNotice]] - 在每个页面的顶部显示通告。 * [[Special:MyLanguage/Manual:$wgSiteSupportPage|$wgSiteSupportPage]] - 可供用户捐款的页面。 * [[Special:MyLanguage/Manual:$wgStyleVersion|$wgStyleVersion]] - Appended in the query string of static CSS and JS to clear client side cache when changing this. * [[Special:MyLanguage/Manual:$wgSiteTypes|$wgSiteTypes]] - Register handlers for specific types of sites. * [[Special:MyLanguage/Manual:$wgUniversalEditButton|$wgUniversalEditButton]] - 为受支持的浏览器启用[http://universaleditbutton.org UniversalEditButton] * [[Special:MyLanguage/Manual:$wgUrlProtocols|$wgUrlProtocols]] - Defines the protocols which are supported and translated in HTML by the MediaWiki parser. * [[Special:MyLanguage/Manual:$wgUseExternalEditor|$wgUseExternalEditor]] {{TNT|removed-inline|1.22}} - Activate external editor interface for files and pages. {{anchor|Ajax}} === Ajax === * [[Special:MyLanguage/Manual:$wgAjaxExportList|$wgAjaxExportList]] {{TNT|deprecated-inline|1.27}} - List of functions in <code>AjaxFunctions.php</code> that are callable via <code>{{ll|Manual:Parameters to index.php|action=ajax}}</code> * [[Special:MyLanguage/Manual:$wgAjaxUploadDestCheck|$wgAjaxUploadDestCheck]] - Enable AJAX check for file overwrite, pre-upload. * [[Special:MyLanguage/Manual:$wgAjaxWatch|$wgAjaxWatch]] {{TNT|removed-inline|1.27}} - Enable watching/unwatching pages using AJAX. * [[Special:MyLanguage/Manual:$wgUseAjax|$wgUseAjax]] - 启用AJAX功能的使用 {{anchor|Frontend}} === 前端 === * [[Special:MyLanguage/Manual:$wgAllowSiteCSSOnRestrictedPages|$wgAllowSiteCSSOnRestrictedPages]] - Allow site-wide CSS on restricted special pages. * [[Special:MyLanguage/Manual:$wgAllowUserCss|$wgAllowUserCss]] - Allow user Cascading Style Sheets (CSS) * [[Special:MyLanguage/Manual:$wgAllowUserJs|$wgAllowUserJs]] - 允许用户Javascript页面 * [[Special:MyLanguage/Manual:$wgEnableJavaScriptTest|$wgEnableJavaScriptTest]] - Allows running of [[Special:MyLanguage/Manual:JavaScript unit testing |javascript test suites]] via Special:JavaScriptTest (such as QUnit). * [[Special:MyLanguage/Manual:$wgForcedRawSMaxage|$wgForcedRawSMaxage]] - Default maximum age for raw CSS/JS accesses. * [[Special:MyLanguage/Manual:$wgHandheldForIPhone|$wgHandheldForIPhone]] {{TNT|removed-inline|1.22}}, If set, 'screen' and 'handheld' media also apply to the iPhone/iPod Touch Mobile Safari. * [[Special:MyLanguage/Manual:$wgHandheldStyle|$wgHandheldStyle]] {{TNT|removed-inline|1.22}}, 用于media="handheld"的样式。 * [[Special:MyLanguage/Manual:$wgIncludeLegacyJavaScript|$wgIncludeLegacyJavaScript]] {{TNT|deprecated-inline|1.26}} - Whether to include the mediawiki.legacy JS library (old wikibits.js), and its dependencies. * [[Special:MyLanguage/Manual:$wgPreloadJavaScriptMwUtil|$wgPreloadJavaScriptMwUtil]] {{TNT|removed-inline|1.27}} - Whether to preload the mediawiki.util module as blocking module in the top queue. * [[Special:MyLanguage/Manual:$wgJavaScriptTestConfig|$wgJavaScriptTestConfig]] {{TNT|removed-inline|1.25}} - 用于javascript测试的配置。 * [[Special:MyLanguage/Manual:$wgLegacyJavaScriptGlobals|$wgLegacyJavaScriptGlobals]] - Whether or not to assign configuration variables to the global window object. * [[Special:MyLanguage/Manual:$wgUseSiteCss|$wgUseSiteCss]] - 使用网站的层叠样式表(CSS)。 * [[Special:MyLanguage/Manual:$wgUseSiteJs|$wgUseSiteJs]] - 使用网站的Javascript页面。 {{anchor|Resource loader}} === 资源加载器 === :''See [[Special:MyLanguage/ResourceLoader|ResourceLoader]] for more information.'' * [[Special:MyLanguage/Manual:$wgResourceBasePath|$wgResourceBasePath]] - Default 'remoteBasePath' value for resource loader modules. * [[Special:MyLanguage/Manual:$wgResourceLoaderDebug|$wgResourceLoaderDebug]] - The default debug mode (on/off) for of ResourceLoader requests. * [[Special:MyLanguage/Manual:$wgResourceLoaderInlinePrivateModules|$wgResourceLoaderInlinePrivateModules]] {{TNT|removed-inline|1.19}} - Whether to embed private modules inline with HTML output or to bypass caching and check the user parameter against. * [[Special:MyLanguage/Manual:$wgResourceLoaderLESSVars|$wgResourceLoaderLESSVars]] {{TNT|deprecated-inline|1.30}} - 全局LESS变量。 * [[Special:MyLanguage/Manual:$wgResourceLoaderMaxage|$wgResourceLoaderMaxage]] - Maximum time in seconds to cache resources served by the resource loader. * [[Special:MyLanguage/Manual:$wgResourceLoaderMaxQueryLength|$wgResourceLoaderMaxQueryLength]] - Maximum query string length for resource loader requests. * [[Special:MyLanguage/Manual:$wgResourceLoaderMinifierMaxLineLength|$wgResourceLoaderMinifierMaxLineLength]] - Maximum line length when minifying JavaScript. * [[Special:MyLanguage/Manual:$wgResourceLoaderMinifierStatementsOnOwnLine|$wgResourceLoaderMinifierStatementsOnOwnLine]] {{TNT|removed-inline|1.27}} - Put each statement on its own line when minifying JavaScript. * [[Special:MyLanguage/Manual:$wgResourceLoaderSources|$wgResourceLoaderSources]] - Foreign module sources registry. * [[Special:MyLanguage/Manual:$wgResourceLoaderStorageVersion|$wgResourceLoaderStorageVersion]] - Cache version for client-side ResourceLoader module storage. * [[Special:MyLanguage/Manual:$wgResourceLoaderUseESI|$wgResourceLoaderUseESI]] - Enable embedding of certain resources using Edge Side Includes. * [[Special:MyLanguage/Manual:$wgResourceLoaderValidateJS|$wgResourceLoaderValidateJS]] - Whether to parse JavaScript module prior to minification to validate them. * [[Special:MyLanguage/Manual:$wgResourceLoaderValidateStaticJS|$wgResourceLoaderValidateStaticJS]] - Whether to parse statically-sourced (file-backed) JavaScript resources prior to minification to validate them. * [[Special:MyLanguage/Manual:$wgResourceLoaderStorageEnabled|$wgResourceLoaderStorageEnabled]] - Cache modules in localStorage on supporting browsers. * [[Special:MyLanguage/Manual:$wgResourceModules|$wgResourceModules]] - Array of all extra defined modules that can later be loaded during the output. {{anchor|Namespaces}} === 名字空间 === * [[Special:MyLanguage/Manual:$wgContentNamespaces|$wgContentNamespaces]] - 包含真实内容或文章的命名空间。 * [[Special:MyLanguage/Manual:$wgExtraNamespaces|$wgExtraNamespaces]] - 额外的名字空间。 * [[Special:MyLanguage/Manual:$wgExtraGenderNamespaces|$wgExtraGenderNamespaces]] - Same as $wgExtraNamespaces, but for namespaces with gender distinction. * [[Special:MyLanguage/Manual:$wgExtraSignatureNamespaces|$wgExtraSignatureNamespaces]] - Controls in which subject (non-talk) namespaces the "Signature" button on the edit toolbar will be displayed. * [[Special:MyLanguage/Manual:$wgMetaNamespace|$wgMetaNamespace]] - The name used for the meta-namespace. * [[Special:MyLanguage/Manual:$wgMetaNamespaceTalk|$wgMetaNamespaceTalk]] - The name used for the meta-namespace talk pages. * [[Special:MyLanguage/Manual:$wgNamespaceAliases|$wgNamespaceAliases]] - 用于额外名字空间的别名。 * [[Special:MyLanguage/Manual:$wgNamespaceContentModels|$wgNamespaceContentModels]] - Content types defined for a given namespace. * [[Special:MyLanguage/Manual:$wgNamespaceProtection|$wgNamespaceProtection]] - Default protection levels for namespaces. * [[Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault|$wgNamespacesToBeSearchedDefault]] - Which namespaces should be searched? * [[Special:MyLanguage/Manual:$wgNamespacesToBeSearchedHelp|$wgNamespacesToBeSearchedHelp]] {{TNT|removed-inline|1.24}} - Namespaces to be searched when user clicks the "Help" tab on Special:Search. * [[Special:MyLanguage/Manual:$wgNamespacesWithSubpages|$wgNamespacesWithSubpages]] - 哪些名字空间应该支持子页面功能? * [[Special:MyLanguage/Manual:$wgNoFollowNsExceptions|$wgNoFollowNsExceptions]] - Namespaces where the nofollow setting ({{ll|Manual:$wgNoFollowLinks|$wgNoFollowLinks}}) is overridden. * [[Special:MyLanguage/Manual:$wgNonincludableNamespaces|$wgNonincludableNamespaces]] - Pages in namespaces in this array can not be used as templates. * [[Special:MyLanguage/Manual:$wgPreviewOnOpenNamespaces|$wgPreviewOnOpenNamespaces]] - Namespaces that have special treatment where they should be preview-on-open. * [[Special:MyLanguage/Manual:$wgSitemapNamespaces|$wgSitemapNamespaces]] - Array of namespaces to generate a sitemap or false for all namespaces. * [[Special:MyLanguage/Manual:$wgSitemapNamespacesPriorities|$wgSitemapNamespacesPriorities]] - Custom namespace priorities for sitemaps. {{anchor|Output}} === 输出 === * [[Special:MyLanguage/Manual:$wgAllowMicrodataAttributes|$wgAllowMicrodataAttributes]] {{TNT|removed-inline|1.27}} - Enable HTML 5 microdata attributes for use in wikitext, if $wgHtml5 is also true. * [[Special:MyLanguage/Manual:$wgAllowRdfaAttributes|$wgAllowRdfaAttributes]] {{TNT|removed-inline|1.27}} - Enable RDFa attributes for use in wikitext. * [[Special:MyLanguage/Manual:$wgCleanupPresentationalAttributes|$wgCleanupPresentationalAttributes]] {{TNT|removed-inline|1.20.1}} - Whether to put as much as possible presentational HTML attributes in CSS. * [[Special:MyLanguage/Manual:$wgEnableTooltipsAndAccesskeys|$wgEnableTooltipsAndAccesskeys]] {{TNT|removed-inline|1.19}} - Whether to enable application of access keys and tooltips * [[Special:MyLanguage/Manual:$wgHtml5|$wgHtml5]] {{TNT|removed-inline|1.22}} - Whether to output an HTML 5 doctype. See {{ll|HTML5}}. * [[Special:MyLanguage/Manual:$wgHtml5Version|$wgHtml5Version]] - Defines the value of the version attribute in the <html> tag, if any. * [[Special:MyLanguage/Manual:$wgWellFormedXml|$wgWellFormedXml]] {{TNT|removed-inline|1.27}} - Whether to try to make our HTML output well-formed XML. * [[Special:MyLanguage/Manual:$wgMimeType|$wgMimeType]] - The type to send in the <code>Content-Type</code> header. * [[Special:MyLanguage/Manual:$wgMangleFlashPolicy|$wgMangleFlashPolicy]] - Whether to mangle any cross-domain-policy (Adobe cross-domain policy) tags, to prevent XSS attacks. * [[Special:MyLanguage/Manual:$wgSend404Code|$wgSend404Code]] - Send 404 HTTP status for not found pages. * [[Special:MyLanguage/Manual:$wgEnableCanonicalServerLink|$wgEnableCanonicalServerLink]] - Output a <link rel="canonical"> tag on every page indicating the canonical server which should be used, i.e. $wgServer or $wgCanonicalServer. * [[Special:MyLanguage/Manual:$wgUseMediaWikiUIEverywhere|$wgUseMediaWikiUIEverywhere]] - Applies MediaWiki UI wherever it can be supported. * [[Special:MyLanguage/Manual:$wgHTMLFormAllowTableFormat|$wgHTMLFormAllowTableFormat]] - Allow form components to render tables. * [[Special:MyLanguage/Manual:$wgXhtmlNamespaces|$wgXhtmlNamespaces]] - Permit other namespaces in addition to the w3.org default. The following settings are only used if [[Special:MyLanguage/Manual:$wgHtml5|$wgHtml5]] is set to "false" {{TNT|removed-inline|1.22}}: * [[Special:MyLanguage/Manual:$wgDocType|$wgDocType]] {{TNT|removed-inline|1.22}} - The doc type to use in the <code><!DOCTYPE !></code> declaration. * [[Special:MyLanguage/Manual:$wgDTD|$wgDTD]] {{TNT|removed-inline|1.22}} - Specifies the DTD in the DOCTYPE declaration for page output. * [[Special:MyLanguage/Manual:$wgXhtmlDefaultNamespace|$wgXhtmlDefaultNamespace]] {{TNT|removed-inline|1.22}} - 默认XHTML名字空间 {{anchor|Robot policies}} === 机器人方针 === * [[Special:MyLanguage/Manual:$wgArticleRobotPolicies|$wgArticleRobotPolicies]] - Allow customisation of robot policies on a per-article basis. * [[Special:MyLanguage/Manual:$wgDefaultRobotPolicy|$wgDefaultRobotPolicy]] - Default robot exclusion policy for the wiki. * [[Special:MyLanguage/Manual:$wgExemptFromUserRobotsControl|$wgExemptFromUserRobotsControl]] - An array of namespace keys in which the <nowiki>__INDEX__/__NOINDEX__</nowiki> magic words will not function. * [[Special:MyLanguage/Manual:$wgNamespaceRobotPolicies|$wgNamespaceRobotPolicies]] - Allow customisation of robot policies on a per-namespace basis. {{anchor|Mobile support}} === 移动支持 === * [[Special:MyLanguage/Manual:$wgDeviceDetectionClass|$wgDeviceDetectionClass]] {{TNT|removed-inline|1.21}} - Name of the class used for mobile device detection. {{anchor|Site Statistics}} == 网站统计 == * [[Special:MyLanguage/Manual:$wgArticleCountMethod|$wgArticleCountMethod]] - Method used to determine if a page in a content namespace should be counted as a valid article. * [[Special:MyLanguage/Manual:$wgContentNamespaces|$wgContentNamespaces]] - Namespaces which are considered to contain real content, or articles (affects [[Special:Random]] and [[Special:Statistics]]). * [[Special:MyLanguage/Manual:$wgCountCategorizedImagesAsUsed|$wgCountCategorizedImagesAsUsed]] - On [[Special:Unusedimages]], consider images used if they are put into a category. * [[Special:MyLanguage/Manual:$wgDisableCounters|$wgDisableCounters]] {{TNT|removed-inline|1.25}} - Disable view counter shown in the footer of an article/page as: ''"This page has been accessed X times"'' * [[Special:MyLanguage/Manual:$wgHitcounterUpdateFreq|$wgHitcounterUpdateFreq]] {{TNT|removed-inline|1.25}} - Sets how often page counters should be updated. * [[Special:MyLanguage/Manual:$wgStatsdSamplingRates|$wgStatsdSamplingRates]] - Sampling rate for statsd metrics as an associative array of patterns and rates * [[Special:MyLanguage/Manual:$wgUseCommaCount|$wgUseCommaCount]] {{TNT|removed-inline|1.24}} - Specifies the criteria used to define a 'valid article' when counting. * [[Special:MyLanguage/Manual:$wgSiteStatsAsyncFactor|$wgSiteStatsAsyncFactor]] - Sets how often site statistics should be updated. * [[Special:MyLanguage/Manual:$wgWantedPagesThreshold|$wgWantedPagesThreshold]] - Minimum number of links required before a page is listed on [[Special:Wantedpages]] {{anchor|Skins}} == 皮肤 == * [[Special:MyLanguage/Manual:$wgDefaultSkin|$wgDefaultSkin]] - 默认皮肤。 * [[Special:MyLanguage/Manual:$wgFallbackSkin|$wgFallbackSkin]] - Fallback skin used when the skin defined by $wgDefaultSkin can't be found. * [[Special:MyLanguage/Manual:$wgFooterIcons|$wgFooterIcons]] - Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code. * [[Special:MyLanguage/Manual:$wgLocalStylePath|$wgLocalStylePath]] - Same as {{ll|Manual:$wgStylePath|$wgStylePath}}, but shouldn't point to an external domain. * [[Special:MyLanguage/Manual:$wgSkipSkin|$wgSkipSkin]] {{TNT|deprecated-inline|1.23}} - Specify the name of a skin that should not be presented in the list of available skins. * [[Special:MyLanguage/Manual:$wgSkipSkins|$wgSkipSkins]] - More of the same as {{ll|#$wgSkipSkin|$wgSkipSkin}}. * [[Special:MyLanguage/Manual:$wgStyleDirectory|$wgStyleDirectory]] - The file system path to the skins directory. * [[Special:MyLanguage/Manual:$wgStylePath|$wgStylePath]] - The URL of the skins directory. * [[Special:MyLanguage/Manual:$wgUseCombinedLoginLink|$wgUseCombinedLoginLink]] - Login / create account link behavior when it's possible for anonymous users to create an account. * [[Special:MyLanguage/Manual:$wgValidSkinNames|$wgValidSkinNames]] - 有效皮肤名称列表。 * [[Special:MyLanguage/Manual:$wgVectorUseSimpleSearch|$wgVectorUseSimpleSearch]] - Search form behavior for Vector skin only. * [[Special:MyLanguage/Manual:$wgVectorUseIconWatch|$wgVectorUseIconWatch]] - Watch and unwatch as an icon rather than a link for Vector skin only. {{anchor|Category}} == 分类 == * [[Special:MyLanguage/Manual:$wgCategoryCollation|$wgCategoryCollation]] - A version indicator for collations that will be stored in cl_collation for all new rows. * [[Special:MyLanguage/Manual:$wgCategoryMagicGallery|$wgCategoryMagicGallery]] - On category pages, show thumbnail gallery for images belonging to that category instead of listing them as articles. * [[Special:MyLanguage/Manual:$wgCategoryPagingLimit|$wgCategoryPagingLimit]] - Paging limit for items in categories. * [[Special:MyLanguage/Manual:$wgUseCategoryBrowser|$wgUseCategoryBrowser]] - Enable DMOZ-like category tree at the bottom of pages * [[Special:MyLanguage/Manual:$wgTrackingCategories|$wgTrackingCategories]] - List of messages representing [[Special:MyLanguage/help:tracking categories|tracking categories]] {{anchor|Cache}} == 缓存 == {{TNT|Main|Manual:Caching}} * [[Special:MyLanguage/Manual:$wgCacheDirectory|$wgCacheDirectory]] - Directory for caching data in the local filesystem. * [[Special:MyLanguage/Manual:$wgCacheEpoch|$wgCacheEpoch]] - Set this to current time to invalidate all prior cached pages. * [[Special:MyLanguage/Manual:$wgCachePrefix|$wgCachePrefix]] - Overwrite the caching key prefix with custom value. * [[Special:MyLanguage/Manual:$wgClockSkewFudge|$wgClockSkewFudge]] - Helps avoid cache problems due to timer resolution. * [[Special:MyLanguage/Manual:$wgDBAhandler|$wgDBAhandler]] {{TNT|Removed-inline|1.23}} - Selects which DBA handler to use. * [[Special:MyLanguage/Manual:$wgInvalidateCacheOnLocalSettingsChange|$wgInvalidateCacheOnLocalSettingsChange]] - Setting this to true will invalidate all cached pages whenever LocalSettings.php is changed. * [[Special:MyLanguage/Manual:$wgLanguageConverterCacheType|$wgLanguageConverterCacheType]] - 存储语言转换表的缓存类型。 * [[Special:MyLanguage/Manual:$wgMainCacheType|$wgMainCacheType]] - 替换{{ll|Manual:$wgUseMemCached|$wgUseMemCached}}。 * [[Special:MyLanguage/Manual:$wgObjectCaches|$wgObjectCaches]] - 高级对象缓存配置。 * [[Special:MyLanguage/Manual:$wgObjectCacheSessionExpiry|$wgObjectCacheSessionExpiry]] - The expiry time to use for session storage when {{ll|Manual:$wgSessionsInObjectCache|$wgSessionsInObjectCache}} is enabled, in seconds. * [[Special:MyLanguage/Manual:$wgQueryCacheLimit|$wgQueryCacheLimit]] - Number of rows to cache in 'querycache' table when miser mode is on. * [[Special:MyLanguage/Manual:$wgRevisionCacheExpiry|$wgRevisionCacheExpiry]] - Cache extracted revision text in MemCached. * [[Special:MyLanguage/Manual:$wgThumbnailEpoch|$wgThumbnailEpoch]] - If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if the file didn't already exist. * [[Special:MyLanguage/Manual:$wgUseETag|$wgUseETag]] {{TNT|Removed-inline|1.28}} - Whether MediaWiki should send an ETag header. * [[Special:MyLanguage/Manual:$wgUseGzip|$wgUseGzip]] - 使用GZip存储缓存页面。 * [[Special:MyLanguage/Manual:$wgUpdateRowsPerQuery|$wgUpdateRowsPerQuery]] - Number of rows to update per query. * [[Special:MyLanguage/Manual:$wgSessionsInMemcached|$wgSessionsInMemcached]] {{TNT|deprecated-inline|1.20}} - Store session data in the object cache, rather than on the filesystem. * [[Special:MyLanguage/Manual:$wgSessionCacheType|$wgSessionCacheType]] - 存储会话数据的缓存类型。 * [[Special:MyLanguage/Manual:$wgSessionsInObjectCache|$wgSessionsInObjectCache]] {{TNT|deprecated-inline|1.27}} - 是否在对象缓存中存储会话。 :参见:[[#Interwiki|跨wiki]]一栏获取跨wiki缓存设置。 {{anchor|Client side caching}} === 客户端缓存 === * [[Special:MyLanguage/Manual:$wgCachePages|$wgCachePages]] - Allow client-side caching of pages {{anchor|File Cache}} === 文件缓存 === Settings for Server side file caching. * [[Special:MyLanguage/Manual:$wgFileCacheDepth|$wgFileCacheDepth]] - Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory. * [[Special:MyLanguage/Manual:$wgFileCacheDirectory|$wgFileCacheDirectory]] - Directory where the cached page will be saved when using server-side caching. * [[Special:MyLanguage/Manual:$wgUseFileCache|$wgUseFileCache]] - This will cache static pages for non-logged-in users to reduce database traffic on public sites. {{anchor|Message Cache}} === 消息缓存 === * [[Special:MyLanguage/Manual:$wgAdaptiveMessageCache|$wgAdaptiveMessageCache]] - Instead of caching everything, keep track which messages are requested and load only most used messages. * [[Special:MyLanguage/Manual:$wgLocalisationCacheConf|$wgLocalisationCacheConf]] - Localisation cache configuration. * [[Special:MyLanguage/Manual:$wgLocalMessageCacheSerialized|$wgLocalMessageCacheSerialized]] {{TNT|removed-inline|1.22}} - Defines format of local cache. * [[Special:MyLanguage/Manual:$wgMaxMsgCacheEntrySize|$wgMaxMsgCacheEntrySize]] - Maximum entry size in the message cache, in bytes. * [[Special:MyLanguage/Manual:$wgMessageCacheType|$wgMessageCacheType]] - 消息缓存设置。 * [[Special:MyLanguage/Manual:$wgUseLocalMessageCache|$wgUseLocalMessageCache]] - Make a local copy of the message cache, in addition to memcached {{anchor|Sidebar Cache}} === 边栏缓存 === * [[Special:MyLanguage/Manual:$wgEnableSidebarCache|$wgEnableSidebarCache]] - If true, cache the sidebar navigation links. * [[Special:MyLanguage/Manual:$wgSidebarCacheExpiry|$wgSidebarCacheExpiry]] - Expiry time for the sidebar cache. {{anchor|Parser Cache}} === 解析器缓存 === * [[Special:MyLanguage/Manual:$wgEnableParserCache|$wgEnableParserCache]] {{TNT|Deprecated-inline|1.26}} - 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. * [[Special:MyLanguage/Manual:$wgRenderHashAppend|$wgRenderHashAppend]] - Append a configured value to the parser cache and the sitenotice cache keys. * [[Special:MyLanguage/Manual:$wgParserCacheExpireTime|$wgParserCacheExpireTime]] - Expiration time (in seconds) of cached parser information * [[Special:MyLanguage/Manual:$wgParserCacheType|$wgParserCacheType]] - 解析器缓存设置。 {{anchor|Memcached settings}} === 高速缓存设置 === Settings for configuring the [[Special:MyLanguage/Memcached|Memcached]] memory-based object store (if you are using it) {{git file|file=docs/memcached.txt}} has more details. * [[Special:MyLanguage/Manual:$wgMemCachedDebug|$wgMemCachedDebug]] - Will be set to false in Setup.php, if the server isn't working. * [[Special:MyLanguage/Manual:$wgMemCachedPersistent|$wgMemCachedPersistent]] - Whether to use persistent memcached connections. * [[Special:MyLanguage/Manual:$wgMemCachedServers|$wgMemCachedServers]] - Memcached 服务器的数组。 * [[Special:MyLanguage/Manual:$wgMemCachedTimeout|$wgMemCachedTimeout]] - Server connection timeout in microseconds {{anchor|Interwiki}} == 跨wiki == * [[Special:MyLanguage/Manual:$wgDisableHardRedirects|$wgDisableHardRedirects]] - Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link. * [[Special:MyLanguage/Manual:$wgEnableScaryTranscluding|$wgEnableScaryTranscluding]] - Enable "scary {{ll|transclusion}}" (transcluding from another wiki) * [[Special:MyLanguage/Manual:$wgExtraInterlanguageLinkPrefixes|$wgExtraInterlanguageLinkPrefixes]] - Extra interwiki prefixes to treat as language code * [[Special:MyLanguage/Manual:$wgImportSources|$wgImportSources]] - List of interwiki prefixes for wikis we'll accept as sources for Special:Import (for sysops). * [[Special:MyLanguage/Manual:$wgLocalInterwiki|$wgLocalInterwiki]] {{TNT|deprecated-inline|1.23}} - The interwiki prefix of this wiki. * [[Special:MyLanguage/Manual:$wgLocalInterwikis|$wgLocalInterwikis]] - The interwiki prefixes of this wiki. * [[Special:MyLanguage/Manual:$wgRedirectSources|$wgRedirectSources]] - Regular expression to restrict URLs which will be displayed as 'redirected from' links. * [[Special:MyLanguage/Manual:$wgTranscludeCacheExpiry|$wgTranscludeCacheExpiry]] - Expiry time for interwiki transclusion. {{anchor|Interwiki cache}} === 跨wiki缓存 === :参见[[Special:MyLanguage/interwiki cache|跨wiki缓存]]获取更多信息。 * [[Special:MyLanguage/Manual:$wgInterwikiCache|$wgInterwikiCache]] - Whether to enable the interwiki cache. * [[Special:MyLanguage/Manual:$wgInterwikiExpiry|$wgInterwikiExpiry]] - Expiry time for cache of interwiki table. * [[Special:MyLanguage/Manual:$wgInterwikiFallbackSite|$wgInterwikiFallbackSite]] - Used by maintenance scripts to dump interwiki table. * [[Special:MyLanguage/Manual:$wgInterwikiScopes|$wgInterwikiScopes]] - Used by getInterwikiCache() to retrieve from interwiki database file. {{anchor|Access}} == 访问 == Wiki locking, blocking/banning, and some other related settings. * [[Special:MyLanguage/Manual:$wgActions|$wgActions]] - Array of allowed values for the "action" parameter for normal pages. * [[Special:MyLanguage/Manual:$wgAutopromote|$wgAutopromote]] - Conditions of automatic promotion of user to specific groups. * [[Special:MyLanguage/Manual:$wgAutopromoteOnce|$wgAutopromoteOnce]] - Automatically add a usergroup to any user who matches certain conditions. * [[Special:MyLanguage/Manual:$wgAccountCreationThrottle|$wgAccountCreationThrottle]] - Number of accounts each IP address may create, 0 to disable. Requires memcached. * [[Special:MyLanguage/Manual:$wgAllowPageInfo|$wgAllowPageInfo]] {{TNT|removed-inline|1.20}} - Allow the info action, very inefficient at the moment. * [[Special:MyLanguage/Manual:$wgBlockCIDRLimit|$wgBlockCIDRLimit]] - Maximum CIDR range when blocking an IP range. * [[Special:MyLanguage/Manual:$wgDeleteRevisionsLimit|$wgDeleteRevisionsLimit]] - Integer of how many revisions an article must have before the ''bigdelete'' [[Special:MyLanguage/Manual:User rights|right]] is required to delete it. * [[Special:MyLanguage/Manual:$wgDisabledActions|$wgDisabledActions]] {{TNT|removed-inline|1.23}} - Array of disabled article actions, e.g. view, edit, dublincore, delete, etc. * [[Special:MyLanguage/Manual:$wgEnableCascadingProtection|$wgEnableCascadingProtection]] {{TNT|removed-inline|1.13}} - Enable cascade protection. * [[Special:MyLanguage/Manual:$wgFilterCallback|$wgFilterCallback]] {{TNT|deprecated-inline|1.17}} - Similarly (to {{ll|Manual:$wgSpamRegex|$wgSpamRegex}}) if this function returns true. * [[Special:MyLanguage/Manual:$wgInvalidPasswordReset|$wgInvalidPasswordReset]] - Specifies if users should be sent to a password-reset form on login in case of an inadequate password. * [[Special:MyLanguage/Manual:$wgNewPasswordExpiry|$wgNewPasswordExpiry]] - The time, in seconds, when an emailed temporary password expires. * [[Special:MyLanguage/Manual:$wgPasswordAttemptThrottle|$wgPasswordAttemptThrottle]] - Limit password attempts per IP per address. * [[Special:MyLanguage/Manual:$wgPasswordConfig|$wgPasswordConfig]] - Configuration for built-in password types. * [[Special:MyLanguage/Manual:$wgPasswordDefault|$wgPasswordDefault]] - Default password type to use when hashing user passwords. * [[Special:MyLanguage/Manual:$wgPasswordResetRoutes|$wgPasswordResetRoutes]] - Whether to allow password resets identified by various bits of data. * [[Special:MyLanguage/Manual:$wgPasswordSalt|$wgPasswordSalt]] {{TNT|deprecated-inline|1.24}} - For compatibility with old installations set to false. * [[Special:MyLanguage/Manual:$wgRangeContributionsCIDRLimit|$wgRangeContributionsCIDRLimit]] - Shortest CIDR limits that can be checked in any individual range check at [[Special:Contributions]]. * [[Special:MyLanguage/Manual:$wgRestrictionTypes|$wgRestrictionTypes]] - Actions that can be restricted. * [[Special:MyLanguage/Manual:$wgSpamRegex|$wgSpamRegex]] - A regular expression pattern which stops a page from being saved. * [[Special:MyLanguage/Manual:$wgSummarySpamRegex|$wgSummarySpamRegex]] - Same as $wgSpamRegex except for edit summaries * [[Special:MyLanguage/Manual:$wgCookieSetOnAutoblock|$wgCookieSetOnAutoblock]] - (since 1.29) Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked. This is false by default. * [[Special:MyLanguage/Manual:$wgSoftBlockRanges|$wgSoftBlockRanges]] - (since 1.29) IP ranges that should be considered soft-blocked (anon-only, account creation allowed). See [[Special:MyLanguage/Manual:Preventing access|Manual:Preventing access]] for more methods and settings concerning access. See also [[Special:MyLanguage/Manual:User rights|Manual:User rights]]</> for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc. :''See [[#User Access|User Access]] for User Access settings.'' {{anchor|Rate limiter}} === 速率控制 === * [[Special:MyLanguage/Manual:$wgRateLimitLog|$wgRateLimitLog]] {{TNT|removed-inline|1.27}} - Set to a filename to log rate limiter hits. * [[Special:MyLanguage/Manual:$wgRateLimits|$wgRateLimits]] - Simple rate limiter options to brake edit floods. * [[Special:MyLanguage/Manual:$wgRateLimitsExcludedIPs|$wgRateLimitsExcludedIPs]] - Array of IPs which should never trigger the rate limiter. {{anchor|API}} === API === * [[Special:MyLanguage/Manual:$wgEnableAPI|$wgEnableAPI]] - Enable direct access to the data API through api.php. * [[Special:MyLanguage/Manual:$wgEnableWriteAPI|$wgEnableWriteAPI]] - Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it. * [[Special:MyLanguage/Manual:$wgCrossSiteAJAXdomains|$wgCrossSiteAJAXdomains]] - Allow the API to be accessed by cross domain AJAX from specified domains * [[Special:MyLanguage/Manual:$wgCrossSiteAJAXdomainExceptions|$wgCrossSiteAJAXdomainExceptions]] - Domains that should not be allowed to make AJAX requests, even if they match one of the domains allowed by $wgCrossSiteAJAXdomains * [[Special:MyLanguage/Manual:$wgAPICacheHelpTimeout|$wgAPICacheHelpTimeout]] - Set the timeout for the API help text cache. * [[Special:MyLanguage/Manual:$wgApiFrameOptions|$wgApiFrameOptions]] - Control framing of api pages. * [[Special:MyLanguage/Manual:$wgAPIRequestLog|$wgAPIRequestLog]] - Log file or URL (TCP or UDP) to log API requests to * [[Special:MyLanguage/Manual:$wgAPIUselessQueryPages|$wgAPIUselessQueryPages]] - The ApiQueryQueryPages module should skip pages that are redundant to true API queries. {{anchor|Wiki locking}} === Wiki锁定 === * [[Special:MyLanguage/Manual:$wgReadOnly|$wgReadOnly]] - 禁止编辑并显示给定的理由。 * [[Special:MyLanguage/Manual:$wgReadOnlyFile|$wgReadOnlyFile]] - 同样是是禁止编辑,但如果有给定的文件,数据库锁定的理由则采用文件中的内容。 {{anchor|Reduction}} == 减少 == * [[Special:MyLanguage/Manual:$wgAPIMaxDBRows|$wgAPIMaxDBRows]] - Maximum number of rows to scan in a DB query in the API. * [[Special:MyLanguage/Manual:$wgAPIMaxResultSize|$wgAPIMaxResultSize]] - The maximum size (in bytes) of an API result. * [[Special:MyLanguage/Manual:$wgAPIMaxUncachedDiffs|$wgAPIMaxUncachedDiffs]] - The maximum number of uncached diffs that can be retrieved in one API request. * [[Special:MyLanguage/Manual:$wgQueryPages|$wgQueryPages]] {{TNT|removed-inline|1.23}} - Replaced by the {{ll|Manual:Hooks/wgQueryPages|wgQueryPages}} hook. * [[Special:MyLanguage/Manual:$wgDisableQueryPages|$wgDisableQueryPages]] - Disable all query pages if [[#$wgMiserMode|miser mode]] is on, not just some. * [[Special:MyLanguage/Manual:$wgDisableQueryPageUpdate|$wgDisableQueryPageUpdate]] - Array of special pages that should not be updated. * [[Special:MyLanguage/Manual:$wgDisableSearchUpdate|$wgDisableSearchUpdate]] - If you've disabled search semi-permanently, this also disables updates to the table. * [[Special:MyLanguage/Manual:$wgDisableTextSearch|$wgDisableTextSearch]] - Disables full text search (including title search). * [[Special:MyLanguage/Manual:$wgEdititis|$wgEdititis]] - Display user edit counts in various prominent places. * [[Special:MyLanguage/Manual:$wgFixDoubleRedirects|$wgFixDoubleRedirects]] - Fix double redirects after a page move. * [[Special:MyLanguage/Manual:$wgInvalidRedirectTargets|$wgInvalidRedirectTargets]] - Array of invalid page redirect targets. * [[Special:MyLanguage/Manual:$wgMaximumMovedPages|$wgMaximumMovedPages]] - Maximum number of pages to move at once when moving subpages with a page. * [[Special:MyLanguage/Manual:$wgMiserMode|$wgMiserMode]] - If true, disable database-intensive features * [[Special:MyLanguage/Manual:$wgShowHostnames|$wgShowHostnames]] - If set to true, exposes host names through API and HTML comments. * [[Special:MyLanguage/Manual:$wgShowRollbackEditCount|$wgShowRollbackEditCount]] - Maximum number to count when a rollback link is shown. * [[Special:MyLanguage/Manual:$wgUseDumbLinkUpdate|$wgUseDumbLinkUpdate]] {{TNT|removed-inline|1.22}} - Do <code>DELETE</code>/<code>INSERT</code> for link updates instead of incremental. {{anchor|Uploads}} == 上传 == Uploads have to be specially set up to be secure. * [[Special:MyLanguage/Manual:$wgAjaxLicensePreview|$wgAjaxLicensePreview]] - Allow preview licences during upload via AJAX. * [[Special:MyLanguage/Manual:$wgAllowCopyUploads|$wgAllowCopyUploads]] - 允许通过URL上传,而不仅仅是本地文件。 * [[Special:MyLanguage/Manual:$wgCopyUploadsDomains|$wgCopyUploadsDomains]] - Domains that are allowed to be used in upload from URLs. * [[Special:MyLanguage/Manual:$wgAllowJavaUploads|$wgAllowJavaUploads]] - Allow Java archive uploads. * [[Special:MyLanguage/Manual:$wgAsyncHTTPTimeout|$wgAsyncHTTPTimeout]] - Timeout for asynchronous http request. * [[Special:MyLanguage/Manual:$wgCheckFileExtensions|$wgCheckFileExtensions]] - This is a flag to determine whether or not to check file extensions on upload. * [[Special:MyLanguage/Manual:$wgCopyUploadProxy|$wgCopyUploadProxy]] - Proxy to use for copy upload requests. * [[Special:MyLanguage/Manual:$wgAllowAsyncCopyUploads|$wgAllowAsyncCopyUploads]] {{TNT|removed-inline|1.27}} - Allow asynchronous copy uploads. * [[Special:MyLanguage/Manual:$wgDisableUploadScriptChecks|$wgDisableUploadScriptChecks]] - Whether to disable the upload system's checks for HTML/JavaScript. * [[Special:MyLanguage/Manual:$wgEnableUploads|$wgEnableUploads]] - Enables uploads and shows link to upload page * [[Special:MyLanguage/Manual:$wgFileBackends|$wgFileBackends]] - File backend structure configuration. * [[Special:MyLanguage/Manual:$wgFileBlacklist|$wgFileBlacklist]] - Files with these extensions will never be allowed as uploads. * [[Special:MyLanguage/Manual:$wgFileExtensions|$wgFileExtensions]] - This is the list of preferred extensions for uploading files. Uploading files with extensions not in this list will trigger a warning. * [[Special:MyLanguage/Manual:$wgFileStore|$wgFileStore]] {{TNT|removed-inline|1.24}} - Indicates where deleted images are to be stored. * [[Special:MyLanguage/Manual:$wgHashedUploadDirectory|$wgHashedUploadDirectory]] - If true, use the /a/ab/foo.png directory structure. * [[Special:MyLanguage/Manual:$wgHTTPTimeout|$wgHTTPTimeout]] - Timeout for HTTP requests done via CURL. * [[Special:MyLanguage/Manual:$wgHTTPProxy|$wgHTTPProxy]] - Proxy to use for CURL requests. * [[Special:MyLanguage/Manual:$wgImgAuthDetails|$wgImgAuthDetails]] - Display reason access to uploaded file was denied to users(img_auth only) * [[Special:MyLanguage/Manual:$wgImgAuthPublicTest|$wgImgAuthPublicTest]] {{TNT|Removed-inline|1.24}} - Test to see if img_auth set up correctly (img_auth only) * [[Special:MyLanguage/Manual:$wgLocalFileRepo|$wgLocalFileRepo]] - A single repository structure for the local repository. * [[Special:MyLanguage/Manual:$wgLockManagers|$wgLockManagers]] - Array of configuration arrays for each lock manager. * [[Special:MyLanguage/Manual:$wgMinUploadChunkSize|$wgMinUploadChunkSize]] - Minimum upload chunk size, in bytes. * [[Special:MyLanguage/Manual:$wgStrictFileExtensions|$wgStrictFileExtensions]] - If this is turned off, users may override the warning for files not covered by {{ll|Manual:$wgFileExtensions|$wgFileExtensions}}. * [[Special:MyLanguage/Manual:$wgUploadBaseUrl|$wgUploadBaseUrl]] - The base URL for uploaded images if shared upload directory isn't to be used * [[Special:MyLanguage/Manual:$wgUploadDirectory|$wgUploadDirectory]] - The file system path of the upload directory. * [[Special:MyLanguage/Manual:$wgDeletedDirectory|$wgDeletedDirectory]] - What directory to place deleted uploads in * [[Special:MyLanguage/Manual:$wgUploadMaintenance|$wgUploadMaintenance]] - To disable image delete/restore temporarily. * [[Special:MyLanguage/Manual:$wgUploadMissingFileUrl|$wgUploadMissingFileUrl]] - Point the upload link for missing files to an external URL. * [[Special:MyLanguage/Manual:$wgUploadNavigationUrl|$wgUploadNavigationUrl]] - Point the upload navigation link to an external [[:en:URL|URL]]. * [[Special:MyLanguage/Manual:$wgUploadPath|$wgUploadPath]] - The URL of the upload directory. * [[Special:MyLanguage/Manual:$wgUploadSizeWarning|$wgUploadSizeWarning]] - Warn if uploaded files are larger than this. * [[Special:MyLanguage/Manual:$wgUploadStashMaxAge|$wgUploadStashMaxAge]] - The maximum age of temporary (incomplete) uploaded files. * [[Special:MyLanguage/Manual:$wgUploadStashScalerBaseUrl|$wgUploadStashScalerBaseUrl]] - To enable remote on-demand scaling, set this to the thumbnail base URL. * [[Special:MyLanguage/Manual:$wgMaxUploadSize|$wgMaxUploadSize]] - Maximum size for file uploads. * [[Special:MyLanguage/Manual:$wgSaveDeletedFiles|$wgSaveDeletedFiles]] {{TNT|removed-inline|1.11}} - Indicates that deleted images are to be stored for later undeletion. {{anchor|Shared uploads}} === 共享上传 === These settings are kept for backward compatibility, see [[Special:MyLanguage/Manual:$wgForeignFileRepos|$wgForeignFileRepos]] for the new setting, or {{ll|Manual:$wgUseInstantCommons|$wgUseInstantCommons}} if you only need read access to images on Commons. * [[Special:MyLanguage/Manual:$wgCacheSharedUploads|$wgCacheSharedUploads]] - Cache shared metadata in memcached. * [[Special:MyLanguage/Manual:$wgForeignFileRepos|$wgForeignFileRepos]] - An array of repository structure for foreigns repositories. * [[Special:MyLanguage/Manual:$wgHashedSharedUploadDirectory|$wgHashedSharedUploadDirectory]] - Whether to hash the shared upload directory. * [[Special:MyLanguage/Manual:$wgRepositoryBaseUrl|$wgRepositoryBaseUrl]] - Base URL for a repository wiki. * [[Special:MyLanguage/Manual:$wgSharedUploadDBname|$wgSharedUploadDBname]] - DB name with metadata about shared directory. * [[Special:MyLanguage/Manual:$wgSharedUploadDBprefix|$wgSharedUploadDBprefix]] - DB prefix for shared image uploads. * [[Special:MyLanguage/Manual:$wgSharedUploadDirectory|$wgSharedUploadDirectory]] - Path on the file system where shared uploads can be found. * [[Special:MyLanguage/Manual:$wgSharedUploadPath|$wgSharedUploadPath]] - Full path on the web server where shared uploads can be found. * [[Special:MyLanguage/Manual:$wgUseSharedUploads|$wgUseSharedUploads]] - Whether to look in the shared repository if no file of the given name is found in the local repository (for <nowiki>[[Image:..]], [[Media:..]]</nowiki> links). *[[Special:MyLanguage/Manual:$wgFetchCommonsDescriptions|$wgFetchCommonsDescriptions]] - set this "true" if you want to integrate media-descriptions, stored in the commonswiki {{anchor|MIME types}} === MIME类型 === * [[Special:MyLanguage/Manual:$wgJsMimeType|$wgJsMimeType]] {{TNT|removed-inline|1.22}} - Media type (MIME type) to use for JavaScript scripts. * [[Special:MyLanguage/Manual:$wgLoadFileinfoExtension|$wgLoadFileinfoExtension]] {{TNT|removed-inline|1.22}} - Switch for loading the [http://pecl.php.net/package/Fileinfo FileInfo] extension by [[w:PECL|PECL]] at runtime. * [[Special:MyLanguage/Manual:$wgMimeDetectorCommand|$wgMimeDetectorCommand]] - Sets an external mime detector program. * [[Special:MyLanguage/Manual:$wgMimeInfoFile|$wgMimeInfoFile]] - Sets the mime type info file to use by {{ll|Manual:MimeMagic.php|MimeMagic.php}}. * [[Special:MyLanguage/Manual:$wgMimeTypeFile|$wgMimeTypeFile]] - Sets the mime type definition file to use by {{ll|Manual:MimeMagic.php|MimeMagic.php}}. * [[Special:MyLanguage/Manual:$wgTrivialMimeDetection|$wgTrivialMimeDetection]] - Switch for trivial mime detection. :{{Warning}} ''This is ''not'' a configuration setting, but a global state variable. It should be used solely by [[Special:MyLanguage/Manual:Thumb.php|thumb.php]]!'' * [[Special:MyLanguage/Manual:$wgVerifyMimeType|$wgVerifyMimeType]] - Determines if the mime type of uploaded files should be checked * [[Special:MyLanguage/Manual:$wgMimeTypeBlacklist|$wgMimeTypeBlacklist]] - Files with these mime types will never be allowed as uploads if $wgVerifyMimeType is enabled. * [[Special:MyLanguage/Manual:$wgXMLMimeTypes|$wgXMLMimeTypes]] - An array of XML mime types we can detect via MimeMagic. ''See also: [[Special:MyLanguage/Manual:Mime type detection|Manual:Mime type detection]]'' {{anchor|Images}} === 图片 === * [[Special:MyLanguage/Manual:$wgAllowImageMoving|$wgAllowImageMoving]] - 允许移动图片 * [[Special:MyLanguage/Manual:$wgCustomConvertCommand|$wgCustomConvertCommand]] - 使用另一个改变大小转换器,例如GraphicMagick。 * [[Special:MyLanguage/Manual:$wgEnableAutoRotation|$wgEnableAutoRotation]] - Whether to enable image auto-rotation based on Exif information * [[Special:MyLanguage/Manual:$wgExiv2Command|$wgExiv2Command]] - Path to the exiv2 executable. * [[Special:MyLanguage/Manual:$wgGalleryOptions|$wgGalleryOptions]] - Default parameters for the <gallery> tag. * [[Special:MyLanguage/Manual:$wgIgnoreImageErrors|$wgIgnoreImageErrors]] - If true, inline scaled images will still produce <img> tags ready for output instead of showing an error message. * [[Special:MyLanguage/Manual:$wgImageLimits|$wgImageLimits]] - Limit images on image description pages to a user-selectable limit. * [[Special:MyLanguage/Manual:$wgJpegTran|$wgJpegTran]] - Path to the jpegtran utility. * [[Special:MyLanguage/Manual:$wgMaxImageArea|$wgMaxImageArea]] - Don't thumbnail an image if it will use too much working memory. * [[Special:MyLanguage/Manual:$wgMediaHandlers|$wgMediaHandlers]] - Plugins for media file type handling. * 用于[[#Paths|上传路径]]的参数 * [[Special:MyLanguage/Manual:$wgTrustedMediaFormats|$wgTrustedMediaFormats]] - List of trusted media-types and mime types. ''See also: [[Special:MyLanguage/Manual:Configuring file uploads|Manual:Configuring file uploads]]'' {{anchor|DjVu}} ==== DjVu ==== * [[Special:MyLanguage/Manual:$wgDjvuDump|$wgDjvuDump]] - djvudump可执行的路径。 * [[Special:MyLanguage/Manual:$wgDjvuOutputExtension|$wgDjvuOutputExtension]] - 用于DJVU传送处理器输出的文件扩展名。 * [[Special:MyLanguage/Manual:$wgDjvuPostProcessor|$wgDjvuPostProcessor]] - DJVU传送处理器的路径。 * [[Special:MyLanguage/Manual:$wgDjvuRenderer|$wgDjvuRenderer]] - ddjvu DJVU渲染器的路径。 * [[Special:MyLanguage/Manual:$wgDjvuToXML|$wgDjvuToXML]] - djvutoxml可执行的路径。 * [[Special:MyLanguage/Manual:$wgDjvuTxt|$wgDjvuTxt]] - djvutxt DJVU文本抽取实用工具的路径。 {{anchor|EXIF}} ==== EXIF ==== * [[Special:MyLanguage/Manual:$wgShowEXIF|$wgShowEXIF]] - Determines whether EXIF metadata is to be displayed. Set to ''false'' for not showing data. * [[Special:MyLanguage/Manual:$wgUpdateCompatibleMetadata|$wgUpdateCompatibleMetadata]] - Whether to automatically update the img_metadata field if the metadata field is outdated but compatible with the current version. {{anchor|ImageMagick}} ==== ImageMagick ==== * [[Special:MyLanguage/Manual:$wgImageMagickConvertCommand|$wgImageMagickConvertCommand]] - ImageMagick附带的转换命令。 * [[Special:MyLanguage/Manual:$wgImageMagickIdentifyCommand|$wgImageMagickIdentifyCommand]] {{TNT|Removed-inline|1.23}} - ImageMagick附带的识别命令。 * [[Special:MyLanguage/Manual:$wgImageMagickTempDir|$wgImageMagickTempDir]] - 用于ImageMagick的临时目录。 * [[Special:MyLanguage/Manual:$wgSharpenParameter|$wgSharpenParameter]] - Sharpening parameter to ImageMagick. * [[Special:MyLanguage/Manual:$wgSharpenReductionThreshold|$wgSharpenReductionThreshold]] - Reduction in linear dimensions below which sharpening will be enabled. * [[Special:MyLanguage/Manual:$wgUseImageMagick|$wgUseImageMagick]] - 可以使用 PHP的内部图像库或使用 ImageMagick 进行尺寸大小的调整。PHP只支持 PNG、GIF、JPG、XBM 和 WBMP几种格式,而后者支持的要多得多。 * [[Special:MyLanguage/Manual:$wgUseTinyRGBForJPGThumbnails|$wgUseTinyRGBForJPGThumbnails]] - When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and free) TinyRGB profile when generating thumbnails. 将 $wgUseImageMagick 设置为true 可使用 ImageMagick 而不是内置函数。 {{anchor|SVG}} ==== SVG ==== * [[Special:MyLanguage/Manual:$wgAllowTitlesInSVG|$wgAllowTitlesInSVG]] - If true, <title> will be allowed in files with an "image/svg" MIME type. * [[Special:MyLanguage/Manual:$wgSVGConverter|$wgSVGConverter]] - 来自{{ll|#$wgSVGConverters|$wgSVGConverters}},用作转换器的的关键字。 * [[Special:MyLanguage/Manual:$wgSVGConverterPath|$wgSVGConverterPath]] - If not in the executable PATH, specify. * [[Special:MyLanguage/Manual:$wgSVGConverters|$wgSVGConverters]] - Scalable Vector Graphics (SVG) may be uploaded as images. * [[Special:MyLanguage/Manual:$wgSVGMaxSize|$wgSVGMaxSize]] - Don't scale a SVG larger than this unless its native size is larger. * [[Special:MyLanguage/Manual:$wgSVGMetadataCutoff|$wgSVGMetadataCutoff]] - Don't read SVG metadata beyond this point. {{anchor|Thumbnail settings}} ==== 缩略图设置 ==== * [[Special:MyLanguage/Manual:$wgUseImageResize|$wgUseImageResize]] - Set $wgUseImageResize to true if you want to enable dynamic server side image resizing (Thumbnails) * [[Special:MyLanguage/Manual:$wgGenerateThumbnailOnParse|$wgGenerateThumbnailOnParse]] - Allow thumbnail rendering on page view. * [[Special:MyLanguage/Manual:$wgMaxAnimatedGifArea|$wgMaxAnimatedGifArea]] - Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnail. * [[Special:MyLanguage/Manual:$wgSharedThumbnailScriptPath|$wgSharedThumbnailScriptPath]] - Same as {{ll|#$wgThumbnailScriptPath|$wgThumbnailScriptPath}}, but for shared uploads. * [[Special:MyLanguage/Manual:$wgShowArchiveThumbnails|$wgShowArchiveThumbnails]] - Whether to show thumbnails for old images on the image description page. * [[Special:MyLanguage/Manual:$wgTiffThumbnailType|$wgTiffThumbnailType]] - Array of extension and mime type to transform TIFF images to. * [[Special:MyLanguage/Manual:$wgThumbnailScriptPath|$wgThumbnailScriptPath]] - Give a path here to use {{ll|Manual:Thumb.php|thumb.php}} for thumbnail generation on client request, instead of generating them on render and outputting a static URL. * [[Special:MyLanguage/Manual:$wgThumbUpright|$wgThumbUpright]] - Adjust width of upright images when parameter 'upright' is used. * [[Special:MyLanguage/Manual:$wgThumbLimits|$wgThumbLimits]] - List of image sizes users can pick from. * [[Special:MyLanguage/Manual:$wgResponsiveImages|$wgResponsiveImages]] - Use responsive images for high-density displays. * [[Special:MyLanguage/Manual:$wgThumbnailBuckets|$wgThumbnailBuckets]] - List of intermediary thumbnail sizes to use to speed up thumbnail rendering. * [[Special:MyLanguage/Manual:$wgThumbnailMinimumBucketDistance|$wgThumbnailMinimumBucketDistance]] - Minimal distance between intermediary thumbnail size and target thumbnail size. * [[Special:MyLanguage/Manual:$wgJpegPixelFormat|$wgJpegPixelFormat]] - Sets YUV chroma subsampling mode for JPEG thumbnails {{anchor|Antivirus}} === 防病毒 === * [[Special:MyLanguage/Manual:$wgAntivirus|$wgAntivirus]] - Internal name of virus scanner. * [[Special:MyLanguage/Manual:$wgAntivirusRequired|$wgAntivirusRequired]] - Determines if a failed virus scan (<code>AV_SCAN_FAILED</code>) will cause the file to be rejected. * [[Special:MyLanguage/Manual:$wgAntivirusSetup|$wgAntivirusSetup]] - Configuration for different virus scanners. {{anchor|Parser}} == 解析器 == * [[Special:MyLanguage/Manual:$wgAllowDisplayTitle|$wgAllowDisplayTitle]] - Allow the magic word <tt><nowiki>{{DISPLAYTITLE:}}</nowiki></tt> to override the title of a page. * [[Special:MyLanguage/Manual:$wgAllowExternalImages|$wgAllowExternalImages]] - Whether to allow inline image pointing to other websites. * [[Special:MyLanguage/Manual:$wgAllowExternalImagesFrom|$wgAllowExternalImagesFrom]] - If {{ll|Manual:$wgAllowExternalImages|$wgAllowExternalImages}} is false, you can specify exceptions here. * [[Special:MyLanguage/Manual:$wgAllowSlowParserFunctions|$wgAllowSlowParserFunctions]] - Allow slow parser functions like "pagesinnamespace". * [[Special:MyLanguage/Manual:$wgAllowImageTag|$wgAllowImageTag]] - Allow <nowiki><img></nowiki> tag to be used in wikitext. * [[Special:MyLanguage/Manual:$wgEnableImageWhitelist|$wgEnableImageWhitelist]] - If {{ll|Manual:$wgAllowExternalImages|$wgAllowExternalImages}} is false, this will enable an on-wiki image whitelist at {{ll|MediaWiki:External image whitelist}}. * [[Special:MyLanguage/Manual:$wgCleanSignatures|$wgCleanSignatures]] - If true, removes (substitutes) templates in "<nowiki>~~~~</nowiki>" signatures. * [[Special:MyLanguage/Manual:$wgExperimentalHtmlIds|$wgExperimentalHtmlIds]] - Should we allow a broader set of characters in id attributes, per HTML5? * [[Special:MyLanguage/Manual:$wgExpensiveParserFunctionLimit|$wgExpensiveParserFunctionLimit]] - Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY. * [[Special:MyLanguage/Manual:$wgExternalLinkTarget|$wgExternalLinkTarget]] - Set a default target for external links. * [[Special:MyLanguage/Manual:$wgGrammarForms|$wgGrammarForms]] - Used for <nowiki>{{GRAMMAR:}}</nowiki> parser function. * [[Special:MyLanguage/Manual:$wgLinkHolderBatchSize|$wgLinkHolderBatchSize]] - LinkHolderArray batch size. * [[Special:MyLanguage/Manual:$wgMaxGeneratedPPNodeCount|$wgMaxGeneratedPPNodeCount]] - A complexity limit on template expansion: the maximum number of nodes generated by <code>Preprocessor::preprocessToObj()</code> * [[Special:MyLanguage/Manual:$wgMaxPPExpandDepth|$wgMaxPPExpandDepth]] - Stack depth limit for expansion with the preprocessor. * [[Special:MyLanguage/Manual:$wgMaxPPNodeCount|$wgMaxPPNodeCount]] - A complexity limit on template expansion: the maximum number of nodes visited by <code>PPFrame::expand()</code> * [[Special:MyLanguage/Manual:$wgMaxTemplateDepth|$wgMaxTemplateDepth]] - Maximum recursion depth for templates within templates. * [[Special:MyLanguage/Manual:$wgMaxTocLevel|$wgMaxTocLevel]] - Maximum indent level of the {{ll|Table of Contents}}. * [[Special:MyLanguage/Manual:$wgParserConf|$wgParserConf]] - 解析器配置。 * [[Special:MyLanguage/Manual:$wgParserTestFiles|$wgParserTestFiles]] - Parser test suite files to be run by parserTests.php. * [[Special:MyLanguage/Manual:$wgParserTestRemote|$wgParserTestRemote]] {{TNT|Removed-inline|1.24}} - Specifies target [[Special:MyLanguage/Extension:CodeReview|CodeReview]] installation to send test result data from "parserTests.php --upload" * [[Special:MyLanguage/Manual:$wgPreprocessorCacheThreshold|$wgPreprocessorCacheThreshold]] - Preprocessor caching threshold. * [[Special:MyLanguage/Manual:$wgRegisterInternalExternals|$wgRegisterInternalExternals]] - Whether to register external links pointing to the same server. * [[Special:MyLanguage/Manual:$wgRestrictDisplayTitle|$wgRestrictDisplayTitle]] - Restrict DISPLAYTITLE to titles that normalize to the same [[Special:MyLanguage/Manual:Title.php#Canonical forms|canonical]] DB key. {{anchor|HTML}} === HTML === * [[Special:MyLanguage/Manual:$wgRawHtml|$wgRawHtml]] - Allow raw, unchecked HTML in <nowiki><html>...</html></nowiki> sections. {{anchor|Tidy}} === 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 [[Parsing/Replacing Tidy|replaced]], the configuration settings can still be used for the replacements. * [[Special:MyLanguage/Manual:$wgTidyConfig|$wgTidyConfig]] - Configuration of the HTML postprocessing tool to use for fixing invalid HTML code. * [[Special:MyLanguage/Manual:$wgAlwaysUseTidy|$wgAlwaysUseTidy]] {{TNT|deprecated-inline|1.26}} * [[Special:MyLanguage/Manual:$wgDebugTidy|$wgDebugTidy]] - Put tidy warnings in HTML comments, only works for internal tidy. * [[Special:MyLanguage/Manual:$wgTidyBin|$wgTidyBin]] {{TNT|deprecated-inline|1.26}} - Should be set to the path of the tidy binary. * [[Special:MyLanguage/Manual:$wgTidyConf|$wgTidyConf]] {{TNT|deprecated-inline|1.26}} - Should be set to the path of the tidy configuration file. * [[Special:MyLanguage/Manual:$wgTidyInternal|$wgTidyInternal]] {{TNT|deprecated-inline|1.20}}- Controls the use of the [[w:PECL|PECL]] extension to use an inprocess tidy library instead of spawning a separate program. * [[Special:MyLanguage/Manual:$wgTidyOpts|$wgTidyOpts]] {{TNT|deprecated-inline|1.26}} - Options passed to tidy on the command line. * [[Special:MyLanguage/Manual:$wgUseTidy|$wgUseTidy]] {{TNT|deprecated-inline|1.26}} - Use tidy to make sure HTML output is sane. * [[Special:MyLanguage/Manual:$wgValidateAllHtml|$wgValidateAllHtml]] - Validate the overall output using tidy and refuse to display the page if it's not valid. :''See also: [[Special:MyLanguage/Manual:Build Tidy from source|Manual:Build Tidy from source]].'' {{anchor|Special pages}} == 特殊页面 == * [[Special:MyLanguage/Manual:$wgActionFilteredLogs|$wgActionFilteredLogs]] - List of log types that can be filtered by action types * [[Special:MyLanguage/Manual:$wgAllowSpecialInclusion|$wgAllowSpecialInclusion]] - Allow special page inclusions such as <code><nowiki>{{Special:Allpages}}</nowiki></code>. * [[Special:MyLanguage/Manual:$wgExportAllowAll|$wgExportAllowAll]] - Whether to allow exporting the entire wiki into a single file. * [[Special:MyLanguage/Manual:$wgExportAllowHistory|$wgExportAllowHistory]] - Enable the full-history option on Special:Export. * [[Special:MyLanguage/Manual:$wgExportAllowListContributors|$wgExportAllowListContributors]] - Whether to allow to list all contributors while exporting a page. * [[Special:MyLanguage/Manual:$wgExportFromNamespaces|$wgExportFromNamespaces]] - Whether to allow the "export all pages in namespace" option * [[Special:MyLanguage/Manual:$wgExportMaxHistory|$wgExportMaxHistory]] - Special:Export requests for history of pages with more revisions than this will be rejected. * [[Special:MyLanguage/Manual:$wgExportMaxLinkDepth|$wgExportMaxLinkDepth]] - Maximum value of the "pagelink-depth" parameter in Special:Export. * [[Special:MyLanguage/Manual:$wgExportPagelistLimit|$wgExportPagelistLimit]] - Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions. * [[Special:MyLanguage/Manual:$wgFilterLogTypes|$wgFilterLogTypes]] - Show/hide links on Special:Log will be shown for these log types * [[Special:MyLanguage/Manual:$wgImportTargetNamespace|$wgImportTargetNamespace]] - Optional default target namespace for interwiki imports. * [[Special:MyLanguage/Manual:$wgLogActions|$wgLogActions]] - Lists the message key string for formatting individual events of each type and action when listed in the logs. * [[Special:MyLanguage/Manual:$wgLogActionsHandlers|$wgLogActionsHandlers]] - Same as {{ll|Manual:$wgLogActions|$wgLogActions}}, but values are functions callbacks. * [[Special:MyLanguage/Manual:$wgLogHeaders|$wgLogHeaders]] - Lists the message key string for descriptive text to be shown at the op of each log type. * [[Special:MyLanguage/Manual:$wgLogNames|$wgLogNames]] - Lists the message key string for each log type. * [[Special:MyLanguage/Manual:$wgLogRestrictions|$wgLogRestrictions]] - Restricts log access to those who have a certain right. * [[Special:MyLanguage/Manual:$wgLogTypes|$wgLogTypes]] - 日志类型列表。 * [[Special:MyLanguage/Manual:$wgQueryPageDefaultLimit|$wgQueryPageDefaultLimit]] - Default number of entries to show on query pages. * [[Special:MyLanguage/Manual:$wgMaxRedirectLinksRetrieved|$wgMaxRedirectLinksRetrieved]] - Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination. * [[Special:MyLanguage/Manual:$wgRedirectOnLogin|$wgRedirectOnLogin]] - Redirect a user to a specific page when they log in. * [[Special:MyLanguage/Manual:$wgSecureLogin|$wgSecureLogin]] - Whether to let user authenticate using https when they come from http. * [[Special:MyLanguage/Manual:$wgSortSpecialPages|$wgSortSpecialPages]] {{TNT|removed-inline|1.24}} - Whether or not to sort special pages in Special:Specialpages. * [[Special:MyLanguage/Manual:$wgSpecialPageGroups|$wgSpecialPageGroups]] {{TNT|removed-inline|1.26}} - List of special pages, followed by what subtitle they should go under at Special:SpecialPages * [[Special:MyLanguage/Manual:$wgSpecialVersionShowHooks|$wgSpecialVersionShowHooks]] - Whether to show the contents of $wgHooks in Special:Version. * [[Special:MyLanguage/Manual:$wgUseNPPatrol|$wgUseNPPatrol]] - Use new pages patrolling to check for vandalism. {{anchor|Recent changes}} === 最近更改 === See also [[Special:MyLanguage/Help:Recent changes|Help:Recent changes]] and {{wg|DefaultUserOptions}} * [[Special:MyLanguage/Manual:$wgAllowCategorizedRecentChanges|$wgAllowCategorizedRecentChanges]] - Allow to filter the recentchanges by a category or one of its sub(subsubsub...)categories * [[Special:MyLanguage/Manual:$wgAutopromoteOnceLogInRC|$wgAutopromoteOnceLogInRC]] - Whether to put user rights log entries for autopromotion in recent changes * [[Special:MyLanguage/Manual:$wgPutIPinRC|$wgPutIPinRC]] - Log IP addresses in the recentchanges table. * [[Special:MyLanguage/Manual:$wgRCChangedSizeThreshold|$wgRCChangedSizeThreshold]] - Highlight character count difference lower than this. * [[Special:MyLanguage/Manual:$wgRCFilterByAge|$wgRCFilterByAge]] - Filter $wgRCLinkDays to avoid showing links for values higher than $wgRCMaxAge. * [[Special:MyLanguage/Manual:$wgRCLinkLimits|$wgRCLinkLimits]] - 更改限制。 * [[Special:MyLanguage/Manual:$wgRCLinkDays|$wgRCLinkDays]] - 日限制。 * [[Special:MyLanguage/Manual:$wgRCMaxAge|$wgRCMaxAge]] - Recentchanges items are periodically purged; entries older than this many seconds will go. * [[Special:MyLanguage/Manual:$wgRCShowChangedSize|$wgRCShowChangedSize]] - Show the amount of changed characters in recent changes. * [[Special:MyLanguage/Manual:$wgRCShowWatchingUsers|$wgRCShowWatchingUsers]] - Show watching users in recent changes, watchlist and page history views. * [[Special:MyLanguage/Manual:$wgShowUpdatedMarker|$wgShowUpdatedMarker]] - Show "Updated (since my last visit)" marker in RC view, watchlist and history. * [[Special:MyLanguage/Manual:$wgUseRCPatrol|$wgUseRCPatrol]] - Use RC Patrolling to check for vandalism. * [[Special:MyLanguage/Manual:$wgWatchersMaxAge|$wgWatchersMaxAge]] - Page watchers inactive for more than this many seconds are considered inactive. * [[Special:MyLanguage/Manual:$wgUnwatchedPageSecret|$wgUnwatchedPageSecret]] - If active watchers (per above) are this number or less, do not disclose it. {{anchor|UDP updates}} ==== UDP更新 ==== Send [[Special:MyLanguage/Manual:Simple IRC RC Bot|Recent changes]] updates via [[w:User Datagram Protocol|UDP]]. ''See: [[Special:MyLanguage/Manual:Simple IRC RC Bot|Manual:Simple IRC RC Bot]]'' * [[Special:MyLanguage/Manual:$wgRCEngines|$wgRCEngines]] - Feed engine configuration * [[Special:MyLanguage/Manual:$wgRCFeeds|$wgRCFeeds]] - Feed formatting and destination configuration * [[Special:MyLanguage/Manual:$wgRC2UDPAddress|$wgRC2UDPAddress]] {{TNT|removed-inline|1.24}} - 使用地址。 * [[Special:MyLanguage/Manual:$wgRC2UDPInterwikiPrefix|$wgRC2UDPInterwikiPrefix]] {{TNT|removed-inline|1.24}} - Whether to prefixes the page name used in the RC feed. * [[Special:MyLanguage/Manual:$wgRC2UDPOmitBots|$wgRC2UDPOmitBots]] {{TNT|removed-inline|1.24}} - Omit bot. * [[Special:MyLanguage/Manual:$wgRC2UDPPort|$wgRC2UDPPort]] {{TNT|removed-inline|1.24}} - Port used. * [[Special:MyLanguage/Manual:$wgRC2UDPPrefix|$wgRC2UDPPrefix]] {{TNT|removed-inline|1.24}} - 使用前缀。 {{anchor|Users}} == 用户 == * [[Special:MyLanguage/Manual:$wgActiveUserDays|$wgActiveUserDays]] - The number of days a person must be idle before they're considered inactive * [[Special:MyLanguage/Manual:$wgAutoConfirmAge|$wgAutoConfirmAge]] - Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group membership. * [[Special:MyLanguage/Manual:$wgAutoConfirmCount|$wgAutoConfirmCount]] - Number of edits an account requires before it's given the implicit 'autoconfirm' group membership. * [[Special:MyLanguage/Manual:$wgAllowUserCssPrefs|$wgAllowUserCssPrefs]] - Whether to allow user-preferences implemented in CSS * [[Special:MyLanguage/Manual:$wgDefaultUserOptions|$wgDefaultUserOptions]] - Settings added to this array will override the default settings for the user preferences used by anonymous visitors and newly created accounts. * [[Special:MyLanguage/Manual:$wgDisableAnonTalk|$wgDisableAnonTalk]] - Disable talk pages for anonymous users (IPs). * [[Special:MyLanguage/Manual:$wgHiddenPrefs|$wgHiddenPrefs]] - 禁用某些用户首选项。 * [[Special:MyLanguage/Manual:$wgHKDFAlgorithm|$wgHKDFAlgorithm]] - Algorithm for HMAC-based key derivation function (fast, cryptographically secure random numbers). * [[Special:MyLanguage/Manual:$wgHKDFSecret|$wgHKDFSecret]] - Secret for HMAC-based key derivation function (fast, cryptographically secure random numbers). * [[Special:MyLanguage/Manual:$wgInvalidUsernameCharacters|$wgInvalidUsernameCharacters]] - Characters to prevent during new account creations. * [[Special:MyLanguage/Manual:$wgMaxNameChars|$wgMaxNameChars]] - Maximum number of bytes in username. * [[Special:MyLanguage/Manual:$wgMaxSigChars|$wgMaxSigChars]] - Maximum customized signature length. * [[Special:MyLanguage/Manual:$wgMinimalPasswordLength|$wgMinimalPasswordLength]] {{TNT|deprecated-inline|1.26}} - Specifies the minimal length of a user password. * [[Special:MyLanguage/Manual:$wgNewUserLog|$wgNewUserLog]] - Whether to maintain a log of newusers at [[Special:Log/newusers]]. * [[Special:MyLanguage/Manual:$wgPasswordExpirationDays|$wgPasswordExpirationDays]] - Number of days after which user passwords expire. * [[Special:MyLanguage/Manual:$wgPasswordExpireGrace|$wgPasswordExpireGrace]] - Grace period for password expiry. * [[Special:MyLanguage/Manual:$wgPasswordPolicy|$wgPasswordPolicy]] - Specifies various settings related to password strength and security. * [[Special:MyLanguage/Manual:$wgReservedUsernames|$wgReservedUsernames]] - List of account names that cannot exist. * [[Special:MyLanguage/Manual:$wgShowIPinHeader|$wgShowIPinHeader]] {{TNT|removed-inline|1.27}} - Show the IP in the user bar for anonymous users by default. * [[Special:MyLanguage/Manual:$wgUserrightsInterwikiDelimiter|$wgUserrightsInterwikiDelimiter]] - Character used as a delimiter when testing for interwiki userrights. {{anchor|Authentication}} === 验证 === * [[Special:MyLanguage/Manual:$wgSessionProviders|$wgSessionProviders]] - Session provider configuration. * [[Special:MyLanguage/Manual:$wgAuthManagerAutoConfig|$wgAuthManagerAutoConfig]] - Register authentication providers to use with [[Manual:SessionManager_and_AuthManager|AuthManager]]. * [[Special:MyLanguage/Manual:$wgAuthManagerConfig|$wgAuthManagerConfig]] - Manual override for authentication provider configuration. * [[Special:MyLanguage/Manual:$wgCentralIdLookupProvider|$wgCentralIdLookupProvider]] - Default central id lookup implementation to use. * [[Special:MyLanguage/Manual:$wgCentralIdLookupProviders|$wgCentralIdLookupProviders]] - Register central ID lookup providers. * [[Special:MyLanguage/Manual:$wgAuthenticationTokenVersion|$wgAuthenticationTokenVersion]] - When changed, all existing sessions are invalidated. * [[Special:MyLanguage/Manual:$wgReauthenticateTime|$wgReauthenticateTime]] - Time frame for re-authentication. * [[Special:MyLanguage/Manual:$wgAllowSecuritySensitiveOperationIfCannotReauthenticate|$wgAllowSecuritySensitiveOperationIfCannotReauthenticate]] - Whether to allow security-sensitive operations when reauthentication is not possible. * [[Special:MyLanguage/Manual:$wgExternalAuthType|$wgExternalAuthType]] {{TNT|removed-inline|1.22}} - Use some particular type of external authentication. * [[Special:MyLanguage/Manual:$wgExternalAuthConf|$wgExternalAuthConf]] {{TNT|removed-inline|1.22}} - Configuration for the external authentication. * [[Special:MyLanguage/Manual:$wgAutocreatePolicy|$wgAutocreatePolicy]] {{TNT|removed-inline|1.22}} - Policy to create new accounts with external authentication. * [[Special:MyLanguage/Manual:$wgAllowPrefChange|$wgAllowPrefChange]] {{TNT|removed-inline|1.22}} - Policies for how each preference is allowed to be changed, in the presence of external authentication. {{anchor|User Access}} === 用户访问 === * [[Special:MyLanguage/Manual:$wgAddGroups|$wgAddGroups]] - Controls who can add specific groups using [[Special:Userrights]]. * [[Special:MyLanguage/Manual:$wgAutoblockExpiry|$wgAutoblockExpiry]] - Number of seconds before autoblock entries expire. * [[Special:MyLanguage/Manual:$wgBlockAllowsUTEdit|$wgBlockAllowsUTEdit]] - Allow blocked users to edit their talk pages. * [[Special:MyLanguage/Manual:$wgBlockDisablesLogin|$wgBlockDisablesLogin]] - Disallow blocked users to login. * [[Special:MyLanguage/Manual:$wgEmailConfirmToEdit|$wgEmailConfirmToEdit]] - Require users to confirm email address before they can edit, true to enable. * [[Special:MyLanguage/Manual:$wgGrantPermissions|$wgGrantPermissions]] - Used to define grants and assign permissions to them. * [[Special:MyLanguage/Manual:$wgGrantPermissionGroups|$wgGrantPermissionGroups]] - Used to define grant groups and assign grants to them. * [[Special:MyLanguage/Manual:$wgGroupPermissions|$wgGroupPermissions]] - Use this to set access rights for groups and users. See also {{ll|Manual:User rights}} * [[Special:MyLanguage/Manual:$wgGroupsAddToSelf|$wgGroupsAddToSelf]] - allow users to add themselves from specified groups via Special:Userrights * [[Special:MyLanguage/Manual:$wgGroupsRemoveFromSelf|$wgGroupsRemoveFromSelf]] - allow users to remove themselves from specified groups via Special:Userrights * [[Special:MyLanguage/Manual:$wgImplicitGroups|$wgImplicitGroups]] - Array of groups that aren't shown on e.g. [[Special:Listusers]]. * [[Special:MyLanguage/Manual:$wgRemoveGroups|$wgRemoveGroups]] - Controls who can remove specific groups using [[Special:Userrights]]. * [[Special:MyLanguage/Manual:$wgRevokePermissions|$wgRevokePermissions]] - Rights revoked from users in each group. * [[Special:MyLanguage/Manual:$wgWhitelistRead|$wgWhitelistRead]] - Pages anonymous user may see. {{anchor|User agent}} === 用户代理 === * [[Special:MyLanguage/Manual:$wgBrowserBlackList|$wgBrowserBlackList]] - Browser blacklist for Unicode non compliant browsers. {{anchor|Cookies}} == Cookies == * [[Special:MyLanguage/Manual:$wgCacheVaryCookies|$wgCacheVaryCookies]] - A list of cookies that vary the cache. * [[Special:MyLanguage/Manual:$wgCookieDomain|$wgCookieDomain]] - Set to set an explicit domain on the login cookies. * [[Special:MyLanguage/Manual:$wgCookieExpiration|$wgCookieExpiration]] - Number of seconds before HTTP cookies expire. * [[Special:MyLanguage/Manual:$wgCookieHttpOnly|$wgCookieHttpOnly]] - Set authentication cookies to httpOnly to prevent stealing by JS, in browsers that support this feature. * [[Special:MyLanguage/Manual:$wgCookiePath|$wgCookiePath]] - Explicitly declared "path" for cookies at the cookie domain. * [[Special:MyLanguage/Manual:$wgCookiePrefix|$wgCookiePrefix]] - 自定义cookie前缀。 * [[Special:MyLanguage/Manual:$wgCookieSecure|$wgCookieSecure]] - Whether cookies are secured. * [[Special:MyLanguage/Manual:$wgDisableCookieCheck|$wgDisableCookieCheck]] - Disables session cookies. * [[Special:MyLanguage/Manual:$wgExtendedLoginCookieExpiration|$wgExtendedLoginCookieExpiration]] - Duration in seconds to use for "Keep me logged in" sessions. * [[Special:MyLanguage/Manual:$wgHttpOnlyBlacklist|$wgHttpOnlyBlacklist]] {{TNT|removed-inline|1.23}} - User agent blacklist for HttpOnly mode. * [[Special:MyLanguage/Manual:$wgSessionHandler|$wgSessionHandler]] {{TNT|deprecated-inline|1.27}} - Used to set php's session.save_handler. * [[Special:MyLanguage/Manual:$wgSessionName|$wgSessionName]] - Override to customise the session name. {{anchor|Feed}} == 订阅源 == * [[Special:MyLanguage/Manual:$wgFeed|$wgFeed]] - Toggle syndication feeds on and off. * [[Special:MyLanguage/Manual:$wgAdvertisedFeedTypes|$wgAdvertisedFeedTypes]] - Which feed types should be provided by default. * [[Special:MyLanguage/Manual:$wgFeedCacheTimeout|$wgFeedCacheTimeout]] - 'Minimum' timeout for cached Recentchanges feed, in seconds. * [[Special:MyLanguage/Manual:$wgFeedClasses|$wgFeedClasses]] - Available feeds objects. * [[Special:MyLanguage/Manual:$wgFeedDiffCutoff|$wgFeedDiffCutoff]] - When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size. * [[Special:MyLanguage/Manual:$wgFeedLimit|$wgFeedLimit]] - Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages. * [[Special:MyLanguage/Manual:$wgOverrideSiteFeed|$wgOverrideSiteFeed]] - Override the site's default rss/atom feed that appears on every page. {{anchor|Copyright}} == 版权 == * [[Special:MyLanguage/Manual:$wgCopyrightIcon|$wgCopyrightIcon]] {{TNT|removed-inline|1.27}} - Set this to some HTML to override the copyrights icon with an arbitrary logo. * [[Special:MyLanguage/Manual:$wgEnableCreativeCommonsRdf|$wgEnableCreativeCommonsRdf]] {{TNT|removed-inline|1.19}} - Includes licensing information derived from Creative Commons licenses. * [[Special:MyLanguage/Manual:$wgEnableDublinCoreRdf|$wgEnableDublinCoreRdf]] {{TNT|removed-inline|1.19}} - 使用RDF元数据 * [[Special:MyLanguage/Manual:$wgLicenseTerms|$wgLicenseTerms]] {{TNT|removed-inline|1.23}} - Array of metadata terms. * [[Special:MyLanguage/Manual:$wgMaxCredits|$wgMaxCredits]] - Set this to the number of authors that you want to be credited below an article text. * [[Special:MyLanguage/Manual:$wgRightsIcon|$wgRightsIcon]] - 版权图标 * [[Special:MyLanguage/Manual:$wgRightsPage|$wgRightsPage]] - Page describing the site license * [[Special:MyLanguage/Manual:$wgRightsText|$wgRightsText]] - Text describing the site license * [[Special:MyLanguage/Manual:$wgRightsUrl|$wgRightsUrl]] - URL describing the site license * [[Special:MyLanguage/Manual:$wgShowCreditsIfMax|$wgShowCreditsIfMax]] - If there are more than {{ll|Manual:$wgMaxCredits|$wgMaxCredits}} authors, show $wgMaxCredits of them. * [[Special:MyLanguage/Manual:$wgUseCopyrightUpload|$wgUseCopyrightUpload]] - Set this to true if you want detailed copyright information forms on Upload. {{anchor|Search}} == 搜索 == * [[Special:MyLanguage/Manual:$wgVectorUseSimpleSearch|$wgVectorUseSimpleSearch]] - For Vector skin only. Set true to use one icon search button. Set false to use separate Go & Search buttons. * [[Special:MyLanguage/Manual:$wgAdvancedSearchHighlighting|$wgAdvancedSearchHighlighting]] - Set to true to have nicer highlighted text in search results. * [[Special:MyLanguage/Manual:$wgEnableMWSuggest|$wgEnableMWSuggest]] {{TNT|removed-inline|1.20}} - Enable suggestions while typing in search boxes. * [[Special:MyLanguage/Manual:$wgGoToEdit|$wgGoToEdit]] {{TNT|removed-inline|1.24}} - Go button goes straight to the edit screen if the article doesn't exist. * [[Special:MyLanguage/Manual:$wgMWSuggestTemplate|$wgMWSuggestTemplate]] {{TNT|removed-inline|1.20}} - Template for internal MediaWiki suggestion engine. * [[Special:MyLanguage/Manual:$wgEnableOpenSearchSuggest|$wgEnableOpenSearchSuggest]] - Enable OpenSearch suggestions requested by MediaWiki. * [[Special:MyLanguage/Manual:$wgOpenSearchTemplate|$wgOpenSearchTemplate]] {{TNT|deprecated-inline|1.25}} - 用于开放搜索建议的模板。 * [[Special:MyLanguage/Manual:$wgEnableSearchContributorsByIP|$wgEnableSearchContributorsByIP]] - Whether searching for an IP address will be redirected to that IP's contributions page. * [[Special:MyLanguage/Manual:$wgSearchForwardUrl|$wgSearchForwardUrl]] - Set this to a URL to forward search requests to some external location. * [[Special:MyLanguage/Manual:$wgSearchEverythingOnlyLoggedIn|$wgSearchEverythingOnlyLoggedIn]] {{TNT|removed-inline|1.24}} - If set to true the 'searcheverything' preference will be effective only for logged-in users. * [[Special:MyLanguage/Manual:$wgSearchHighlightBoundaries|$wgSearchHighlightBoundaries]] - Regexp to match word boundaries. * [[Special:MyLanguage/Manual:$wgSearchSuggestCacheExpiry|$wgSearchSuggestCacheExpiry]] - Expiry time for search suggestion responses. * [[Special:MyLanguage/Manual:$wgCountTotalSearchHits|$wgCountTotalSearchHits]] {{TNT|removed-inline|1.24}} - Whether have the default search engine count total search matches to present in the Special:Search UI. * [[Special:MyLanguage/Manual:$wgUseTwoButtonsSearchForm|$wgUseTwoButtonsSearchForm]] - Sidebar's search form behavior {{anchor|Jobs}} == 作业 == * [[Special:MyLanguage/Manual:$wgJobRunRate|$wgJobRunRate]] - Speed of the background task job queue (e.g. update of links). * [[Special:MyLanguage/Manual:$wgRunJobsAsync|$wgRunJobsAsync]] - When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job execution, instead of blocking the request until the job execution finishes. * [[Special:MyLanguage/Manual:$wgJobClasses|$wgJobClasses]] - Maps jobs to their handling classes. * [[Special:MyLanguage/Manual:$wgJobTypesExcludedFromDefaultQueue|$wgJobTypesExcludedFromDefaultQueue]] - Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set. * [[Special:MyLanguage/Manual:$wgUpdateRowsPerJob|$wgUpdateRowsPerJob]] - Number of rows to update per job. * [[Special:MyLanguage/Manual:$wgJobBackoffThrottling|$wgJobBackoffThrottling]] - Limits how often jobs of a given type can run. * [[Special:MyLanguage/Manual:$wgMaxBacklinksInvalidate|$wgMaxBacklinksInvalidate]] {{TNT|removed-inline|1.23}} - Limits the maximum number of backlinks that can be invalidated when a page is editted. * [[Special:MyLanguage/Manual:$wgJobTypeConf|$wgJobTypeConf]] - Configuration for job storage. * [[Special:MyLanguage/Manual:$wgJobQueueAggregator|$wgJobQueueAggregator]] - Which aggregator to use for tracking which queues have jobs. {{anchor|Proxies}} == 代理 == * [[Special:MyLanguage/Manual:$wgBlockOpenProxies|$wgBlockOpenProxies]] {{TNT|removed-inline|1.22}} - Automatic open proxy test on edit. * [[Special:MyLanguage/Manual:$wgEnableSorbs|$wgEnableSorbs]] {{TNT|removed-inline|1.24}} - Use [http://dnsbl.sorbs.net http.dnsbl.sorbs.net] to check for open proxies. * [[Special:MyLanguage/Manual:$wgSorbsUrl|$wgSorbsUrl]] {{TNT|removed-inline|1.14}} - URL to the Sorbs blacklist. * [[Special:MyLanguage/Manual:$wgEnableDnsBlacklist|$wgEnableDnsBlacklist]] - Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies * [[Special:MyLanguage/Manual:$wgDnsBlacklistUrls|$wgDnsBlacklistUrls]] - List of DNS blacklists to use, if $wgEnableDnsBlacklist is true * [[Special:MyLanguage/Manual:$wgProxyKey|$wgProxyKey]] {{TNT|removed-inline|1.24}} - Replaced by {{ll|Manual:$wgSecretKey|$wgSecretKey}}. * [[Special:MyLanguage/Manual:$wgProxyList|$wgProxyList]] - Big list of banned IP addresses. * [[Special:MyLanguage/Manual:$wgProxyMemcExpiry|$wgProxyMemcExpiry]] {{TNT|removed-inline|1.22}} - expiration time for cached proxy IPs. * [[Special:MyLanguage/Manual:$wgProxyPorts|$wgProxyPorts]] {{TNT|removed-inline|1.22}} - Ports we want to scan for a proxy. * [[Special:MyLanguage/Manual:$wgProxyScriptPath|$wgProxyScriptPath]] {{TNT|removed-inline|1.22}} - Script used to scan for proxies. * [[Special:MyLanguage/Manual:$wgProxyWhitelist|$wgProxyWhitelist]] - Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods might say * [[Special:MyLanguage/Manual:$wgSecretKey|$wgSecretKey]] - This should always be customised in LocalSettings.php * [[Special:MyLanguage/Manual:$wgUsePrivateIPs|$wgUsePrivateIPs]] - Whether forwarded private IPs should be accepted. {{anchor|Squid}} == Squid == These settings configure MediaWiki when using a caching HTTP proxy server. They apply to [[Special:MyLanguage/Manual:Varnish_caching|caching using Varnish]] as well as [[Special:MyLanguage/Manual:Squid_caching|Squid]]. * [[Special:MyLanguage/Manual:$wgInternalServer|$wgInternalServer]] - Internal server name as known to Squid, if different. * [[Special:MyLanguage/Manual:$wgMaxSquidPurgeTitles|$wgMaxSquidPurgeTitles]] {{TNT|removed-inline|1.27}} - Maximum number of titles to purge in any one client operation * [[Special:MyLanguage/Manual:$wgSquidPurgeUseHostHeader|$wgSquidPurgeUseHostHeader]] - Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers. * [[Special:MyLanguage/Manual:$wgSquidMaxage|$wgSquidMaxage]] - HTTP代理的缓存超时。 * [[Special:MyLanguage/Manual:$wgSquidServers|$wgSquidServers]] - A list of proxy servers (ips if possible) to purge on changes. * [[Special:MyLanguage/Manual:$wgSquidServersNoPurge|$wgSquidServersNoPurge]] - Same as [[#$wgSquidServers|$wgSquidServers]], except they aren't purged. * [[Special:MyLanguage/Manual:$wgUseESI|$wgUseESI]] - 如果您运行具有ESI支持的Squid3,启用它。 * [[Special:MyLanguage/Manual:$wgUseSquid|$wgUseSquid]] - 为缓存的HTTP代理启用/禁用支持。 * [[Special:MyLanguage/Manual:$wgUseXVO|$wgUseXVO]] {{TNT|removed-inline|1.27}} - Send X-Vary-Options header for better caching (requires patched Squid). * [[Special:MyLanguage/Manual:$wgVaryOnXFP|$wgVaryOnXFP]] - Whether to add X-Forwarded-Proto to the Vary and X-Vary-Options headers for API requests and RSS/Atom feeds. {{anchor|HTCP multicast purging}} === HTCP组播刷新 === * [[Special:MyLanguage/Manual:$wgHTCPMulticastAddress|$wgHTCPMulticastAddress]] {{TNT|removed-inline|1.24}} - 用于HTCP组播刷新的地址 * [[Special:MyLanguage/Manual:$wgHTCPMulticastTTL|$wgHTCPMulticastTTL]] - HTCP组播刷新的TTL * [[Special:MyLanguage/Manual:$wgHTCPPort|$wgHTCPPort]] {{TNT|removed-inline|1.24}} - HTCP组播刷新的端口 * [[Special:MyLanguage/Manual:$wgHTCPRouting|$wgHTCPRouting]] - HTCP组播刷新的路由配置 {{anchor|Extensions}} == 扩展 == * [[Special:MyLanguage/Manual:$wgAPIListModules|$wgAPIListModules]] - API列表模块扩展。 * [[Special:MyLanguage/Manual:$wgAPIMetaModules|$wgAPIMetaModules]] - API元模块扩展。 * [[Special:MyLanguage/Manual:$wgAPIModules|$wgAPIModules]] - API模块扩展。 * [[Special:MyLanguage/Manual:$wgAPIPropModules|$wgAPIPropModules]] - API prop模块扩展。 * [[Special:MyLanguage/Manual:$wgAuth|$wgAuth]] - Authentication plugin. See {{ll|AuthPlugin.php}}. * [[Special:MyLanguage/Manual:$wgAutoloadClasses|$wgAutoloadClasses]] - Array mapping class names to filenames, for autoloading. * [[Special:MyLanguage/Manual:$wgAvailableRights|$wgAvailableRights]] - A list of available rights, in addition to the ones defined by the core. * [[Special:MyLanguage/Manual:$wgDisableInternalSearch|$wgDisableInternalSearch]] - Disable internal search so that extensions can implement it. * [[Special:MyLanguage/Manual:$wgExceptionHooks|$wgExceptionHooks]] {{TNT|removed-inline|1.30}} - Hooks that are used for outputting exceptions. * [[Special:MyLanguage/Manual:$wgExtensionAssetsPath|$wgExtensionAssetsPath]] - 至扩展目录的URL。 * [[Special:MyLanguage/Manual:$wgExtensionCredits|$wgExtensionCredits]] - Global list of extension credits. * [[Special:MyLanguage/Manual:$wgExtensionFunctions|$wgExtensionFunctions]] - 扩展函数 * [[Special:MyLanguage/Manual:$wgExtensionMessagesFiles|$wgExtensionMessagesFiles]] {{TNT|deprecated-inline|1.23}} - 扩展消息文件。 * [[Special:MyLanguage/Manual:$wgExtensionDirectory|$wgExtensionDirectory]] - 扩展目录的文件系统路径。 * [[Special:MyLanguage/Manual:$wgExtensionsDirectory|$wgExtensionsDirectory]] {{TNT|removed-inline|1.22}} - 文件系统扩展目录。 * [[Special:MyLanguage/Manual:$wgExtensionEntryPointListFiles|$wgExtensionEntryPointListFiles]] - Array of files with list(s) of extension entry points to be used in {{manual|MergeMessageFileList.php|maintenance/mergeMessageFileList.php}}. * [[Special:MyLanguage/Manual:$wgExternalStores|$wgExternalStores]] - External stores allow including content from non database sources following URL links. * [[Special:MyLanguage/Manual:$wgHooks|$wgHooks]] - 全域钩列表。 * [[Special:MyLanguage/Manual:$wgPagePropLinkInvalidations|$wgPagePropLinkInvalidations]] - Page property link table invalidation lists. * [[Special:MyLanguage/Manual:$wgParserOutputHooks|$wgParserOutputHooks]] - 解析器输出钩子。 * [[Special:MyLanguage/Manual:$wgSpecialPageCacheUpdates|$wgSpecialPageCacheUpdates]] - Additional functions to be performed with updateSpecialPages.php. * [[Special:MyLanguage/Manual:$wgSpecialPages|$wgSpecialPages]] - 自定义特殊页面列表。 {{anchor|Maintenance Scripts setting}} == 维护脚本设置 == * [[Special:MyLanguage/Manual:$wgAllowSchemaUpdates|$wgAllowSchemaUpdates]] - Allow database schema updates to be executed with [[Special:MyLanguage/Manual:Update.php|maintenance/update.php]]. * [[Special:MyLanguage/Manual:$wgCommandLineDarkBg|$wgCommandLineDarkBg]] - For colorized maintenance script output. * [[Special:MyLanguage/Manual:$wgCommandLineMode|$wgCommandLineMode]] - Indicates whether MediaWiki is running in command-line mode. '''Should never be set manually!''' * [[Special:MyLanguage/Manual:$wgDBadminpassword|$wgDBadminpassword]] - 用于[[#$wgDBadminuser|$wgDBadminuser]]的密码。 * [[Special:MyLanguage/Manual:$wgDBadminuser|$wgDBadminuser]] - Database username used by the [[Special:MyLanguage/Manual:Maintenance scripts|maintenance scripts]]. * [[Special:MyLanguage/Manual:$wgDBtestpassword|$wgDBtestpassword]] {{TNT|removed-inline|1.22}} - 用于$wgDBtestuser的密码。 * [[Special:MyLanguage/Manual:$wgDBtestuser|$wgDBtestuser]] {{TNT|removed-inline|1.22}} - Database username that has permission to create and drop the test databases only. * [[Special:MyLanguage/Manual:$wgHipHopBuildDirectory|$wgHipHopBuildDirectory]] {{TNT|removed-inline|1.22}} - The build directory for HipHop compilation. * [[Special:MyLanguage/Manual:$wgHipHopBuildType|$wgHipHopBuildType]] {{TNT|removed-inline|1.22}} - The HipHop build type. * [[Special:MyLanguage/Manual:$wgHipHopCompilerProcs|$wgHipHopCompilerProcs]] {{TNT|removed-inline|1.22}} - Number of parallel processes to use during HipHop compilation. * [[Special:MyLanguage/Manual:$wgMaintenanceScripts|$wgMaintenanceScripts]] {{TNT|removed-inline|1.23}} - Array for extensions to register their maintenance scripts with the system. * [[Special:MyLanguage/Manual:$wgEnableSelenium|$wgEnableSelenium]] {{TNT|removed-inline|1.22}} - Enable selenium tests * [[Special:MyLanguage/Manual:$wgSeleniumTestConfigs|$wgSeleniumTestConfigs]] {{TNT|removed-inline|1.22}} - Configuration for selenium test suites. * [[Special:MyLanguage/Manual:$wgSeleniumConfigFile|$wgSeleniumConfigFile]] {{TNT|removed-inline|1.22}} - Selenium configuration file * [[Special:MyLanguage/Manual:$wgUpgradeKey|$wgUpgradeKey]] - 启用 web 升级脚本时使用 {{anchor|Miscellaneous settings}} == 杂项设置 == * [[Special:MyLanguage/Manual:$wgAllUnicodeFixes|$wgAllUnicodeFixes]] - 是否总是转换特定Unicode序列为现代序列,而不管内容语言。 * [[Special:MyLanguage/Manual:$wgAntiLockFlags|$wgAntiLockFlags]] {{TNT|removed-inline|1.25}} - Anti-lock flags. * [[Special:MyLanguage/Manual:$wgCompiledFiles|$wgCompiledFiles]] {{TNT|removed-inline|1.24}} - A list of files that should be compiled into a HipHop build, in addition to those listed in $wgAutoloadClasses. * [[Special:MyLanguage/Manual:$wgGitRepositoryViewers|$wgGitRepositoryViewers]] - Map GIT revision numbers and repository URLs to their respective gitweb URLs in [[Special:Version]] * [[Special:MyLanguage/Manual:$wgGitBin|$wgGitBin]] - 至git二进制的路径。 * [[Special:MyLanguage/Manual:$wgExternalDiffEngine|$wgExternalDiffEngine]] - Use external C++ diff engine (module wikidiff from the extensions package). * [[Special:MyLanguage/Manual:$wgFixArabicUnicode|$wgFixArabicUnicode]] - Set this to true to clean up archaic Unicode sequences in Arabic text. * [[Special:MyLanguage/Manual:$wgFixMalayalamUnicode|$wgFixMalayalamUnicode]] - Set this to true to clean up archaic Unicode sequences in Malayalam text (Default true if ''[[Special:MyLanguage/Manual:$wgLanguageCode|$wgLanguageCode]] = "ml"''). * [[Special:MyLanguage/Manual:$wgMaxShellFileSize|$wgMaxShellFileSize]] - Maximum file size created by shell processes under Linux, in KB. * [[Special:MyLanguage/Manual:$wgMaxShellMemory|$wgMaxShellMemory]] - Maximum amount of virtual memory available to shell processes under Linux, in KB. * [[Special:MyLanguage/Manual:$wgMaxShellTime|$wgMaxShellTime]] - Maximum CPU time in seconds for shell processes under linux. * [[Special:MyLanguage/Manual:$wgMemoryLimit|$wgMemoryLimit]] - The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount. * [[Special:MyLanguage/Manual:$wgPoolCounterConf|$wgPoolCounterConf]] - Configuration for processing pool control. * [[Special:MyLanguage/Manual:$wgShellLocale|$wgShellLocale]] - 用于<code>LC_CTYPE</code>的区域设置。 * [[Special:MyLanguage/Manual:$wgUseAutomaticEditSummaries|$wgUseAutomaticEditSummaries]] - MediaWiki是否应该产生自动编辑摘要。 * [[Special:MyLanguage/Manual:$wgUseTagFilter|$wgUseTagFilter]] - Allow filtering by change tag in recentchanges, history, etc. * [[Special:MyLanguage/Manual:$wgLegacySchemaConversion|$wgLegacySchemaConversion]] {{TNT|deprecated-inline}} - 为大型网站在将架构从1.4迁移至1.5时,加速转换步骤的选项。 * [[Special:MyLanguage/Manual:$wgUseTrackbacks|$wgUseTrackbacks]] {{TNT|removed-inline|1.19}} - 是否使用trackbacks。 * [[Special:MyLanguage/Manual:$wgAjaxEditStash|$wgAjaxEditStash]] - Whether edits should be prepared via AJAX as users type edit summaries. ==参见== * {{Manual|Configuration for developers}}: how to set and retrieve configuration variables. * {{Manual|Extension registration#Configs (Your extension/skins settings)}}: 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:}}| ]]
该页面使用的模板:
模板:$wg
(
查看源代码
)
模板:Anchor
(
查看源代码
)
模板:Git file
(
查看源代码
)
模板:Languages
(
查看源代码
)
模板:Ll
(
查看源代码
)
模板:Manual
(
查看源代码
)
模板:TNT
(
查看源代码
)
模板:TOCright
(
查看源代码
)
模板:Warning
(
查看源代码
)
模板:Wg
(
查看源代码
)
返回至
Configuration settings
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息
分类
Is & Linux
随记
诗词鉴赏
链接
小鹿的记事本
大鹿的笔记本
ICP备案
沪ICP备18018903号-5
沪ICP备18018903号-6