Extension:Example

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎日本語 • ‎русский
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
Example

Release status:Extension status stable

Example extension screenshot.png
ImplementationTemplate:Extension#type Example
Author(s)Template:Extension#username Krinkle, Kaldari
MediaWikiTemplate:Extension#mediawiki 1.19
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download

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

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

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

Installation[edit]

  • 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]