Extension:CategorySortHeaders

From mediawiki.org
This page is a translated version of the page Extension:CategorySortHeaders and the translation is 50% complete.
मीडियाविकि एक्सटेंशन मैन्युअल
CategorySortHeaders
प्रकाशन की स्थिति: स्थिर
कार्यान्वयन हुक
विवरण श्रेणी पृष्ठों पर पहले अक्षरों के हैडिंग्स की जगह अनुकूलित हैडिंग्स बनाता है
लेखक
नवीनतम संस्करण 0.4.0 (2021-04-20)
MediaWiki 1.35+
डेटाबेस बदलता है नहीं
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 2.0 या अधिक
डाउनलोड करें

  • $wgCategorySortHeaderAppendPageNameToKey
Quarterly downloads 7 (Ranked 137th)
CategorySortHeaders एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है

The CategorySortHeaders extension to allow specifying custom multi-character 'first-character' sorting headers to list pages under in categories, using syntax like [[Category:Foo|^Header^Invisible part of sortkey]] or even just [[Category:Foo|^Header^]].

उपयोग

If you want a category to use a custom header, do [[Category:Cat name|^header^OptionalInvisibleSortkey]] (or {{DEFAULTSORT:^header^Optionalsortkey}}. If you want to use the default first letter headers, just use categories as normal.

स्थापना

  • फ़ाइलों को डाउनलोड करें और अपने extensions/ फ़ोल्डर के CategorySortHeaders नामक डिरेक्ट्री में डालें।
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CategorySortHeaders
  • अपने LocalSettings.php फ़ाइल के अंत में निम्न कोड जोड़ें:
    wfLoadExtension( 'CategorySortHeaders' );
    
  • Run either update.php or updateCollation.php from the command line (Note that running the web installer in upgrade mode does not work due to टास्क T19335)
  • Yes पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

मीडियाविकि 1.35 या इससे पहले के सदस्यों के लिए:

ऊपर दिए गए निर्देश wfLoadExtension() का उपयोग करके इस एक्सटेंशन को स्थापित करने के नए तरीके का वर्णन करते हैं। अगर आप इस एक्सटेंशन को पहले के इन संस्करणों (मीडियाविकि 1.35 और उससे पहले) में स्थापित करना चाहते हैं, wfLoadExtension( 'CategorySortHeaders' ); की जगह इसका इस्तेमाल करें:

require_once "$IP/extensions/CategorySortHeaders/CategorySortHeaders.php";
चेतावनी चेतावनी: Do not set $wgCategoryCollation in LocalSettings.php . This extension defines its own collation, and must use that.

कॉन्फ़िगरेशन

This extension has a single configuration option:

$wgCategorySortHeaderAppendPageNameToKey
It defaults to true, which causes a sortkey of ^foo^ to be treated like ^foo^{{PAGENAME}}. If it is set to false, it will sort ^foo^ above ^foo^<any string here>. (In both cases, if there are two exactly same sort keys, the pagename will be used as a tie breaker.) After changing this option you should run:
php updateCollation.php --force
If anyone likes the idea of this extension, but wants to use the uca-default collation instead of uppercase - let me (bawolff) know. It probably wouldn't be very difficult to modify this extension to make it work with uca-default

ये भी देखें