틀:SkinInstall
- 파일을 다운로드하고
SkinInstall폴더를skins/디렉토리에 넣어 주세요. - 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
require_once "$IP/skins/SkinInstall/SkinInstall.php";
완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
| 이 틀은 루아를 사용합니다: |
사용
매개변수는 선택 사항입니다!
1=- Set the skin name manually (defaults to the current page name without namespace prefix).
download-link=- Overwrite the download link (defaults to {{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}}
- 파일을 다운로드하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
require_once "$IP/skins/theskin/theskin.php";완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
이름
{{SkinInstall|erudite}}
- 파일을 다운로드하고
erudite폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
require_once "$IP/skins/erudite/erudite.php";완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
다운로드 링크
{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
- 파일을 Download하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
require_once "$IP/skins/theskin/theskin.php";완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
LocalSettings
{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
- 파일을 다운로드하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 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]]
}}
- 파일을 다운로드하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
require_once "$IP/skins/theskin/theskin.php";- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
스킨 등록
{{SkinInstall
|registration=Yes
}}
- 파일을 다운로드하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
wfLoadSkin( 'theskin' );완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
미디어위키 $1 이하를 실행 중인 사용자에게:
위의 지시사항은 미디어위키 1.25부터 도입된
wfLoadSkin()을 사용하여 이 스킨을 설치하는 새로운 방법을 기술한 것입니다.wfLoadSkin( 'theskin' );대신 초기 버전에 이 스킨을 설치하려면 다음을 사용해야 합니다: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.)
베이그런트
{{SkinInstall
|vagrant=1
}}
- Vagrant를 사용하고 있는 경우에는,
vagrant roles enable 1 -p로 설치해주세요수동 설치
- 파일을 다운로드하고
theskin폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 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로 설치해주세요수동 설치
- 파일을 Download하고
Example폴더를skins/디렉토리에 넣어 주세요.- 아래의 코드를 LocalSettings.php 파일의 말미에 추가합니다:
wfLoadSkin( 'Example' ); $wgUseAjax = true;- Lorem ipsum dolor sit amet
- Foo bar baz quux sandbox
완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
미디어위키 $1 이하를 실행 중인 사용자에게:
위의 지시사항은 미디어위키 1.25부터 도입된
wfLoadSkin()을 사용하여 이 스킨을 설치하는 새로운 방법을 기술한 것입니다.wfLoadSkin( 'Example' );대신 초기 버전에 이 스킨을 설치하려면 다음을 사용해야 합니다: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.
| 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 |