Mediawiki LocalSettings.php 参数指南

728x15 ad here

出自Guoshuang Wiki

跳转到: 导航, 搜索

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

Never edit DefaultSettings.php; copy appropriate lines to LocalSettings.php instead and amend them as appropriate.

Listed alphabetically | Listed by function | Category:MediaWiki configuration settings

目录

一般设置

路径

邮件设置

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

邮件通知设置

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

数据库设置

共享数据库设置

  • $wgSharedDB - The name of the shared database (currently for shared user table only).

Sysop SQL queries

These settings are for sysops to make queries through Extension:Asksql. Template:Warning

本地化

Debug/logging

Profiling

用户站点

Namespaces

Per-page settings

See also Manual:Page customizations.

皮肤

类别

Cache

Persistent Link Cache

Memcached settings

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.

Interwiki

Access

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

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

Rate limiter

Proxies

Squid

Cookies

Reduction

上传

Uploads have to be specially set up to be secure.

共享上传

These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting.

MIME types

See also Manual:Mime type detection

图片

Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.

  • $wgUseImageResize (deprecated) - Set $wgUseImageResize to true if you want to enable dynamic server side image resizing (Thumbnails)
  • $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data.
  • parameters for upload path
  • $wgThumbLimits - List of image sizes users can pick from
  • $wgTrustedMediaFormats - List of trusted media-types and mime types.
  • $wgSVGMaxSize - Don't scale a SVG larger than this unless its native size is larger.

See also Manual:Configuring file uploads

杀毒

语法

HTML

  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.
  • $wgUserHtml (deprecated) - Allow limited user-specified HTML in wiki pages?

TeX

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

Tidy

Tidy is an open source tool that cleans up broken HTML. You can use this to ensure that broken HTML in articles doesn't affect the layout of your wiki.

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

See also Manual:Build Tidy from source.

特殊页

最近更改

See Special:Recentchanges

UDP updates

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

用户

用户代理

Feed

  • $wgFeed - Toggle syndication feeds on and off.
  • $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
  • $wgFeedDiffCutoff - When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
  • $wgFeedLimit - Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages.

版权

Jobs

扩展

HTCP multicast purging

Miscellaneous settings

个人工具
125x125 ad here