Manual:Configuration settings/zh

From MediaWiki.org
Jump to: navigation, search

以下是一个从 DefaultSettings.php 中提取的参数列表。

请不要直接修改 DefaultSettings.php 文件,而应该把您需要的参数复制到 LocalSettings.php 中并替换掉原有的参数。

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

一般设置[edit]

路径[edit]

See also Uploads for file/image upload path settings.
See also Skins for skins path settings.

全局对象[edit]

  • $wgConf - 创建一个网站配置对象。在默认安装中用的不多。

邮件设置[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]

LoadBalancer 设置[edit]

MSSQL 专有设置[edit]

MySQL 专有设置[edit]

PostgreSQL 专有设置[edit]

  • $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in.

SQLite 专有设置[edit]

共享数据库设置[edit]

压缩存储支持[edit]

  • $wgCompressRevisions - If this is set on, all future revisions will be compressed on page save, but only if zlib support is available and enabled in PHP.
  • $wgDisableOutputCompression - Disable output compression (compression is enabled by default if zlib is available).

本地化[edit]

时区[edit]

中文特定设置[edit]

Hindi/Arabic-specific[edit]

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

调试/日志[edit]

Profiling[edit]

站点自定义[edit]

名字空间[edit]

Per-page settings[edit]

See also Manual:Page customizations/zh.

皮肤[edit]

分类[edit]

缓存[edit]

Persistent Link Cache[edit]

Memcached 设置[edit]

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

跨维基[edit]

权限控制[edit]

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

  • $wgAutopromote - 允许自动提示用户一些flags如果他符合标准。 Allow automatically promote user some flags if he matches criterias
  • $wgAccountCreationThrottle - 每个IP地址可以创建的用户数量,(从0---禁用) 需要 memcached。Number of accounts each IP address may create, 0 to disable. Requires memcached.
  • $wgAllowPageInfo - 允许信息动作,目前非常低效。Allow the info action, very inefficient at the moment.
  • $wgBlockAllowsUTEdit - 允许被封锁的用户编辑他们的讨论页面。Allow blocked users to edit their talk pages.
  • $wgDeleteRevisionsLimit - 设置一个整数用来表明在“bigdelete”权限要求删除一篇文章之前该文章必须修改多少次。Integer of how many revisions an article must have before the bigdelete right is required to delete it.
  • $wgDisabledActions - 被禁止文章行为数列,例如:浏览、编辑、删除等等。 Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
  • $wgEmailConfirmToEdit - 在用户被允许编辑之前,请求他们进行邮件地址认证。Require users to confirm email address before they can edit, true to enable.
  • $wgEnableAPI - 启动由 API 数据到 api.php 的直接通道。 Enable direct access to the data API through api.php.
  • $wgEnableWriteAPI - 当授权用户访问时,允许被用于执行写入操作系统(页面编辑、回滚等等)的API启用Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it.
  • $wgGroupsAddToSelf - 允许用户从指定组添加自己 allow users to add themselves from specified groups via Special:Userrights
  • $wgGroupsRemoveFromSelf - 允许用户从制定组删除自己。allow users to remove themselves from specified groups via Special:Userrights
  • $wgPasswordSalt - 将兼容旧版本的安装设为false For compatibility with old installations set to false.
  • $wgReadOnly - 由于某些原因禁止编辑、显示某些文字Disallows editing, displaying the string given as the reason.
  • $wgReadOnlyFile - 如果存在这个文件,那么数据库因为这个文件中给出的原因被锁定。If this file is found, the database is locked for the reason given in the contents of the file.
  • $wgSysopEmailBans - 让系统禁止将那些电子邮件用户进行访问 Allow sysops to ban users from accessing Emailuser.
  • $wgSysopUserBans - 系统禁止登陆的用户 Allow sysops to ban logged-in users
  • $wgWhitelistAccount (deprecated) - 可以建立用户的帐户类型 Types of accounts that can create new users.
  • $wgWhitelistEdit (deprecated) - 如果这个变量的值为true,那么用户必须登陆才能进行编辑。(1.4以前的版本)If true, users must login to edit. (versions 1.4 and previous)

See Manual:Preventing access/zh 有关更多的关于访问的想法与设置,参见:Manual:User rights management/zh了解更多信息。$wgGroupPermissions, $wgAddGroups, $wgRemoveGroups,等等。for more methods and settings concerning access. See also Manual:User rights management/zh for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

Rate limiter[edit]

Squid[edit]

Cookies[edit]

Reduction[edit]

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

MIME 类型[edit]

See also Manual:Mime type detection/zh

图片[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/zh

反病毒[edit]

特殊页面[edit]

最近更改[edit]

参见 Special:Recentchanges

UDP 更新[edit]

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

用户[edit]

  • $wgActiveUserEditCount - 将被系统当做“活动”用户的编辑次数 The number of edits a person must make to be considered an "active" user .
  • $wgActiveUserDays - 将被系统看做“活动”用户的人的天数 The number of days a person must make edits to be considered an "active" user .
  • $wgAutoConfirmAge - 在一个帐户被授予隐含的‘自动认证’组成员之前需要多少秒 Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group membership.
  • $wgAutoConfirmCount - 在一个帐户被授予隐含的‘自动认证’组成员之前需要编辑多少次 Number of edits an account requires before it's given the implicit 'autoconfirm' group membership.
  • $wgAllowRealName - 是否允许实名域 Whether or not to allow real name fields.
  • $wgDefaultUserOptions - 添加到这个列的设置会废除默认设置中匿名访问与新注册用户的参数 Settings added to this array will override the default settings for the user preferences used by anonymous visitors and newly created accounts.
  • $wgDisableAnonTalk - 对匿名用户禁用‘talk’页面(IPs)Disable talk pages for anonymous users (IPs)
  • $wgMaxNameChars - 用户名最多是多少字节 Maximum number of bytes in username.
  • $wgMaxSigChars - 最大的自定义签名长度 Maximum customized signature length.
  • $wgShowIPinHeader - 默认为匿名用户在用户工具栏显示IP地址Show the IP in the user bar for anonymous users by default.

用户代理[edit]

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

版权[edit]

任务[edit]

扩展[edit]

HTCP multicast purging[edit]

其他设置[edit]

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