https://wiki.hisgis.nl/index.php?title=Sjabloon:ExtensionInstall/en&feed=atom&action=history
Sjabloon:ExtensionInstall/en - Bewerkingsoverzicht
2024-03-28T17:25:41Z
Bewerkingsoverzicht voor deze pagina op de wiki
MediaWiki 1.38.2
https://wiki.hisgis.nl/index.php?title=Sjabloon:ExtensionInstall/en&diff=1547&oldid=prev
Thomas: 1 versie geïmporteerd
2019-09-25T12:46:25Z
<p>1 versie geïmporteerd</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="nl">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Oudere versie</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Versie van 25 sep 2019 13:46</td>
</tr><tr><td colspan="2" class="diff-notice" lang="nl"><div class="mw-diff-empty">(geen verschil)</div>
</td></tr></table>
Thomas
https://wiki.hisgis.nl/index.php?title=Sjabloon:ExtensionInstall/en&diff=1546&oldid=prev
interwiki>FuzzyBot: Updating to match new version of source page
2019-07-13T23:10:05Z
<p>Updating to match new version of source page</p>
<p><b>Nieuwe pagina</b></p><div><noinclude><br />
<languages/><br />
</noinclude>{{#switch:<br />
| =<br />
{{#if: {{{vagrant|}}} |<br />
* If using {{ll|MediaWiki-Vagrant|Vagrant}}, install with <code>vagrant roles enable {{{vagrant}}} --provision</code><br />
; Manual installation <br />
}}<!-- whitespace fix<br />
-->{{trim| {{{custom-steps0|}}} }}<br />
* {{{download-link|[[Special:ExtensionDistributor/{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}|Download]]}}} and place the file(s) in a directory called <code>{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}</code> in your <code>extensions/</code> folder.<br />
{{#if: {{{composer|}}} |<br />
* Only when installing from git run [[Special:MyLanguage/Composer|Composer]] to install PHP dependencies, by issuing <code>composer install --no-dev</code> in the extension directory. <small>(See [[phab:T173141|T173141]] for potential complications.)</small>{{#ifeq: {{NAMESPACENUMBER}} |102 |{{#ifeq: {{SUBPAGENAME}} |en | |{{#ifeq: {{PAGELANGUAGE}} |en |[[Category:Extensions requiring Composer with git]] }} }} }}<br />
}}<br />
* Add the following code at the bottom of your {{manual|LocalSettings.php}}: {{#tag:syntaxhighlight|<br />
{{{localsettingsearly|}}}<br />
{{#if: {{{source|}}} | {{{source|}}} | {{#if: {{{registration|}}} | {{#if: {{{customizereg|}}} | {{{customizereg|}}} |wfLoadExtension( '{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}' );}} | {{#if: {{{oldreg|}}} | {{{oldreg|}}} | require_once "$IP/{{{basedir|extensions}}}/{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}/{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}.php";}}}} }}<br />
{{{localsettings|}}}<br />
|lang="php"<br />
}}<!-- whitespace fix<br />
-->{{#if: {{{db-update|}}} |<br />
* Run the '''[[Special:MyLanguage/Manual:Update.php|update script]]''' which will automatically create the necessary database tables that this extension needs.}}<!-- whitespace fix<br />
-->{{trim| {{{custom-steps|}}} }}<br />
* {{ {{TNTN|Done}} }} – Navigate to [[Special:Version]] on your wiki to verify that the extension is successfully installed.<!-- whitespace fix<br />
-->{{#if: {{{registration|}}}|{{#ifeq:{{{registration|}}}|required||<nowiki/><br />
<br />
To users running MediaWiki {{{no-registration-version|1.24}}} or earlier:<br />
<br />
The instructions above describe the new way of installing this extension using <code>wfLoadExtension()</code>. If you need to install this extension on these earlier versions (MediaWiki {{{no-registration-version|1.24}}} and earlier), instead of {{#tag:syntaxhighlight|wfLoadExtension( '{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}' );|lang=php|inline=true}}, you need to use:<br />
{{#tag:syntaxhighlight|<br />
require_once "$IP/{{{basedir|extensions}}}/{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}/{{trim| {{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}} }}.php";<br />
|lang="php"<br />
}}}}}}<br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:ExtensionInstall|noshift=1}}<br />
}}<noinclude><br />
{{ {{TNTN|documentation}} |content=<br />
== Usage ==<br />
<br />
{{ExtensionInstall/TemplateData}}<br />
<br />
== Examples ==<br />
<br />
Below a few examples of how to use this template:<br />
<br />
=== Simple ===<br />
<pre><br />
{{ExtensionInstall}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension}}<br />
</blockquote><br />
<br />
=== Name ===<br />
<pre><br />
{{ExtensionInstall|CategoryTree}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|CategoryTree}}<br />
</blockquote><br />
<br />
=== Download link ===<br />
<pre><br />
{{ExtensionInstall<br />
|download-link=[http://bits.wikimedia.org/example.zip Download]<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|download-link=[http://bits.wikimedia.org/example.zip Download]<br />
}}<br />
</blockquote><br />
<br />
=== LocalSettings ===<br />
<br />
<pre><br />
{{ExtensionInstall<br />
|localsettings=<br />
$wgUseAjax = true;<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|localsettings=<br />
$wgUseAjax = true;<br />
}}<br />
</blockquote><br />
<br />
==== LocalSettings early ====<br />
<br />
<pre><br />
{{ExtensionInstall<br />
|localsettingsearly=<br />
$wgUseAjax = true; // this must be included before the extension is loaded<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|localsettingsearly=<br />
$wgUseAjax = true; // this must be included before the extension is loaded<br />
}}<br />
</blockquote><br />
<br />
=== DB Update ===<br />
<pre><br />
{{ExtensionInstall<br />
|db-update=Yes<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|db-update=Yes<br />
}}<br />
</blockquote><br />
<br />
=== Composer ===<br />
<pre><br />
{{ExtensionInstall<br />
|composer=Yes<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|composer=Yes<br />
}}<br />
</blockquote><br />
<br />
=== Custom steps ===<br />
<pre><br />
{{ExtensionInstall<br />
|custom-steps=<br />
* Lorem ipsum dolor sit amet<br />
* Foo bar baz quux [[sandbox]]<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|custom-steps=<br />
* Lorem ipsum dolor sit amet<br />
* Foo bar baz quux [[sandbox]]<br />
}}<br />
</blockquote><br />
<br />
=== Support registration ===<br />
<pre><br />
{{ExtensionInstall<br />
|registration=1<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|registration=1<br />
}}<br />
</blockquote><br />
<br />
=== Set recommended registration MediaWiki version ===<br />
<pre><br />
{{ExtensionInstall<br />
|registration=1<br />
|no-registration-version=1.25<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|registration=1<br />
|no-registration-version=1.25<br />
}}<br />
</blockquote><br />
<br />
=== Require registration ===<br />
<pre><br />
{{ExtensionInstall<br />
|registration=required<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|MyExtension<br />
|registration=required<br />
}}<br />
</blockquote><br />
<br />
=== Everything ===<br />
<pre><br />
{{ExtensionInstall|Example<br />
|download-link=[http://bits.wikimedia.org/example.zip Download]<br />
|vagrant=example<br />
|localsettings=<br />
$wgUseAjax = true;<br />
<br />
|db-update=Yes<br />
|composer=Yes<br />
|custom-steps=<br />
* Lorem ipsum dolor sit amet<br />
* Foo bar baz quux [[sandbox]]<br />
|registration=yes<br />
}}<br />
</pre><br />
<blockquote><br />
{{ExtensionInstall|Example<br />
|download-link=[http://bits.wikimedia.org/example.zip Download]<br />
|vagrant=example<br />
|localsettings=<br />
$wgUseAjax = true;<br />
<br />
|db-update=Yes<br />
|composer=Yes<br />
|custom-steps=<br />
* Lorem ipsum dolor sit amet<br />
* Foo bar baz quux [[sandbox]]<br />
|registration=yes<br />
}}<br />
</blockquote><br />
}}<br />
[[Category:Installation guide templates{{#translation:}}]]<br />
</noinclude></div>
interwiki>FuzzyBot