Шаблон:SkinInstall — различия между версиями
Материал из ANT-Inform documentation
								
												
				| Hubbitus (обсуждение | вклад)  м (1 версия: Import templates from MediaWiki) | |
| (нет различий) | |
Текущая версия на 12:40, 8 февраля 2013
-  Download and extract the skin in a directory called "skininstall" in yourskins/folder.
- Add the following code to your LocalSettings.php (at the bottom)
require_once( "$IP/skins/skininstall/skininstall.php" );
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Usage
Parameters are optional!
- 1=
- Set the skin name manually (defaults to the current page name without namespace prefix).
- download-link=
- Overwrite the download link (defaults to linking to SkinDistributor with the skin name)
- localsettings=
- Pass custom php code that the user should include in LocalSettings.php
- custom-steps=
-  Additional steps (as an unordered * list
Examples
Below a few examples of how to use this template:
Simple
{{SkinInstall}}
- Download and extract the skin in a directory called "
theskin" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/theskin/theskin.php" );
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Name
{{SkinInstall|erudite}}
- Download and extract the skin in a directory called "
erudite" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/erudite/erudite.php" );
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Download link
{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
- Download and extract the skin in a directory called "
theskin" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/theskin/theskin.php" );
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
LocalSettings
{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
- Download and extract the skin in a directory called "
theskin" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/theskin/theskin.php" ); $wgUseAjax = true; $wgEnableMWSuggest = true;
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Custom steps
{{SkinInstall
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}
- Download and extract the skin in a directory called "
theskin" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/theskin/theskin.php" );
- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Everything
{{SkinInstall|Example
|download-link=[http://bits.wikimedia.org/example.zip Download]
|localsettings=
$wgUseAjax = true;
|db-update=Yes
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}
- Download and extract the skin in a directory called "
Example" in yourskins/folder.- Add the following code to your LocalSettings.php (at the bottom)require_once( "$IP/skins/Example/Example.php" ); $wgUseAjax = true;
- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
- Файл:Yes check.svg Done – Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
| Language: | English | 
|---|
| The above documentation is transcluded from Шаблон:SkinInstall/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. | 
