From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:ForcePreview and the translation is 11% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎मैथिली • ‎中文 • ‎日本語 • ‎한국어
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation User rights
Description Forces unprivileged users to preview before saving
Author(s) Ryan Schmidt (Skizzerztalk)
Latest version 2.0.0 (2017-09-20)
MediaWiki 1.29+
Database changes No
License MIT License
Example strategywiki.org
Added rights
Hooks used
Translate the ForcePreview extension if it is available at translatewiki.net
Check usage and version matrix.

The ForcePreview forces unprivileged users to preview before saving.


Users without the forcepreviewexempt right will be forced to use the "पूर्वप्रदर्शन" (or "Live Preview", if enabled) button before being allowed to save the page.


  • Download and place the file(s) in a directory called ForcePreview in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ForcePreview' );
    // Does not force preview for registered users
    $wgGroupPermissions['user']['forcepreviewexempt'] = true;
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

एहो सभ देखु

  • Manual:Force preview - JavaScript that performs the same function, albeit easier to work around (users can simply disable JavaScript on their browser to get around the restriction).