Template:Extension/Sample: Difference between revisions
Appearance
Content deleted Content added
Tacsipacsi (talk | contribs) extension articles should not contain parameters (i.e. the ones that would be expanded if the article itself is transcluded, as it’s never); all templates have {{TNT}} built-in |
Default {{ExtensionInstall}} to use registration, because its 2024 |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 27: | Line 27: | ||
|update preview = |
|update preview = |
||
|compatibility policy = |
|compatibility policy = |
||
|mediawiki = |
|mediawiki = <!-- only needed if different from what's in extension.json --> |
||
|php = |
|php = |
||
|needs-updatephp = |
|needs-updatephp = |
||
Line 37: | Line 37: | ||
|readme = <includeonly>{{git file|project=mediawiki/extensions/{{subst:SUBPAGENAME}}|file=README|branch=HEAD|text=README}}</includeonly> |
|readme = <includeonly>{{git file|project=mediawiki/extensions/{{subst:SUBPAGENAME}}|file=README|branch=HEAD|text=README}}</includeonly> |
||
|changelog = |
|changelog = |
||
|help = <!-- automatically links to Help:Extension:ExtName if it exists, otherwise enter full wikitext link to end-user docs --> |
|||
|example = |
|example = |
||
|namespace = |
|namespace = |
||
Line 51: | Line 52: | ||
==Installation== |
==Installation== |
||
{{ExtensionInstall}} |
{{ExtensionInstall|registration=true}} |
||
==Configuration parameters== |
==Configuration parameters== |
||
{{ParameterList}} <!-- If your extension is in Wikimedia Gerrit, a bot will automatically fill this out for you --> |
|||
<!-- |
<!-- |
||
Explain the purpose of each configuration parameter provided to Template:Extension. |
Explain the purpose of each configuration parameter provided to Template:Extension. |
||
Line 68: | Line 70: | ||
==See also== |
==See also== |
||
<!-- Add other related extensions here, if applicable. If not, just delete this comment and the "See also" header. --> |
<!-- Add other related extensions here, if applicable. If not, just delete this comment and the "See also" header. --> |
||
<noinclude>__EXPECTUNUSEDTEMPLATE__</noinclude> |
Latest revision as of 03:30, 11 September 2024
MyExtension Release status: beta |
|
---|---|
License | No license specified |
Download | No link |
Translate the Extension/Sample extension if it is available at translatewiki.net |
The MyExtension extension does foo.
Installation
[edit]- Download and move the extracted
Extension
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Extension - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'Extension' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.