Extension:ForcePreview

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:MIT licensed extensions
MediaWiki extensions manual
ForcePreview
Release status: stableCategory:Stable extensions
Implementation User rights Category:User rights extensions
Description Forces unprivileged users to preview before saving
Author(s) Ryan Schmidt (Skizzerztalk)
Latest version 2.0.0 (2017-09-20)
MediaWiki 1.29+Category:Extensions with manual MediaWiki version
Database changes No
License MIT License
Download Category:Extensions in Wikimedia version control
README
Example strategywiki.org
Quarterly downloads 2 (Ranked 108th)
Translate the ForcePreview extension if it is available at translatewiki.net
Category:All extensions

The ForcePreview forces unprivileged users to preview before saving.

Usage

Users without the forcepreviewexempt right will be forced to use the "Show preview" (or "Live Preview", if enabled) button before being allowed to save the page.

Installation

  • Download and move the extracted ForcePreview folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ForcePreview
  • Add the following code at the bottom of your LocalSettings.php file:
    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.

See also

  • 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).
Category:All extensions Category:BeforePageDisplay extensions Category:EditPageBeforeEditButtons extensions Category:Extensions in Wikimedia version control Category:Extensions included in Miraheze Category:Extensions included in WikiForge Category:Extensions which add rights Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:MIT licensed extensions Category:ResourceLoaderGetConfigVars extensions Category:Stable extensions Category:User rights extensions