Extension:ForcePreview
Appearance
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.44+ |
| Database changes | No |
|
forcepreviewexempt |
|
| Licence | MIT License |
| Download | README |
| Example | strategywiki.org |
| Translate the ForcePreview extension if it is available at translatewiki.net | |
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
ForcePreviewfolder to yourextensions/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;
Done – Navigate to Special:Versionon 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).
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Stable extensions/en
- User rights extensions/en
- Extensions which add rights/en
- EditPageBeforeEditButtons extensions/en
- BeforePageDisplay extensions/en
- ResourceLoaderGetConfigVars extensions/en
- MIT licensed extensions/en
- Extensions in Wikimedia version control/en
- All extensions/en
- Extensions included in Miraheze/en
