Extension:Example

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Example

Release status: stable

Implementation Example
Author(s) Krinkle, Kaldari
MediaWiki 1.19
License GPL2+
Download

Translate the Example extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The Example extension is an example of how to use Extension:BoilerPlate to create an extension implementing some common extension features, including many additional annotations and inline comments explaining how it all works.

Installation[edit | edit source]

  • Download and extract the files in a directory called examples in your extensions/ folder. If you're a developer then instead you should use git clone to clone the mediawiki/extensions/examples repository in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once __DIR__ . "/extensions/examples/Example/Example.php";
  • YesY Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.


See also[edit | edit source]