The
ForcePreview
forces unprivileged users to preview before saving.
Usage
[
edit
]
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
[
edit
]
- 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
;
-
Done
? Navigate to
Special:Version
on your wiki to verify that the extension is successfully installed.
See also
[
edit
]
- 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:
This is not an authoritative list.
Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.
Always check with your wiki farms/hosts or bundle to confirm.
|