Extension:WikiLove/bn

উইকিভালোবাসা উইকিপিডিয়ায় এবং সম্ভবত অন্যান্য উইকিসমূহে উইকিভালোবাসার বিস্তারে উৎসাহিত করার জন্য নকশাকৃত একটি এক্সটেনশন। বিশেষভাবে, এটি কয়েকটি বাটন ক্লিক করেই কোনো ব্যবহারকারী আলাপ পাতায় পুরষ্কার, উপহার, এবং আমন্ত্রণ যোগ করার সুবধিা প্রদান করে।

ইনস্টলেশন

 * 1) সর্বশেষ হালনাগাদকৃত স্ন্যাপশট ডাউনলোড এবং আপনার এক্সটেনশন ডিরেক্টরিতে এটি যুক্ত করন।
 * 2) LocalSettings.php থেকে নিম্নলিখিত যে কোন একটি লাইনগুলি যোগ করুন, যা আপনার উইকি'র মিডিয়াউইকি সফটওয়্যার সংস্করণের উপর নির্ভর করে।
 * 3) * ১.২৪.x এবং পূর্বে
 * 4) * ১.২৫.x এবং পরেবর্তীতে
 * 5) আপডেট স্ক্রিপ্ট চালু করুন যা এক্সটেনশন চাহিদা অনুযায়ী স্বয়ংক্রিয়ভাবে প্রয়োজনীয় ডাটাবেজ টেবিল তৈরি করবে।
 * 6) আপনি যদি বিল্ট-ইন পদক ব্যবহার করতে চান তাহলে, আপনার InstantCommons সক্রিয় থাকতে হবে। এই কাজের জন্য, LocalSettings.php পাতায় এটি যোগ করুন:
 * 1) এক্সটেনশনটি বর্তমানে সক্রিয় হয়ে গেছে। ইন্টারফেস চালু করতে আমার পছন্দ সম্পাদনা ট্যাবে যান।
 * 2) এছাড়াও আপনি আপনার LocalSettings.php পাতায় এই কনফিগারেশন অপশন ব্যবহার করতে পারেন:
 * 3) * - সকল ব্যবহারকারীদের জন্য এই এক্সটেনশন সক্রিয় করতে, ব্যবহারকারী পছন্দ বাতিল করুন (ডিফল্ট: false)
 * 4) ** টীকা: আপনি ডিফল্ট দ্বারা সেটিং সক্রিয় করতে পারেন কিন্তু এখনও ব্যবহারকারীদের এটি ব্যবহার করে বন্ধ করার (অপ্ট-আউট) অপশন দেবে:


 * 1) * - স্কিনে সমর্থনযোগ্য একটি আইকন ব্যবহার করুন  (অর্থাত ভেক্টর) (ডিফল্ট: true)
 * 2) * - উইকিলাভ প্রদান করতে লগিং সক্রিয় করুন (ডিপল্ট: false); এটি স্বয়ংক্রিয়ভাবে একটি ডাটাবেস টেবিল   তৈরি করবে যা আপনি পরিসংখ্যানগত প্রশ্নের জন্য ব্যবহার করতে পারেন।

ব্যবহার
উইকিভালোবাসা ব্যবহার করতে আপনার অ্যাকাউন্ট সক্রিয় করার জন্য, আমার পছন্দ সম্পাদনা ট্যাবে যান এবং "ল্যাবস ফিচার"-এর অধীন থাকা (বা, কিছু সংস্করণে, "সাধারণ বিকল্পসমূহ"-এর অধীনে থাকে।) উইকিভালোবাসা সক্রিয় করুন।

উইকিভালোবাস ব্যবহার করার জন্য, কোনো ব্যবহারকারী আলাপ পাতায় যান এবং হার্ট আইকনে ক্লিক করুন। সেখান থেকে নির্দেশাবলী অনুসরণ করুন।

নিজস্ব কনফিগারেশন
একটি সম্পাদকের জন্য উইকিভালোবাসা সম্পাদনা শিখতে (বরং একটি সম্পূর্ণ উইকির চেয়ে), দেখুন ব্যবহারকারী নথি।

You can customize the options for your own wiki by editing the page MediaWiki:WikiLove.js. In here, you can change the configuration the same way as is done with the built-in options:. Here are some examples of custom WikiLove configurations: Malayalam Wikipedia, English Wikipedia, Wikimedia Commons, English Sturmkrieg.

The options at the top of are some default settings for your convenience. If you omit certain properties from types or subtypes, these defaults will be used. Then there is the list of types. Each type can have the properties  (required) and   (optional). Furthermore, a type can have a list of subtypes, or not, in which case the additional properties will be assigned to the type itself.

If the type has subtypes, they are listed in an object list. Optionally, the type can also have the property, which specifies the label above the dropdown menu. Each subtype can have the following properties:


 * - name in the dropdown menu
 * - Description when selecting the subtype
 * - Header of the message that is being added, i.e. the part that will be between
 * - Title of the message box
 * - Text of the message box (see below for details)
 * - Image of the message box

When not using subtypes, these options (except for the first two) need to be added to the type itself.
 * - Gallery for selecting an image (see below for details)
 * - Array of fields that the user can edit; can contain these values:
 * - Image size (e.g. )
 * - Background color (any CSS valid color, e.g.  or  )
 * - Border color (same)

