Extension:WikiLove/ja

WikiLove (ウィキラブ、ウィキ愛) は、ウィキペディアと他のウィキ群内で、ウィキラブを広く普及させるために設計された拡張機能です. 賞賛やプレゼント、利用者トークページへの招待を、ボタン数回のクリックという簡単な操作に変換します.

インストール
もし組み込み済みのアワードを使いたいなら、 InstantCommons を有効にする必要があります. これをLocalSettings.php に追記して下さい.

拡張機能を有効にするには、インターフェイスを有効にする為、個人設定の中にある編集タブを開きます.

これらのオプション設定は、利用者のLocalSettings.phpでも使用できます.


 * - この拡張機能をすべての相手に対して有効にし、個人設定を除去 (既定値： false)
 * 注記：既定で設定を有効にできますが、利用者に無効に切り替える選択肢（オプトアウト）を設ける手順は次のとおり.


 * - 対応する外装用のアイコンを使用（例：ベクター）（既定値：true）
 * - enable logging of giving of WikiLove (default: false); this automatically creates a database table  which you can use for statistical queries

使用法
To enable your account to use WikiLove, go to the editing tab in your preferences and turn on WikiLove under "Labs features" (or, in some versions, under "General options").

To use WikiLove, go to a user's talk page and click the heart icon. Follow the directions from there.

カスタム設定
To learn how to customize WikiLove for an individual editor (rather than an entire wiki), see the user documentation.

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:


 * Wikipedia
 * sq:MediaWiki:WikiLove.js (completely replaces all WikiLove configuration)
 * pt:MediaWiki:WikiLove.js (completely replaces all WikiLove configuration)
 * ml:MediaWiki:WikiLove.js
 * en:MediaWiki:WikiLove.js
 * Wikimedia Commons

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:


 * - ドロップダウン メニュー内の名前
 * - Description of the subtype
 * - Header of the message that is being added, i.e. the part that will be between
 * - メッセージボックスのタイトル
 * - メッセージボックスの文章（下記の詳細も参照）
 * - メッセージボックスの画像


 * - Gallery for selecting an image (see below for details)
 * - Array of fields that the user can edit; can contain these values:
 * - 画像サイズ (例 )
 * - 背景色 (CSS 妥当な任意の色. 例: 、 )
 * - ボーダー色 (同上)

When not using subtypes, these options (except for the first two) should be added to the type itself.

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:


 * - 画像名の配列
 * - 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

You can use images from Wikimedia Commons, as the default awards do. Like mentioned before, you have to enable InstantCommons for this.

Removing WikiLove types
If you just want to remove some of the default WikiLove types, you can delete them from the $.wikiLoveOptions object. Here are some examples that you could use in your wiki's MediaWiki:WikiLove.js page:

Adding new WikiLove types
Here's an example of adding a new puppy type:

Here's an example of adding a new hedgehog type with a gallery of images to choose from:

Here's an example of adding a new falafel subtype under the existing food type:

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の説明文書
WikiLove uses a special wikilove API to post messages to users' talk pages. The API is basically just a thin wrapper around some existing APIs. If the user's talk page is a Wikitext page, it uses the API. If it's a Flow page, it uses the API. And if it's a LiquidThreads page, it uses the API.

In order to call the API, use the parameter.

パラメーター:


 * Title of the user or user talk page to send WikiLove to (required)
 * Title of the user or user talk page to send WikiLove to (required)


 * Raw wikitext to add in the new section (required)
 * Raw wikitext to add in the new section (required)


 * Actual message the user has entered, for logging purposes (doesn't include the image and HTML formatting)
 * Actual message the user has entered, for logging purposes (doesn't include the image and HTML formatting)


 * Edit token. You can get one of these through prop=info (required)
 * Edit token. You can get one of these through prop=info (required)


 * Subject header of the new page section (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)
 * 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 email message to send to the user
 * Content of the optional email message to send to the user

例:

api.php?action=wikilove&title=User:Dummy&text=Love&subject=Hi&token=%2B\

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.

ウィキペディアではポジティブな強化がまだないため、特に編集初学者の場合に該当し、肯定的なフィードバックに特化しそれだけを提示するシステムの設計と導入が待たれます.

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.

ダイアログの挙動
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.

メール通知
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.

データの保管
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.

将来構想
このプロジェクトの第2フェーズでは、トークページの署名設定で「ウィキラブを送る」リンクをダイナミックに追加する結果になるかもしれません. そうすればもっと手軽に、ほかの人のトークページ上でウィキラブを直接、送れるようになるかもしれません.

関連項目

 * - Original design document
 * - Echoを利用した軽い感謝の表明
 * GiveCredit - MeatBall Wiki