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

提供: ひつじ小屋別館2代目
移動先: 案内検索
(1版)
(dirname( __FILE__ ) instead of $IP is the preferred way)
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.
+
* {{{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 then instead you should use <kbd>[[git]] clone</kbd> to clone the extension's repository in your <code>extensions/</code> folder.
 
* Add the following code at the bottom of your LocalSettings.php:
 
* Add the following code at the bottom of your LocalSettings.php:
 
{{#tag:source|
 
{{#tag:source|
require_once "$IP/extensions/{{trim| {{{1|{{PAGENAME}}}}} }}/{{trim| {{{1|{{PAGENAME}}}}} }}.php";
+
require_once ( dirname( __FILE__ ) . "/extensions/{{trim| {{{1|{{PAGENAME}}}}} }}/{{trim| {{{1|{{PAGENAME}}}}} }}.php" );
 
{{{localsettings|}}}
 
{{{localsettings|}}}
 
|lang="php"
 
|lang="php"

2014年1月22日 (水) 20:44時点における版

  • Download and extract the files in a directory called ExtensionInstall in your extensions/ folder. If you're a developer then instead you should use git clone to clone the extension's repository in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once ( dirname( __FILE__ ) . "/extensions/ExtensionInstall/ExtensionInstall.php" );
  • 18pxY Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Documentation icon Template documentation[create]