Template:ExtensionInstall

From Encyclopedia of Scientonomy
Jump to navigation Jump to search

<languages/> vagrant>Template:Ll</>, install with <tvar

  • <translate>

1>download-link</> and place the file(s) in a directory called <tvar|name>ExtensionInstall</> in your <tvar|ext>extensions/</> folder.</translate>

  • <translate>

Add the following code at the bottom of your LocalSettings.php:</translate>

require_once "$IP/extensions/ExtensionInstall/ExtensionInstall.php";

Navigate to <tvar|special>Special:Version</> on your wiki to verify that the extension is successfully installed.</translate> {{ Template:TNTN |content= <translate>

Usage

</translate> <templatedata> { "description": "Add instructions about installing an extension.", "params": { "1": { "label": "Extension name", "description": "Set the extension name manually.", "default": "The current page name without namespace prefix." }, "vagrant": { "label": "Vagrant role name", "description": "If given, shows how to install extension with the vagrant's enable-role command" }, "download-link": { "label": "Download link", "description": "Overwrite the download link.", "default": "Link to ExtensionDistributor with the extension name." }, "localsettings": { "label": "LocalSettings", "description": "Pass custom php code that the user should include in LocalSettings.php." }, "db-update": { "label": "Database update.", "description": "If the extension has one or more database tables that need to be created through update.php, set this parameter to any value." }, "custom-steps0": { "label": "Custom steps 0", "description": "Additional steps before download, e.g. other required extensions (as an unordered \"* list\")" }, "custom-steps": { "label": "Custom steps", "description": "Additional steps (as an unordered \"* list\")" }, "registration": { "label": "If the extension supports extension registration", "description": "Changes the template to use wfLoadExtension if it supports registration", "type": "boolean" } }, "format": "inline" } </templatedata>

<translate>

Examples

Below a few examples of how to use this template:

Simple

</translate>

{{TNT|ExtensionInstall}}

{{ Template:TNTN |MyExtension}}

<translate>

Name

</translate>

{{TNT|ExtensionInstall|CategoryTree}}

{{ Template:TNTN |CategoryTree}}

<translate>

Download link

</translate>

{{TNT|ExtensionInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}

{{ Template:TNTN |MyExtension |download-link=Download }}

LocalSettings

{{TNT|ExtensionInstall
|localsettings=
$wgUseAjax = true;
}}

{{ Template:TNTN |MyExtension |localsettings= $wgUseAjax = true; }}

<translate>

DB Update

</translate>

{{TNT|ExtensionInstall
|db-update=Yes
}}

{{ Template:TNTN |MyExtension |db-update=Yes }}

<translate>

Custom steps

</translate>

{{TNT|ExtensionInstall
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}

{{ Template:TNTN |MyExtension |custom-steps=

  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox

}}

<translate>

Support registration

</translate>

{{TNT|ExtensionInstall
|registration=1
}}

{{ Template:TNTN |MyExtension |registration=1 }}

<translate>

Require registration

</translate>

{{TNT|ExtensionInstall
|registration=required
}}

{{ Template:TNTN |MyExtension |registration=required }}

<translate>

Everything

</translate>

{{TNT|ExtensionInstall|Example
|download-link=[http://bits.wikimedia.org/example.zip Download]
|vagrant=example
|localsettings=
$wgUseAjax = true;

|db-update=Yes
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
|registration=yes
}}

{{ Template:TNTN |Example |download-link=Download |vagrant=example |localsettings= $wgUseAjax = true;

|db-update=Yes |custom-steps=

  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox

|registration=yes }}

}} [[Category:TemplatesTemplate:Translation]]