Шаблон:SkinInstall

Материал из ANT-Inform documentation
Версия от 17:57, 5 ноября 2012; Dantman (обсуждение)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
  • Download and extract the skin in a directory called "skininstall" in your skins/ 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.
[edit] [purge] 50px Template documentation

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 your skins/ 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 your skins/ 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 your skins/ 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 your skins/ 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 your skins/ 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 your skins/ 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