Sablon:SkinInstall

From mediawiki.org
This page is a translated version of the page Template:SkinInstall and the translation is 64% complete.
  • Download and place the file(s) in a directory called SkinInstall in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/SkinInstall/SkinInstall.php";
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Sablondokumentáció

Használat

A paraméterek opcionálisak!

1=
Set the skin name manually (defaults to the current page name without namespace prefix).
download-link=
Letöltési link felülírása (alapértelmezett: {{DownloadGitSnapshot}})
basedir=
Directory that repo should be installed in and front-end resources are exposed through (defaults to skins, change to extensions if needed).
localsettings=
Pass custom php code that the user should include in LocalSettings.php
custom-steps=
Additional steps (as an unordered * list)
registration=
New way to install skin or extension.

Példák

Az alábbiakban néhány példát láthatsz a sablon használatára:

Egyszerűsített

{{SkinInstall}}
  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Név

{{SkinInstall|erudite}}
  • Download and place the file(s) in a directory called erudite in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/erudite/erudite.php";
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Letöltés

{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

LocalSettings

{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/theskin/theskin.php";
    $wgUseAjax = true;
    $wgEnableMWSuggest = true;
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Egyéni lépések

{{SkinInstall
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}
  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Kinézetregisztráció

{{SkinInstall
|registration=Yes
}}
  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadSkin( 'theskin' );
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

A MediaWiki 1.24-es vagy korábbi verziói felhasználóinak:

The instructions above describe the new way of installing skins using wfLoadSkin(), since MediaWiki 1.25.

If you need to install this skin in earlier versions, instead of wfLoadSkin( 'theskin' );, you need to use:

require_once "$IP/skins/theskin/theskin.php";

(To run a skin on an earlier release, you may need to download the version of it tagged for that release from Special:SkinDistributor.)

Vagrant

{{SkinInstall
|vagrant=1
}}
  • Vagrant használata esetén a vagrant roles enable 1 -p használatos telepítésre

Kézi telepítés

  • Download and place the file(s) in a directory called theskin in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Minden

{{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]]
|registration=Yes
|vagrant=accountinfo
}}
  • Vagrant használata esetén a vagrant roles enable accountinfo -p használatos telepítésre

Kézi telepítés

  • Download and place the file(s) in a directory called Example in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadSkin( 'Example' );
    $wgUseAjax = true;
    
  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox
  • Yes Kész - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

A MediaWiki 1.24-es vagy korábbi verziói felhasználóinak:

The instructions above describe the new way of installing skins using wfLoadSkin(), since MediaWiki 1.25.

If you need to install this skin in earlier versions, instead of wfLoadSkin( 'Example' );, you need to use:

require_once "$IP/skins/Example/Example.php";

(To run a skin on an earlier release, you may need to download the version of it tagged for that release from Special:SkinDistributor.)

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Skin name over-ride1

Set the skin name manually

Default
name of the current page name without namespace prefix
Stringoptional
Download link over-ridedownload-link

Overwrite the download link

Default
{{DownloadGitSnapshot}}
Stringoptional
New-style registrationregistration

Whether to use the new style to register the skin

Booleanoptional
Installation directorybasedir

Directory that repo should be installed in and front-end resources are exposed through (defaults to skins, change to extensions if needed).

Stringoptional
LocalSettings codelocalsettings

Custom PHP code that the user should include in LocalSettings.php

Stringoptional
Custom stepscustom-steps

Additional steps (as an unordered * list) that you need to undertake to install the skin.

Stringoptional
nocreditsnocredits

no description

Booleanoptional