Extension:Examples

Category:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
Examples
Release status: stableCategory:Stable extensions
Implementation ExampleCategory:Extension examples, ContentHandler Category:ContentHandler extensions
Author(s) Krinkle, Kaldari
MediaWiki 1.32Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Translate the Examples extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensionsCategory:Extensions not in ExtensionJson

The Examples extension is a collection of small extensions that extend the BoilerPlate extension, implementing some common features. It has many additional annotations and inline comments explaining how it all works. Read the Examples extension, base your own code on the BoilerPlate extension.

Installation

  • Download and move the extracted examples 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/examples
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'examples' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


See also

Category:All extensions Category:ContentHandler extensions Category:Extension examples Category:Extensions in Wikimedia version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:GPL licensed extensions Category:Stable extensions