الگو:نصب پوسته
- Download and place the file(s) in a directory called
SkinInstallin yourskins/folder. - کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/SkinInstall/SkinInstall.php";
انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
| Uses Lua: |
استفاده
پارامترها اختیاری هستند!
1=- نام پوسته را بهصورت دستی وارد کنید (پیشفرض نام برگۀ کنونی بدون پیشوند فضای نام).
download-link=- پیوند بارگیری (پیشفرض {{DownloadGitSnapshot}}) را وارد کنید
basedir=- Directory that repo should be installed in and front-end resources are exposed through (defaults to
skins, change toextensionsif 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
skinorextension.
نمونهها
در پایین، چند نمونه برای چگونگی استفاده از این الگو آمده است:
ساده
{{SkinInstall}}
- Download and place the file(s) in a directory called
theskinin yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/theskin/theskin.php";انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
نام
{{SkinInstall|erudite}}
- Download and place the file(s) in a directory called
eruditein yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/erudite/erudite.php";انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
پیوند بارگیری
{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
- پوسته را دریافت کنید و پرونده(های) آنرا در یک پوشه با نام
theskinدر پوشۀskins/جایگذاری کنید.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/theskin/theskin.php";انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
LocalSettings
{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
- Download and place the file(s) in a directory called
theskinin yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/theskin/theskin.php"; $wgUseAjax = true; $wgEnableMWSuggest = true;انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
گامهای سفارشی
{{SkinInstall
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}
- Download and place the file(s) in a directory called
theskinin yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/theskin/theskin.php";- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
ثبت پوسته
{{SkinInstall
|registration=Yes
}}
- Download and place the file(s) in a directory called
theskinin yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
wfLoadSkin( 'theskin' );انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
برای کاربرانی که مدیاویکی ۱٫۲۴ یا قدیمیتر را اجرا میکنند:
دستورالعمل بالا، روش تازۀ نصب پوستهها با استفاده از
wfLoadSkin()را از مدیاویکی ۱٫۲۵ توضیح میدهد. اگر شما نیاز دارید تا پوسته را بر روی نگارش قدیمیتری نصب کنید، بهجایwfLoadSkin( 'theskin' );شما نیاز دارید تا از این استفاده کنید:require_once "$IP/skins/theskin/theskin.php";(برای اجرای یک پوسته روی یک انتشار قدیمیتر، شما نیاز دارید تا نگارش برچسبخورده برای همان انتشار را از Special:SkinDistributor دریافت کنید.)
سرگردان
{{SkinInstall
|vagrant=1
}}
- اگر از Vagrant استفاده میکنید، با
vagrant roles enable 1 -pنصب کنیدنصب دستی
- Download and place the file(s) in a directory called
theskinin yourskins/folder.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
require_once "$IP/skins/theskin/theskin.php";انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
همهچیز
{{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 استفاده میکنید، با
vagrant roles enable accountinfo -pنصب کنیدنصب دستی
- پوسته را دریافت کنید و پرونده(های) آنرا در یک پوشه با نام
Exampleدر پوشۀskins/جایگذاری کنید.- کد زیر را در پایین پروندۀ LocalSettings.php خود بیفزایید:
wfLoadSkin( 'Example' ); $wgUseAjax = true;- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
انجام شد - به Special:Version در ویکی خودتان بروید تا مطئمن شوید که پوسته با موفقیت نصب شده است.
برای کاربرانی که مدیاویکی ۱٫۲۴ یا قدیمیتر را اجرا میکنند:
دستورالعمل بالا، روش تازۀ نصب پوستهها با استفاده از
wfLoadSkin()را از مدیاویکی ۱٫۲۵ توضیح میدهد. اگر شما نیاز دارید تا پوسته را بر روی نگارش قدیمیتری نصب کنید، بهجایwfLoadSkin( 'Example' );شما نیاز دارید تا از این استفاده کنید:require_once "$IP/skins/Example/Example.php";(برای اجرای یک پوسته روی یک انتشار قدیمیتر، شما نیاز دارید تا نگارش برچسبخورده برای همان انتشار را از Special:SkinDistributor دریافت کنید.)
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Skin name over-ride | 1 | Set the skin name manually
| String | optional |
| Download link over-ride | download-link | Overwrite the download link
| String | optional |
| New-style registration | registration | Whether to use the new style to register the skin | Boolean | optional |
| Installation directory | basedir | Directory that repo should be installed in and front-end resources are exposed through (defaults to skins, change to extensions if needed). | String | optional |
| LocalSettings code | localsettings | Custom PHP code that the user should include in LocalSettings.php | String | optional |
| Custom steps | custom-steps | Additional steps (as an unordered * list) that you need to undertake to install the skin. | String | optional |
| nocredits | nocredits | no description | Boolean | optional |