Jump to content

Template:Extension/Sample: Difference between revisions

From mediawiki.org
Content deleted Content added
Jpond (talk | contribs)
Re-added imagesize, tags, compatibility to reconcile with Template:Extension (somehow bad chars got imbedded before)
Line 62: Line 62:
<!-- delete this section if code is available via a download site -->
<!-- delete this section if code is available via a download site -->
<source lang="php">
<source lang="php">
# put your code here
<!-- put your code here - note that the ending ?> tag should not be present, as it's not needed and is likely to cause only problems. This has been since MediaWiki 1.11 and newer releases. -->
# note that the ending ?> tag should not be present,
# as it's not needed and is likely to cause only problems.
# This has been since MediaWiki 1.11 and newer releases.
</source>
</source>



Revision as of 19:49, 25 June 2011


MediaWiki extensions manual
Extension/Sample
Release status: beta
MediaWiki
License No license specified
Download No link
Translate the Extension/Sample extension if it is available at translatewiki.net

What can this extension do?

Usage

Download instructions

Please cut and paste the code found below and place it in $IP/extensions/ExtensionName/ExtensionName.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation

To install this extension, add the following to LocalSettings.php:

#add configuration parameters here
#setup user rights here
require_once("$IP/extensions/ExtensionName/ExtensionName.php");

Configuration parameters

User rights

Code

# put your code here
# note that the ending ?> tag should not be present,
# as it's not needed and is likely to cause only problems.
# This has been since MediaWiki 1.11 and newer releases.

See also