手册:Huggle/配置

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Huggle/Configuration and the translation is 37% complete.
Other languages:
English • ‎dansk • ‎español • ‎magyar • ‎हिन्दी • ‎中文 • ‎日本語

Huggle的配置取決於其範圍而儲存在四個位置之一:

单个项目 所有项目
单个用户 用户子页面 本地文件
所有用户 项目设置页面 元维基上的全域配置页

All configuration files consist of a series of lines of the form option:value, where option is one of the values listed below. Option names are not case-sensitive. Blank lines, lines starting with // and unrecognized options are ignored. Values can break across lines provided these extra lines begin with one or more spaces.

Most user and local configuration settings may be changed through the Options window within Huggle. Preset value

用户配置

用戶配置子頁面上的設置僅影響該用戶,且僅影響於該項目。

  • enable – true/false. 除非存在並設置為true,否則Huggle將無法運作。
  • anonymous - string. 否顯示匿名用戶的貢獻。 可用值:「yes」、「no」、「only」。預設值:yes
  • auto-advance – true/false. 回退修訂後,自動前往下一個修訂差異。預設值:false
  • auto-whitelist - true/false. 是否自動將用戶列入白名單。預設值:false
  • confirm-multiple – true/false. 如果回退同一用戶的多個編輯,進行確認。(在頁面歷史記錄中恢復到舊版本時不進行確認,因為在這種情況下很明顯是要回退多個編輯)。預設值:false
  • confirm-same - true/false. 如果要回退的修訂是由正在回退的用戶做出的,進行確認。預設值:true
  • extend-reports - true/false. 是否在更多破壞時擴展破壞提報。預設值:true
  • irc-port – integer. 連接到IRC時使用的端口。使用6664–6669中的任何整數。預設值:6667
  • minor – comma-separated list. 標記為次要編輯的類型。可用值:「reverts」、「warnings」、「tags」、「reports」、「notifications」和「other」。使用「none」代表無。預設值:「reverts」。請注意,reverts將始終標記為次要編輯。
  • namespaces – comma-separated list. 要檢查破壞的命名空間。對於主命名空間使用「article」,對所有命名空間使用「all」,對所有talk命名空間使用「alltalk」,前綴「-」代表排除。預設值:all
  • new-pages - true/false. 是否在佇列中包含新頁面。預設值:false
  • preload – integer. 預先加載多少差異。預加載減少了加載差異的等待時間,但稍微減慢了其他請求。設置為0以禁用預加載。不要設置為大於5。預設值:2。如果連接速度較慢,建議禁用此功能。
  • report - string. 當最後警告用戶時該做什麼。使用「none」不執行任何操作,「prompt」提示用戶提報,「auto」自動發出提報。預設值:auto
  • revert-summaries - comma-separated list. 回退下拉選單中提供的摘要。使用\,以在文字中包含逗號。
  • rollback – true/false. 如果回退可用則使用。預設值:true
  • show-new-edits – true/false. 如果正在瀏覽的頁面被編輯了,跳轉到該編輯的差異。預設值:true
  • show-queue - true/false. 是否顯示修訂佇列。預設值:true
  • templates - comma-separated list. Templates to show in the templates drop-down menu. Each item of the list is a pair of values separated by a semicolon; the first is the text displayed in the menu, and the second is the name of the template to be used. Use \, to include a literal comma, \; to include a literal semicolon.
  • tray-icon - true/false. Display an icon in the notification area, allows application to be minimized to the tray. Default: false.
  • update-whitelist – true/false. Whether to update the shared whitelist on exit. Default: true.
  • watchlist – comma-separated list. Types of edit which should add the page to your watchlist. Available values: "reverts", "warnings", "tags", "reports", "notifications" and "other". Use "none" for none. Default: none.
管理员选项

The following options have effect only when used with an administrator account:

  • admin - true/false. Use administrator functions (block/delete) if available. Default: true.
  • block-prompt - true/false. Whether to show the block form if asked to warn a user with a final warning. Default: true.
  • block-reason – string. Default block reason on block form. Default: '[[Wikipedia:Vandalism|Vandalism]]'.
  • blocktime – string. Default block expiry time when blocking logged-in users. Default: indefinite.
  • blocktime-anon – string. Default block expiry time when blocking anonymous users. Default: 31 hours.

