Шаблон:SkinInstall/doc — различия между версиями

Материал из ANT-Inform documentation
Перейти к: навигация, поиск
(Created page with "<noinclude>{{Documentation subpage}} {{timw|{{BASEPAGENAME}}}} </noinclude>{{TOC|align=right}} == Usage == Parameters are optional! ;<code>1=</code>: Set the skin name manua...")
 
м (1 версия: Import templates from MediaWiki)
 
(нет различий)

Текущая версия на 12:41, 8 февраля 2013

Шаблон:Timw

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.