Manual:Force preview/zh

強制預覽(Force preview) 是一個能使特定的人或用戶組別於保存頁面之前必須至少預覽頁面至少一次的JavaScript.

欲使用此程式碼，請將其導入至個別維基的 MediaWiki:Common.js 頁面.

注意這個方法並非完全萬無一失. 如果該用戶於瀏覽器關閉JavaScript功能，此強制預覽功能是不會運作的. 如果您想要確保這個方針是強制執行的，那麼您應該查看.

For Mediawiki 1.14 or newer
The following will permit you to control who has preview mode forced on them. It permits you to set one or more user groups to bypass forced preview and save directly. In order to permit a user group, add the group name to the permittedGroups array as shown in the comments with the JavaScript code.

Older Versions
The below scripts are based on Marc Mongenet's script, from.

Force preview by wgUserGroups, requires a MW version >= 1.10
If you wish to provide exceptions to certain usergroups. Just change == (EQUAL TO) signs to != (NOT EQUAL TO) Common choices range from "user", "bureaucrat", "sysop" and more depending on your configuration.