Manual:Force preview/fr

Force preview is JavaScript that prevents specified individuals or groups from saving a wiki page before they preview it at least once.

In order to use this code, insert it into your wiki's MediaWiki:Common.js page.

Note that this method is not foolproof. If a user disables JavaScript in their browser, they will not have preview forced on them. If you want to ensure that this policy is enforced, then you should look at.

Pour MediaWiki 1.17 et plus récent
Not right working with LivePreview (v.1.17) and OOUI (v.1.23).

Pour MediaWiki 1.14 et plus récent
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.

Anciennes versions
The below scripts are based on Marc Mongenet's script, from.

Force preview par wgUserGroups, nécessite 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.

Voir aussi

 * - A MediaWiki extension that performs the same function, but cannot be circumvented by disabling javascript
 * - A MediaWiki extension that performs the same function, but cannot be circumvented by disabling javascript