Manual:Configuration settings/zh-hant

Jump to: navigation, search

以下的設定都是跟據這個DefaultSettings.php檔案 所衍生出來的。


按字母順序排列 | 按照功能順序排列 | Category:MediaWiki configuration settings



E-mail 設定[edit]

  • $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 - 系統管理員的電子郵件
  • $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.

E-mail 通知設定[edit]

  • $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通知該用戶。
  • $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


Shared DB settings[edit]

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

Sysop SQL queries[edit]

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

Warning Warning: 如果設定不恰當,可能會造成錯誤。




Site customization[edit]


Per-page settings[edit]

See also Manual:Page customizations.




Persistent Link Cache[edit]

Memcached settings[edit]

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



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 for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

Rate limiter[edit]






Uploads have to be specially set up to be secure.

Shared uploads[edit]

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

MIME types[edit]

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




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


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 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.

Special pages[edit]

Recent changes[edit]

See Special:Recentchanges

UDP updates[edit]

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


User agent[edit]


  • $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.




HTCP multicast purging[edit]

Miscellaneous settings[edit]

語言:Project:Language policy English  • dansk • Deutsch • español • français • Bahasa Indonesia • 日本語 • 한국어 • polski • português do Brasil • русский • 中文 • 中文(繁體)‎