साँचा:SkinInstall

From mediawiki.org
This page is a translated version of the page Template:SkinInstall and the translation is 83% complete.
Outdated translations are marked like this.
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के SkinInstall नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/SkinInstall/SkinInstall.php";
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।
साँचा परिचय

उपयोग

पैरामीटर वैकल्पिक हैं!

1=
स्किन के नाम को खुद सेट करें (डिफ़ॉल्ट से बिना नामस्थान उपसर्ग के वर्तमान पृष्ठ का नाम है)।
download-link=
डाउनलोड की कड़ी को ओवर्राइट करें (डिफ़ॉल्ट {{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.

उदाहरण

नीचे इस साँचे के प्रयोग के लिए कुछ उदाहरण हैं:

सरल

{{SkinInstall}}
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

नाम

{{SkinInstall|erudite}}
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के erudite नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/erudite/erudite.php";
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

डाउनलोड की कड़ी

{{SkinInstall
|download-link=[http://bits.wikimedia.org/example.zip Download]
}}
  • फ़ाइलों को Download और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

LocalSettings

{{SkinInstall
|localsettings=
$wgUseAjax = true;
$wgEnableMWSuggest = true;
}}
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/theskin/theskin.php";
    $wgUseAjax = true;
    $wgEnableMWSuggest = true;
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

अनुकूलित चरण

{{SkinInstall
|custom-steps=
* Lorem ipsum dolor sit amet
* Foo bar baz quux [[sandbox]]
}}
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

स्किन की पंजीकरण

{{SkinInstall
|registration=Yes
}}
  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    wfLoadSkin( 'theskin' );
    
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

मीडियाविकि 1.34 या उससे पहले से चला रहे सदस्यों के लिए:

ऊपर के साधनों में मीडियाविकि 1.25 से wfLoadSkin() की मदद से स्किन स्थापित करने का तरीका बताया गया है। अगर आप इस स्किन को पहले के संस्करणों में स्थापित करना चाहते हैं, wfLoadSkin( 'theskin' ); की जगह इसका इस्तेमाल करें:

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

(पहले के प्रकाशन में स्किन को चलाने के लिए आपको Special:SkinDistributor से उस प्रकाशन के लिए टैग किए गए संस्करण को डाउनलोड करना पड़ सकता है।)

Vagrant

{{SkinInstall
|vagrant=1
}}
  • अगर आप Vagrant का इस्तेमाल कर रहे हैं, तो vagrant roles enable 1 -p से स्थापित करें

हस्तगत स्थापना

  • फ़ाइलों को डाउनलोड करें और अपने skins/ फ़ोल्डर के theskin नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    require_once "$IP/skins/theskin/theskin.php";
    
  • Yes पूर्ण - अपने विकि पर 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 और अपने skins/ फ़ोल्डर के Example नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में यह कोड जोड़ें:
    wfLoadSkin( 'Example' );
    $wgUseAjax = true;
    
  • Lorem ipsum dolor sit amet
  • Foo bar baz quux sandbox
  • Yes पूर्ण - अपने विकि पर Special:Version पर जाकर देखें कि स्किन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

मीडियाविकि 1.34 या उससे पहले से चला रहे सदस्यों के लिए:

ऊपर के साधनों में मीडियाविकि 1.25 से wfLoadSkin() की मदद से स्किन स्थापित करने का तरीका बताया गया है। अगर आप इस स्किन को पहले के संस्करणों में स्थापित करना चाहते हैं, wfLoadSkin( 'Example' ); की जगह इसका इस्तेमाल करें:

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

(पहले के प्रकाशन में स्किन को चलाने के लिए आपको 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