「テンプレート:ExtensionInstall」の版間の差分

提供: ひつじ小屋別館2代目
移動先: 案内検索
(1版)
(TNT)
3行目: 3行目:
 
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"
+
|style="overflow:auto;"
 
}}|.}}
 
}}|.}}
 
* Add the following code at the bottom of your LocalSettings.php:
 
* Add the following code at the bottom of your LocalSettings.php:
10行目: 10行目:
 
{{{localsettings|}}}
 
{{{localsettings|}}}
 
|lang="php"
 
|lang="php"
|style="margin-left:1.5em"
+
|style="overflow:auto;"
 
}}<!-- 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 '''[[Special:MyLanguage/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>
 
* '''Done!''' Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.<noinclude>
{{documentation}}
+
{{TNT|documentation}}
 
</noinclude>
 
</noinclude>

2014年7月5日 (土) 21:47時点における版

  • Download and extract the file(s) in a directory called ExtensionInstall in your extensions/ 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.
Documentation icon Template documentation[create]