Manual:Force preview

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 .

For MediaWiki 1.17 or newer
Not right working with LivePreview (v.1.17) and OOUI (v.1.23).

kirilkameonjekihamkeesmeshonemigam

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.