Шаблон:ExtensionInstall
<languages/>
- <translate> [[<tvar name=2>Special:ExtensionDistributor/ExtensionInstall</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
ExtensionInstall
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/ExtensionInstall/ExtensionInstall.php";
<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
This template uses Lua:
|
<translate>
Usage
</translate>
<translate>
Examples
Below a few examples of how to use this template:
Simple
</translate>
{{ExtensionInstall}}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php";<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Name
</translate>
{{ExtensionInstall|CategoryTree}}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/CategoryTree</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
CategoryTree
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/CategoryTree/CategoryTree.php";<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Download link
</translate>
{{ExtensionInstall |download-link=[http://bits.wikimedia.org/example.zip Download] }}
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php";<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
LocalSettings
{{ExtensionInstall |localsettings= $wgUseAjax = true; }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php"; $wgUseAjax = true;<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
<tvar name=1>LocalSettings</tvar> early
</translate>
{{ExtensionInstall |localsettingsearly= $wgUseAjax = true; // this must be included before the extension is loaded }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
$wgUseAjax = true; // this must be included before the extension is loaded require_once "$IP/extensions/MyExtension/MyExtension.php";<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
DB Update
</translate>
{{ExtensionInstall |db-update=Yes }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php";- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Composer
</translate>
{{ExtensionInstall |composer=Yes }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>
composer install --no-dev
</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab>Шаблон:Task</tvar> for potential complications.)</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php";<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Custom steps
</translate>
{{ExtensionInstall |custom-steps= * Lorem ipsum dolor sit amet * Foo bar baz quux [[sandbox]] }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
require_once "$IP/extensions/MyExtension/MyExtension.php";- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Support registration
</translate>
{{ExtensionInstall |registration=1 }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
wfLoadExtension( 'MyExtension' );<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate> To users running MediaWiki <tvar name=1>1.24</tvar> or earlier: </translate>
<translate> The instructions above describe the new way of installing this extension using <tvar name=LoadExtension>
wfLoadExtension()
</tvar>.</translate> <translate> If you need to install this extension on these earlier versions (MediaWiki <tvar name=1>1.24</tvar> and earlier), instead of <tvar name=code>wfLoadExtension( 'MyExtension' );
</tvar>, you need to use:</translate>require_once "$IP/extensions/MyExtension/MyExtension.php";
<translate>
Set recommended registration MediaWiki version
</translate>
{{ExtensionInstall |registration=1 |no-registration-version=1.25 }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
wfLoadExtension( 'MyExtension' );<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate> To users running MediaWiki <tvar name=1>1.25</tvar> or earlier: </translate>
<translate> The instructions above describe the new way of installing this extension using <tvar name=LoadExtension>
wfLoadExtension()
</tvar>.</translate> <translate> If you need to install this extension on these earlier versions (MediaWiki <tvar name=1>1.25</tvar> and earlier), instead of <tvar name=code>wfLoadExtension( 'MyExtension' );
</tvar>, you need to use:</translate>require_once "$IP/extensions/MyExtension/MyExtension.php";
<translate>
Require registration
</translate>
{{ExtensionInstall |registration=required }}
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MyExtension</tvar>|Download]] and place the file(s) in a directory called <tvar name=name>
MyExtension
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
wfLoadExtension( 'MyExtension' );<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate>
Everything
</translate>
{{ExtensionInstall|Example |download-link=[http://bits.wikimedia.org/example.zip Download] |vagrant=example |localsettings= $wgUseAjax = true; |db-update=Yes |composer=Yes |custom-steps= * Lorem ipsum dolor sit amet * Foo bar baz quux [[sandbox]] |registration=yes }}
- <translate> If using <tvar name=vagrant>Vagrant </tvar>, install with <tvar name=code>
vagrant roles enable example --provision
</tvar></translate><translate>
- Manual installation
</translate>
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
Example
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate>- <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>
composer install --no-dev
</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab>Шаблон:Task</tvar> for potential complications.)</translate>- <translate> Add the following code at the bottom of your <tvar name=LocalSettings>LocalSettings.php</tvar>:</translate>
wfLoadExtension( 'Example' ); $wgUseAjax = true;- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
<translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
<translate> To users running MediaWiki <tvar name=1>1.24</tvar> or earlier: </translate>
<translate> The instructions above describe the new way of installing this extension using <tvar name=LoadExtension>
wfLoadExtension()
</tvar>.</translate> <translate> If you need to install this extension on these earlier versions (MediaWiki <tvar name=1>1.24</tvar> and earlier), instead of <tvar name=code>wfLoadExtension( 'Example' );
</tvar>, you need to use:</translate>require_once "$IP/extensions/Example/Example.php";
[[Category:Installation guide templates{{#translation:}}]]