Jump to content

WikiLove

From mediawiki.org
This page is a translated version of the page WikiLove and the translation is 21% complete.
Outdated translations are marked like this.
An impression of the abstract concept of WikiLove
An impression of the abstract concept of WikiLove
"Com o reconhecimento nós fazemos a excelência dos outros uma propriedade nossa." — Voltaire

WikiLove é uma funcionalidade desenhada para tornar mais fácil e divertido a demonstração de apreço por outros utilizadores. Wikilove pode utilizar-se a partir de qualquer página do utilizador, clicando no ícone Coração. Wikilove foi originalmente desenvolvida por Ryan Kaldari como um código de utilizador e está agora disponível como uma extensão do MediaWiki Extensão do MediaWiki que os programadores podem adicionar às suas wikis. WikiLove can be invoked from any user page by clicking the "Heart" icon. It was originally developed by Ryan Kaldari as a user script, and is now available as a MediaWiki extension that developers can add to their wikis.

Fundamentação Lógica

Os usuários gostam de ser valorizados. De acordo com um estudo realizado em 2011 sobre editores da Wikipedia (top-line data) das 17 variáveis usadas "ser desvalorizado por editores mais experientes" é a maior causa para que as pessoas decidam editar menos frequentemente (69% concordaram), enquanto que " receber elogios sobre as suas edições/artigos" é a maior causa para que as pessoas decidam editar mais frequentemente" (78% concordaram). Veja também: no blog da Wikipedia "Positive feedback works for editing, say Wikipedia editors". See also: "Positive feedback works for editing, say Wikipedia editors" on the Wikimedia blog.

Por outro lado editar a Wikipedia tornou-se mais difícil com o passar do tempo, e a probabilidade dos novos editores serem corrigidos/criticados tem aumentado. Isto reflecte-se em diversos esforços para codificar e analisar a experiência dos novos usuários, bem como a recente investigação sobre estratégias para ensinar os Newbies realizada no âmbito do nossa Summer of Research. This is reflected by various efforts to code and analyse the experience of new users, such as the recent Newbie teaching strategy research sprint undertaken within the scope of our Summer of Research.

Relative proportion of different types of messages sent to new users English Wikipedia, as coded in the newbie teaching strategy trends research sprint

Datas chaves

  • June 16, 2011: WikiLove activated on prototype.wikimedia.org
  • June 24, 2011: WikiLove on-by-default for registered users on prototype.wikimedia.org; blog announcement calling for testers
  • June 30, 2011: WikiLove deployed to the English Wikipedia. See WikiLove actions.

Como desativar

To disable WikiLove, go to the editing tab in your preferences, and uncheck the box next to "Enable showing appreciation for other users with the WikiLove tab" under User pages. Then click Save.

Turn WikiLove on or off using the checkbox in your preferences.

Como personalizar

A interface do WikiLove pode ser personalizada para se adequar às necessidades da cada editor. Se quer usar o WikiLove para deixar mensagens de boas-vindas, bolos de aniversário ou ouriços-cacheiros, é fácil sobrescrever a configuração padrão com configurações do próprio. If you want to use WikiLove for leaving welcome messages, birthday cakes, or hedgehogs, it's easy to override the default configuration with your own settings.

The WikiLove configuration is one large JSON object, so to make a change or addition, all you have to do is modify the values that are assigned to the keys. To see what values are currently assigned, first check the MediaWiki:WikiLove.js page on your local wiki. This will have any local overrides. Next, take a look at the default configuration. This will show you the basic tree of data that makes up the settings for WikiLove. Once you have decided what values you want to change, go to your skin.js file on the wiki you are using. (If you are on the English Wikipedia, for example, you would edit this page.) To change an existing item, simply override its value with an assignment statement.

Alterar um tipo existente

For example, if you wanted to change the display name 'Kittens' to 'Cats', you would add the following to your local .js file (User:Example/skin.js):

mw.loader.using( 'ext.wikiLove.defaultOptions', function() {
  $.wikiLoveOptions.types.kitten.name = 'Cats';
} );

If you wanted to change the image for Stroopwafels, you would add:

mw.loader.using( 'ext.wikiLove.defaultOptions', function() {
  $.wikiLoveOptions.types.food.subtypes.stroopwafels.image = 'Stroopwafels.jpg';
} );

Adicionar um novo tipo

You can also add an entirely new item type (or subtype) using the JSON tree structure. For example to add "Hedgehogs":

mw.loader.using( 'ext.wikiLove.defaultOptions', function() {
$.wikiLoveOptions.types.hedgehog = {
  name: 'Hedgehogs', // name of the type (appears in the types menu)
  fields: [ 'header', 'message' ], // fields to ask for in form
  header: 'A hedgehog for you!', // header that appears at the top of the talk page post (optional)
  text: '[[$3|left|150px]]\n$1\n\n~~'+'~~\n<br style="clear: both"/>', // $3 is the image filename, $1 is the message
  gallery: {
    imageList: [ 'Hedgehog1.jpg', 'Orizo5.jpg', 'Erinaceus europaeus LC0119.jpg' ],
    width: 145, // maximum width of the images in the gallery
    height: 150, // maximum height of the images in the gallery
    number: 3 // number of random images to show (optional)
  },
  icon: 'http://www.mysite.com/images/wikilove-icon-hedgehog.png' // appears in the types menu
};
} );

Make sure you declare all of the appropriate parameters when adding new items! To learn about all the different type parameters, refer to the extension documentation.

Criar um novo ícone de tipo

The Photoshop source file for the WikiLove type icons (the black and white icons that appear in the left-hand menu) can be downloaded. To create your own, paste in a graphic that is approximately 50 × 50 pixels, desaturate it, and copy and paste the styles that are applied to the examples in the source file.

Alterar o ícone coração

You can also customise the WikiLove heart icon used in the Vector skin by editing your vector.css file (User:Example/vector.css). If you want to change the red heart icon to a blue heart, for example, you would add the following:

#ca-wikilove.icon a {
  background-image: url("/w/extensions/WikiLove/resources/images/heart-icons-blue.png");
}

Pedidos para Implementação Adicional

Individual wikis may request that WikiLove be deployed to them provided the following criteria are met:

  • Community consensus for the deployment has been reached
  • The WikiLove extension has been localised to that wiki's language on TranslateWiki (you can help localise it)
  • A configuration file exists on the local wiki (MediaWiki:WikiLove.js)

Once these criteria are met, open a bug in Phabricator requesting the deployment.

Atividade da WikiLove em tempo real

WikiLove collects data in its own tables, but this data isn't surfaced through the UI yet. To quickly see what's going on, you can use edit filter 423 on the English Wikipedia.

We're collecting stories of WikiLove usage here to better understand its evolving impact: WikiLove/Stories

Some preliminary analysis: WikiLove/Analysis

Documentos adicionais

Extension:WikiLove