mediawiki / purge-page
Provides the #purge parser function
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 1
Type:mediawiki-extension
pkg:composer/mediawiki/purge-page
Requires
- php: >=5.4
- composer/installers: >1.0.12
This package is auto-updated.
Last update: 2025-02-13 00:59:36 UTC
README
The PurgePage extension provides the #purge parser function
to MediaWiki. This parser function allows to trigger an update to a parser
functions whenever the page where this function is used is updated.
Example 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 SemanticMediawiki query on Bar that contains data from Foo in the
results.
Requirements
- PHP 5.4 or later
- MediaWiki 1.26 or later
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
and extract it into the extensions directory of your MediaWiki installation.)
Then add the following line to your LocalSettings.php:
wfLoadExtension('PurgePage');
License
GNU General Public License 2.0 or later.