Jump to content

Skin:Vector/2022

From mediawiki.org
This page is a translated version of the page Skin:Vector/2022 and the translation is 30% complete.
Outdated translations are marked like this.
यह स्किन मीडियाविकि 1.38 और अधिक के साथ उपलब्ध होता है। यानी कि आपको इसे दोबारा डाउनलोड करने की ज़रूरत नहीं। हालाँकि, आपको दूसरी विधियों का पालन करना होगा।
मीडियाविकि स्किन मैन्युअल - श्रेणी
Vector 2022
प्रकाशन की स्थिति: स्थिर
संगतता नीति मीडियाविकि के साथ प्रकाशित स्नैपशॉट। Master में पीछे की तरफ से संगतता नहीं है।
Composer mediawiki/vector-skin
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 2.0 या उसके बाद
डाउनलोड करें
उदाहरण https://en.wikipedia.org/
https://vi.wikipedia.org/
https://test.wikipedia.org/
पैरामीटर
  • $wgVectorNightMode
  • $wgVectorResponsive
  • $wgVectorStickyHeader
  • $wgVectorMaxWidthOptions
  • $wgVectorFontSizeConfigurableOptions
  • $wgVectorLanguageInHeader
  • $wgVectorLanguageInMainPageHeader
  • $wgVectorWvuiSearchOptions
  • $wgVectorTableOfContentsCollapseAtCount
  • $wgVectorPromoteAddTopic
  • $wgVectorWrapTablesTemporary
  • $wgVectorWebABTestEnrollment
  • $wgVectorDefaultSkinVersionForNewAccounts
  • $wgVectorDefaultSkinVersionForExistingAccounts
त्रैमासिक डाउनलोड्स 641 (Ranked 1st)
इस्तेमाल कर रहे सार्वजनिक विकियाँ 14,010 (Ranked 2nd)
डिफ़ॉल्ट स्किन के रूप में इस्तेमाल कर रहे सार्वजनिक विकियाँ 5,943
Vector/2022 स्किन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है
आवारा भूमिका vector
मुद्दे : अधूरे कार्य · बग की रिपोर्ट करें

Vector 2022 मीडियाविकि के Vector स्किन का दूसरा विकास है, और इसे डेस्कटॉप सुधार परियोजना के हिस्से के रूप में विकसित किया जा रहा है। इसे मीडियाविकि 1.38 से मीडियाविकि के साथ बंडल किया जा रहा है। यह विभिन्न विकिमीडिया परियोजनाओं के लिए डिफ़ॉल्ट स्किन है।

Vector 2022 ज़्यादातर दूसरे स्किन्स से अलग है क्योंकि इसका अपना कोई कोड बेस नहीं है; बल्कि इसका कोड Vector स्किन के कोड का हिस्सा है, और दोनों को साथ में डाउनलोड किया जाता है।

Version MediaWiki 1.38 of this skin marked official 3rd party support.

अगर कोई साइट 1.36 या 1.37 पर नए Vector का इस्तेमाल कर रही है, 1.38 प्रकाशन में अपग्रेड करते समय उन्हें समस्याएँ आ सकती हैं। अधिक विवरण के लिए T299104 और Extension:WikimediaMaintenance देखें।

स्थापना

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

वैकल्पिक निर्भरताएँ

Vector 2022 इन एक्सटेंशनों के स्थापित होने पर इनका इस्तेमाल कर सकता है, हालाँकि इनमें से कोई भी आवश्यक नहीं:

  • UniversalLanguageSelector - भाषा परिवर्तन बटन के लिए
  • PageImages - खोज बार में हर पृष्ठ के लिए एक चित्र जोड़ने के लिए (अगर उपलब्ध हो तो)
  • ShortDescription - खोज बार में हर पृष्ठ के लिए एक विवरण जोड़ने के लिए (विकिमीडिया परियोजना पर ऐसी की कार्यक्षमता है, मगर इस एक्सटेंशन की मदद से नहीं)

कॉन्फ़िगरेशन के पैरामीटर्स

Vector 2022 को अपना डिफ़ॉल्ट स्किन बनाना

मीडियाविकि संस्करण 1.38 और अधिक के लिए Vector 2022 को डिफ़ॉल्ट स्किन बनाने के लिए LocalSettings.php पर यह जोड़ें:

$wgDefaultSkin = 'vector-2022';

Night mode

मीडियाविकि संस्करण:
1.43

Vector 2022 features a night mode or dark mode, which has three possible states:

  • day - also known as light mode
  • night - also known as dark mode
  • os - also known as automatic. This mode will automatically adapt to the state of the operating system or browser

Night mode is gated by a feature flag. To enable it, set $wgVectorNightMode as follows:

  • $wgVectorNightMode['beta'] = true;
  • $wgVectorNightMode['logged_out'] = true;
  • $wgVectorNightMode['logged_in'] = true;

When enabled, the default theme mode is day. To change the default theme for all users to automatic mode or night mode, you set the default for the user option with either:

$wgDefaultUserOptions['vector-theme'] = 'os';
// or 
$wgDefaultUserOptions['vector-theme'] = 'night';

Please note that your content has to be night mode compatible. You might want to read the recommendations for Wikimedia wikis .

Parameters

ध्यान रखें कि Vector में अब भी कई अस्थिर सुविधाओं की चिप्पियाँ हैं, जो किसी भी समय हट सकती हैं। इनमें से ज़्यादातर सुविधाओं की चिप्पियाँ अधूरी सुविधाओं से जुड़े हैं। अगर किसी सुविधा को यहाँ सूचीबद्ध न किया गया हो, हम अनुशंसा देंगे कि आप उसके डिफ़ॉल्ट वैल्यू से कोई चिप्पी न हटाएँ।

  • $wgVectorMaxWidthOptions - यह कॉन्फ़िगर करने के लिए इस्तेमाल किया जा सकता है कि अधिकतम चौड़ाई लागू होगी कि नहीं। अब तक बहुत-कुछ स्थिर है।
  • $wgVectorLanguageInMainPageHeader - यह नियंत्रित करता है कि भाषा का बटन मुख्य पृष्ठ पर हेडर में आता है कि नहीं।
  • $wgVectorWvuiSearchOptions - showDescription और showThumbnail कुँजियों (दोनों बूलियन) वाला सहयोगी ऐरे।

Vector 2022 allows control over whether various menus appear pinned in the sidebar or collapsed into the header. These options can be configured both by users in their preferences and by administrators as default settings.

The following pinning options are available:

  • vector-main-menu-pinned - Controls the main navigation menu position
    • 1 (default) - Menu is pinned in the left sidebar
    • 0 - Menu is collapsed into header hamburger icon
  • vector-page-tools-pinned - Controls the page tools menu position
    • 1 (default) - Tools are pinned in the right sidebar
    • 0 - Tools are collapsed into header icon
  • vector-toc-pinned - Controls the table of contents position
    • 1 (default) - Table of contents is pinned in the left sidebar
    • 0 - Table of contents is collapsed into a floating button
  • vector-appearance-pinned - Controls the appearance menu position
    • 1 (default) - Appearance options are pinned in the sidebar
    • 0 - Appearance options are collapsed into header icon

To change any of these defaults, add the corresponding lines to LocalSettings.php:

// Example: Collapse all menus
$wgDefaultUserOptions['vector-main-menu-pinned'] = 0;
$wgDefaultUserOptions['vector-page-tools-pinned'] = 0;
$wgDefaultUserOptions['vector-toc-pinned'] = 0;
$wgDefaultUserOptions['vector-appearance-pinned'] = 0;


ये भी देखें