「テンプレート:ExtensionInstall」の版間の差分
提供: ひつじ小屋別館2代目
細 (1版) |
細 (Per edit summary before my last - fix indentation) |
||
1行目: | 1行目: | ||
− | * {{{download-link|[[Special:ExtensionDistributor/{{trim| {{{1|{{PAGENAME}}}}} }}|Download]]}}} and extract the files in a directory called <code>{{trim| {{{1|{{PAGENAME}}}}} }}</code> in your <code>extensions/</code> folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository{{#if:{{{repo-name|}}}| using:{{#tag:source| | + | * {{{download-link|[[Special:ExtensionDistributor/{{trim| {{{1|{{PAGENAME}}}}} }}|Download]]}}} and extract the files in a directory called <code>{{trim| {{{1|{{PAGENAME}}}}} }}</code> in your <code>extensions/</code> folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository{{#if:{{{repo-name|}}}| using: |
+ | {{#tag:source| | ||
git clone <nowiki>https://gerrit.wikimedia.org/r/p/mediawiki/extensions/</nowiki>{{{repo-name}}}.git | git clone <nowiki>https://gerrit.wikimedia.org/r/p/mediawiki/extensions/</nowiki>{{{repo-name}}}.git | ||
|lang="bash" | |lang="bash" | ||
+ | |style="margin-left:1.5em" | ||
}}|.}} | }}|.}} | ||
* Add the following code at the bottom of your LocalSettings.php: | * Add the following code at the bottom of your LocalSettings.php: | ||
8行目: | 10行目: | ||
{{{localsettings|}}} | {{{localsettings|}}} | ||
|lang="php" | |lang="php" | ||
+ | |style="margin-left:1.5em" | ||
}}<!-- whitespace fix | }}<!-- whitespace fix | ||
-->{{#if: {{{db-update|}}} | | -->{{#if: {{{db-update|}}} | | ||
* Run the '''[[Manual:Update.php|update script]]''' which will automatically create the necessary database tables that this extension needs.}}<!-- whitespace fix | * Run the '''[[Manual:Update.php|update script]]''' which will automatically create the necessary database tables that this extension needs.}}<!-- whitespace fix | ||
-->{{trim| {{{custom-steps|}}} }} | -->{{trim| {{{custom-steps|}}} }} | ||
− | * | + | * '''Done!''' Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
2014年4月9日 (水) 04:53時点における版
- Download and extract the files in a directory called
ExtensionInstall
in yourextensions/
folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository. - Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/ExtensionInstall/ExtensionInstall.php" );
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |