Manual:Force preview

Force preview is a javascript that prevents specified individuals or groups from saving a wiki page before they preview it at least once. 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.


 * QUESTION: So if we only want guests to have the preview the code would look like this: