Extension:Favorites/hi

From Linux Web Expert

मीडियाविकि एक्सटेंशन मैन्युअल
Favorites
प्रकाशन की स्थिति: स्थिर
File:Favorites-special.jpg
कार्यान्वयन विशेष पृष्ठ , टैग
विवरण सदस्यों को पसंदीदा पृष्ठों की सूची बनाने देता है।
लेखक Jeremy Lemley (Jlemleytalk)
संगतता नीति मीडियाविकि के साथ प्रकाशित स्नैपशॉट्स। Master में पीछे की तरफ से संगतता नहीं है।
MediaWiki
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 3.0 या अधिक
डाउनलोड करें
उदाहरण File:Favorites-parser.jpg
favorites
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Favorites एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है

The Favorites extension makes it easy for users to add pages to their personal favorites list with just one click, so they can browse through them again later or share their favorites with others. यह एक नया विशेष पृष्ठ बना देता है जिसमें हर सदस्य अपने पसंदीदा पृष्ठों की एक सूची जोड़ सकता है, बिल्कुल ध्यानसूची की तरह। इससे पसंदीदा पृष्ठों की सूची को एक टैग की मदद से सार्वजनिक रूप से एम्बेड करना संभव होगा।

उपयोग

Users add items to the Favorite list by either selecting Favorite from the navigation menu, or by clicking the Star icon (if implemented - see Configuration parameters). Conversely, removing a Favorite from the list is a matter of clicking Unfavorite or clicking the Star a second time. Users can also edit their list through the Special:Favoritelist page using the same features included with the Watchlist.

पार्सर टैग

You can dynamically embed favorites on any page or template using the following tag:

<favorites/>

This tag takes the following arguments:

editlink=true
userpage=true
  • The "editlink" argument will add a link at the bottom of the list that will allow the user to edit their list of favorites.
  • The "userpage" argument will allow you to display your favorites on your user page. This argument will only work on a user page. Of course, leaving this argument off will display the logged-in user's own list, even while viewing someone else's user page.
  • If both arguments are combined, the edit link will display, but it will take the user back to their list of favorites, not those of the user they are viewing. This could get confusing, so it's not recommended.

उदाहरण:

<favorites editlink=true />
<favorites userpage=true />

विशेष पृष्ठ

This extension also creates a new Special page called "Special:Favoritelist". This special page allows users to view or edit their list of favorites. A link to this page can be added to the Personal Urls section of MediaWiki. See Configuration parameters for more details.

स्थापना

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/Favorites/hi</tvar>|Download]] and move the extracted <tvar name=name>Favorites/hi</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Favorites%2Fhi
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'Favorites/hi' );
    // Optional parameters:
    // Add a Star icon for selecting favorites:
    // $wgUseIconFavorite = true; 
    // Add a "My Favorites" link to the personal URLs area:
    // $wgFavoritesPersonalURL = true;
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>


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

The $wgUseIconFavorite parameter will use the same "Star" icon that is included with the Vector Watchlist. If you are already using the Star icon for your watched items, you may want to set $wgVectorUseIconWatch to false in LocalSettings.php.

The $wgFavoritesPersonalURL parameter adds a link to "My Favorites" to the Personal Urls section of MediaWiki next to "My Watchlist".

अस्थापना

Most extensions can be removed by deleting them and editing LocalSettings.php to remove references to it. Since this extension makes changes to your database, removing it additionally requires undoing database changes. It's as simple as removing the favoritelist table from the database.

If you have access to your database using a tool like PHPMyAdmin, you can just delete the table. For commandline access or to use a script, you would use this command:

drop table favoritelist;