项目配置

Settings on project configuration pages apply to all users of a single project. The user configuration settings listed in the section above also work on project configuration pages, and serve as defaults for those values, but are overridden by the user's configuration settings.

Access control
  • approval: true/false. If true, user list acts as an approval list, and only users listed there may use Huggle. Default false
  • enable-all: true/false. If false, Huggle will not work for any user. For use only in exceptional circumstances. Default true
  • require-admin: true/false. If true, Huggle will only work if the user is an administrator. Default false
  • require-autoconfirmed: boolean. If true, Huggle will work only if the user is autoconfirmed.
  • require-config: true/false. If true, all users must have a configuration page with enable set to 'true'. This allows administrators to prevent use of Huggle by a user account by blanking and protecting its configuration page. Default false
  • require-edits: integer. Number of edits an account must have made before it is able to use Huggle. (Accounts must be autoconfirmed, regardless of this setting.) Default 0
  • require-rollback: true/false. If true, Huggle will only work if the user has rollback. Default false
  • require-time: integer. Number of days for which a user account must have been registered before it is able to use Huggle. (Accounts must be autoconfirmed, regardless of this setting.)
  • min-version: version number. Versions older than this will not work.
Other
  • aiv: string. Page to which vandalism reports are made.
  • aivbot: string. Page to which vandalism reports are made by bot accounts; Huggle checks this before making a report itself.
  • ignore: comma-separated list. Pages to which all edits will be ignored regardless of user. Talk pages of these pages will also be ignored. Use \, to include a literal comma.
  • uaa: string. Page to which username reports are made.
  • uaabot: string. Page to which username reports are made by bot accounts; Huggle checks this before making a report itself.
  • userlist: string. Location of Huggle's user list.
  • whitelist: string. Location of Huggle's user whitelist.
  • whitelist-edit-count: integer. Number of edits a user must have before they are added to the user whitelist.
  • expand-reports: bool, use subst: for report templates for AIV, default: false
  • months: list of months separated by ; and ,

本地配置

Settings stored locally apply across all projects and apply only to users of that computer. They will be retained if you log in with a different account, and lost if moving between computers, but for the most part can be thought of as applying to a single user account.

The local configuration file is stored in \huggle\config.txt in the user's Application Data folder. The file is updated automatically when Huggle exits.

  • irc: boolean. Whether to use the IRC recent changes feed. Default false
  • log-file: string. File path to which Huggle activity will be written.
  • project: string. Last project used.
  • proxy-enabled, proxy-port, proxy-server, proxy-userdomain, proxy-username: proxy settings. Default false
  • username: string. Last username used.
  • window-left, window-top, window-width, window-height: integers. Location and size of Huggle's main window.
  • window-maximize: boolean. Whether the main window is maximized.
  • shortcuts: comma-separated list. Keyboard shortcuts.
  • revert-summaries: comma-separated list. Summaries that have been entered into the "Revert with summary" dialog.

全域配置

Settings on the global configuration page at meta:Huggle/Config apply to all users and all projects.

  • enable-all: boolean. If false, Huggle will not work on any project. Default false
  • config: string. Location of project configuration page on each project.
  • documentation: string. URL for documentation page.
  • feedback: string. URL for feedback page.
  • irc-server: string. Location of IRC recent changes server.
  • irc-server-name: string. Hostname used on the IRC recent changes server.
  • projects: dictionary. Projects on which Huggle can be used. Each item is the project name, followed by its URL.
  • sensitive-addresses: dictionary. IP ranges that are considered "sensitive". Each item is a regex matching the IP range, followed by a description.
  • version: version number. The current version of Huggle. Users of older versions will be notified of this, but the older versions will continue to work.
  • user-agent: string. User agent string that will be used by Huggle. $1 is replaced by the version number.
  • user-config: string. Location of user configuration pages on each project.