Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gesinn-it/editwarning
A MediaWiki extension showing a warning message if two users try to edit the same article at the same time.
https://github.com/gesinn-it/editwarning
mediawiki-extension
Last synced: 14 days ago
JSON representation
A MediaWiki extension showing a warning message if two users try to edit the same article at the same time.
- Host: GitHub
- URL: https://github.com/gesinn-it/editwarning
- Owner: gesinn-it
- License: gpl-2.0
- Created: 2020-09-01T13:34:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T10:44:30.000Z (16 days ago)
- Last Synced: 2024-12-29T11:24:36.928Z (16 days ago)
- Topics: mediawiki-extension
- Language: PHP
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EditWarning
The EditWarning extension displays a warning if user edits a page/section which is currently being edited.On pages which are being edited by many users simultaneously, edit conflicts can easily happen. This extension tries to avoid this problem by showing a warning message if the user edits a page that is being edited by other users at the same time.
Supported editing modes:
* Source edititing
* Editing via Page Forms
* Editing via VisualEditorThis extension was inspired by https://github.com/nemphis/mw-editwarning/ which has not been maintained for a long time.
## Installation
Download and place the file(s) in a directory called RegexFunctions in your extensions/ folder.Add the following code at the bottom of your LocalSettings.php:
```php
wfLoadExtension("EditWarning");
```
Run the "update.php" script from the base directory of your MediaWiki installation:```shell
php maintenance/update.php
```
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.## Known Issues
The extension can only recognize the cancel of page editing, if the user uses the "Cancel" button. Otherwise the edit warning will be shown until a timeout (default 10 minutes).## Configuration
Option | Default | Description |
--- | --- | --- |
$wgEditWarning_ShowInfoBox | false | Displays a info box for the first editor. |
$wgEditWarning_Timeout | 10 | Timout until a edit warning is removed automatically. |