Manual:Configuration settings/zh

From MediaWiki.org

Jump to: navigation, search

(希望能有同好和我一起翻译,我的英文水平一般,欢迎纠正,翻译完成,这些文字删除)--Wikilv.com 14:59, 10 April 2008 (UTC)

使用指南:配置与设定 以下是一个基于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

Contents

[edit] 一般设置

[edit] 路径

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

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

[edit] 数据库设置

[edit] 共享数据库设置

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

[edit] Sysop SQL queries

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

Warning Warning:  Dangerous if not configured properly.

[edit] 本地化

[edit] Debug/logging

[edit] Profiling

[edit] 用户站点

[edit] Namespaces

[edit] Per-page settings

See also Manual:Page customizations.

[edit] 皮肤

[edit] 类别

[edit] Cache

[edit] Persistent Link Cache

[edit] Memcached settings

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

[edit] Interwiki

[edit] 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.

[edit] Rate limiter

[edit] Proxies

[edit] Squid

[edit] Cookies

[edit] Reduction

[edit] 上传

Uploads have to be specially set up to be secure.

[edit] 共享上传

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

[edit] MIME types

See also Manual:Mime type detection

[edit] 图片

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

[edit] 杀毒

[edit] 语法

[edit] HTML

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

[edit] 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.

[edit] 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.

[edit] 特殊页

[edit] 最近更改

See Special:Recentchanges

[edit] UDP updates

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

[edit] 用户

[edit] 用户代理

[edit] 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.

[edit] 版权

[edit] Jobs

[edit] 扩展

[edit] HTCP multicast purging

[edit] Miscellaneous settings

Personal tools