Template:SkinInstall

From mediawiki.org
This page is a translated version of the page Template:SkinInstall and the translation is 41% complete.
Outdated translations are marked like this.
  • 파일을 다운로드하고 SkinInstall 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/SkinInstall/SkinInstall.php";
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.
Template documentation

사용

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 {{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.

예시

Below a few examples of how to use this template:

Simple

{{SkinInstall}}
  • 파일을 다운로드하고 theskin 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

Name

{{SkinInstall|erudite}}
  • 파일을 다운로드하고 erudite 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/erudite/erudite.php";
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

Download link

{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
  • 파일을 Download하고 theskin 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

LocalSettings

{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
  • 파일을 다운로드하고 theskin 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/theskin/theskin.php";
    $wgUseAjax = true;
    $wgEnableMWSuggest = true;
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

Custom steps

{{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
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

Skin registration

{{SkinInstall
|registration=Yes
}}
  • 파일을 다운로드하고 theskin 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    wfLoadSkin( 'theskin' );
    
  • Yes 완료 - 위키의 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.)

Vagrant

{{SkinInstall
|vagrant=1
}}
  • Vagrant 를 사용하고 있는 경우에는, vagrant roles enable 1 -p로 설치해주세요

수동 설치

  • 파일을 다운로드하고 theskin 폴더를 skins/ 디렉토리에 넣어 주세요.
  • 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes 완료 - 위키의 Special:Version에 이동해서, 스킨이 올바르게 설치된 것을 확인합니다.

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]]
|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
  • Yes 완료 - 위키의 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.

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