Extension:PurgePage
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> |
PurgePage Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | Provides the #purge parser function |
Author(s) | Stephan Gambke (F.trotttalk) |
Latest version | 1.0.0 (2016-07-07) |
MediaWiki | 1.26+ |
PHP | 5.4+ |
Database changes | No |
Composer | mediawiki/purge-page |
License | GNU General Public License 2.0 or later |
Download | GitHub:
<translate> Note:</translate> README RELEASE-NOTES |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
The PurgePage extension provides the #purge
parser function to MediaWiki. This parser function allows to trigger an update of the target page whenever the origin page on which this function is used is updated.
Usage
On page Foo add the following parser function call to the wikitext:
{{#purge:Bar}}
Now every time Foo is purged (e.g., every time it is edited and saved), Bar will also be updated.
This can be useful, when the content of Bar depends on Foo, e.g. when using a Semantic MediaWiki query on Bar that contains data from Foo in the results.
Installation
The recommended way to install this extension is by using Composer. Just add the following to the MediaWiki "composer.local.json" file and run php composer.phar update mediawiki/purge-page
from the MediaWiki installation directory.
{
"require": {
"mediawiki/purge-page": "~1.0"
}
}
(Alternatively, you can download a tar ball or zip file from GitHub, extract it into the extensions
directory of your MediaWiki installation and rename the extension's directory to PurgePage
.)
Then add the following line to your "LocalSettings.php" file:
wfLoadExtension( 'PurgePage' );
See also
- Pages with script errors
- Pages with broken file links
- Unmaintained extensions
- Extensions without an image
- Parser function extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- Extensions supporting Composer
- GPL licensed extensions
- Extensions in GitHub version control
- ParserFirstCallInit extensions
- All extensions
- Unmaintained Semantic MediaWiki extensions