Manual:Huggle/Configuration/zh

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

All configuration files consist of a series of lines of the form, where   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

用户配置
用戶配置子頁面上的設置僅影響該用戶，且僅影響於該項目.
 * – true/false. 除非存在並設置為true，否則Huggle將無法運作.
 * - string. 否顯示匿名用戶的貢獻. 可用值：「yes」、「no」、「only」. 預設值： yes.
 * – true/false. 回退修訂後，自動前往下一個修訂差異. 預設值： false.
 * - true/false. 是否自動將用戶列入白名單. 預設值： false.
 * – true/false. 如果回退同一用戶的多個編輯，進行確認. （在頁面歷史記錄中恢復到舊版本時不進行確認，因為在這種情況下很明顯是要回退多個編輯）. 預設值： false.
 * - true/false. 如果要回退的修訂是由正在回退的用戶做出的，進行確認. 預設值： true.
 * - true/false. 是否在更多破壞時擴展破壞提報. 預設值： true.
 * – integer. 連接到IRC時使用的端口. 使用6664–6669中的任何整數. 預設值：6667.
 * – comma-separated list. 標記為次要編輯的類型. 可用值：「reverts」、「warnings」、「tags」、「reports」、「notifications」和「other」. 使用「none」代表無. 預設值：「reverts」. 請注意，reverts將始終標記為次要編輯.
 * – comma-separated list. 要檢查破壞的命名空間. 對於主命名空間使用「article」，對所有命名空間使用「all」，對所有talk命名空間使用「alltalk」，前綴「-」代表排除. 預設值： all.
 * - true/false. 是否在佇列中包含新頁面. 預設值： false.
 * – integer. 預先加載多少差異. 預加載減少了加載差異的等待時間，但稍微減慢了其他請求. 設置為0以禁用預加載. 不要設置為大於5. 預設值： 2 . 如果連接速度較慢，建議禁用此功能.
 * - string. 當最後警告用戶時該做什麼. 使用「none」不執行任何操作，「prompt」提示用戶提報，「auto」自動發出提報. 預設值： auto
 * - comma-separated list. 回退下拉選單中提供的摘要. 使用 以在文字中包含逗號.
 * – true/false. 如果回退可用則使用. 預設值： true.
 * – true/false. 如果正在瀏覽的頁面被編輯了，跳轉到該編輯的差異. 預設值： true.
 * - true/false. 是否顯示修訂佇列. 預設值： true.
 * - 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.
 * - true/false. Display an icon in the notification area, allows application to be minimized to the tray. Default: false.
 * – true/false. Whether to update the shared whitelist on exit. Default: true.
 * – 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:
 * 管理员选项
 * - true/false. Use administrator functions (block/delete) if available. Default: true.
 * - true/false. Whether to show the block form if asked to warn a user with a final warning. Default: true.
 * – string. Default block reason on block form. Default: ' Vandalism '.
 * – string. Default block expiry time when blocking logged-in users. Default: indefinite.
 * – 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


 * : true/false. If true, user list acts as an approval list, and only users listed there may use Huggle. Default false
 * : true/false. If false, Huggle will not work for any user. For use only in exceptional circumstances. Default true
 * : true/false. If true, Huggle will only work if the user is an administrator. Default false
 * : boolean. If true, Huggle will work only if the user is autoconfirmed.
 * : true/false. If true, all users must have a configuration page with  set to 'true'. This allows administrators to prevent use of Huggle by a user account by blanking and protecting its configuration page. Default false
 * : 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
 * : true/false. If true, Huggle will only work if the user has rollback. Default false
 * : 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.)
 * : version number. Versions older than this will not work.


 * Other


 * : string. Page to which vandalism reports are made.
 * : string. Page to which vandalism reports are made by bot accounts; Huggle checks this before making a report itself.
 * : 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.
 * : string. Page to which username reports are made.
 * : string. Page to which username reports are made by bot accounts; Huggle checks this before making a report itself.
 * : string. Location of Huggle's user list.
 * : string. Location of Huggle's user whitelist.
 * : integer. Number of edits a user must have before they are added to the user whitelist.
 * : bool, use subst: for report templates for AIV, default: false
 * : 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.


 * : boolean. Whether to use the IRC recent changes feed. Default false
 * : string. File path to which Huggle activity will be written.
 * : string. Last project used.
 * : proxy settings. Default false
 * : string. Last username used.
 * : integers. Location and size of Huggle's main window.
 * : boolean. Whether the main window is maximized.
 * : comma-separated list. Keyboard shortcuts.
 * : comma-separated list. Summaries that have been entered into the "Revert with summary" dialog.

全域配置
Settings on the global configuration page at Huggle/Config apply to all users and all projects.


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