In the  and   fields (as well as in , mentioned earlier), you can use a few codes that will be substituted automatically:
 * $1 - User message
 * $2 - Title
 * $3 - Image name
 * $4 - Image size
 * $5 - Background color
 * $6 - Border color
 * $7 - Username of the recipient

To make it easy for the user to select images, you can create a gallery with predefined images. For this, create a  property, which has the following properties:

You can use images from Wikimedia Commons, as the default awards do. Like mentioned before, you have to enable InstantCommons for this.
 * - An array of image names
 * - Maximum width of the images in the gallery (in pixels); for 3 images  is recommended
 * - Maximum height of the images in the gallery (in pixels)
 * - Number of random images to show (optional); if omitted all images are shown

Removing items
If you just want to remove some of the default WikiLove items, you can delete them from the $.wikiLoveOptions object. Here are some examples that you could use in your wiki's MediaWiki:WikiLove.js page: // Delete the Random Acts of Kindness Barnstar from the barnstars list delete $.wikiLoveOptions.types.barnstar.subtypes.kindness; // Delete the cheeseburger from the food and drink list delete $.wikiLoveOptions.types.food.subtypes.cheeseburger; // Delete the kittens interface entirely delete $.wikiLoveOptions.types.kitten;

Glitches and problems
If the talk page you are attempting to edit contains a word that has been subsequently added to Special:SpamRegex, attempts to use the interface to add a barnstar or other award will fail. This is because the page cannot be edited, as it contains a forbidden word. Removing the word from the page or from the filter will fix the problem.

API Documentation
In order to call the API, use the parameter.

Parameters:

Example: api.php?action=wikilove&title=User:Dummy&text=Love&subject=Hi&token=%2B\
 * - Title of the user or user talk page to send WikiLove to (required)
 * - Raw wikitext to add in the new section (required)
 * - Actual message the user has entered, for logging purposes
 * - Edit token. You can get one of these through prop=info (required)
 * - Subject header of the new page section (required)
 * - Type of WikiLove (for statistics); this corresponds with a type selected in the left menu, and optionally a subtype after that (e.g. "barnstar-normal" or "kitten") (optional)
 * - Content of the optional e-mail message to send to the user

Design for version 1.0
This document describes the design and behavior of the WikiLove system of positive feedback for Wikipedia. This tool is designed to promote the spread of WikiLove within Wikipedia. Specifically, it makes adding awards and gifts to user talk pages as simple as clicking a few buttons.

Rationale
Wikipedia, as a community, has several mechanisms for indicating displeasure or to provide negative feedback to its users. Certain gadgets, such as Twinkle, are heavily engineered towards warning, blocking, and reverting.

Since Wikipedia is in need of positive reinforcement, especially for new users, a system designed specifically and only towards positive feedback is desired.

Use of Whimsical Style
The system has a heavy style of "whimsy" to its design. This is intentional and is intended to align closer to the expectations of users of modern websites. Further, the entire principle of "awards" is in and of itself whimsical (e.g., cookies and kittens).

This style may be abandoned based on user feedback.

Note on Nomenclature
Some template types, such as welcome templates, are not technically "awards".

This document uses the term award interchangeably with template. Since the system is user-focused, and not intended directly for power-users, user-facing nomenclature has been used.

Dialog Behavior
The WikiLove dialog is modal. Initiating it (from anywhere) will cause it to appear over the text of the page. It can be dismissed with a simple click.

The WikiLove system requires Javascript.

The user will initially be presented with a short set of easy-to-understand instructions and a list of available award categories.

Upon selecting an award type, the user is presented with a section in which they can add details to the award (such as a short message).

Note that some award categories (e.g., "cookie") will not have a secondary award creation step and will go directly to "Preview".

The user then clicks the "preview" button, which will load a preview of the award so that they may see how it will look on the user's talk page.

Once the user is satisfied, they may click the "Send WikiLove" button. At this time, AJAX calls to the server API will be fired, adding the template to the user's talk page.

Email Notification
Since most new users are unlikely to be aware that they even have talk pages, they may not be aware that they have received the WikiLove in question.

Accordingly, the server will email the recipient (if they have provided an email address) informing them of the WikiLove as well as short instructions on how to access their talk page.

Site Configuration
Initially, the awards that can be given are to be defined in the gadget itself. If this system is elevated to an extension, then the names of the awards and the templates should be defined in the site's LocalSettings.php.

Alternatively, such information can be stored in the database. An administration console would be required to add or subtract available awards and award categories.

Data Storage
For statistics gathering purposes, every time an award is given, data is tracked and stored in the database. A simple table, written to via the API, is all that need be required:


 * From User - The username of the person who is giving the award
 * To User - The username of the person receiving the award
 * Template - the name of the template awarded
 * Timestamp - when the award was given
 * Award Text - Optional; this would be the text of the award

Special:WikiLoveStatistics
In the future, it should be possible to create a page, Special:WikiLoveStatistics, that could be used to see how often the system is used as well as providing insight into who gives the most love, what awards are most popular, and who receives the most awards.

This will help to provide a global overview of community health. The more awards given, the healthier the community.

Future Thinking
Phase two of this project could result in "Send WikiLove" links being dynamically added to signatures on talk pages. This would allow for WikiLove to be sent in a much easier manner, directly from other talk pages.