Extensión:Thanks

This page is a translated version of the page Extension:Thanks and the translation is 49% complete.
Outdated translations are marked like this.
This extension comes with MediaWiki 1.40 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
Manual de extensiones de MediaWiki
Thanks
Estado de lanzamiento: estable
Implementación Interfaz de usuario
Descripción Permite a los usuarios agradecer a otros usuarios por ediciones individuales, etc.
Autor(es)
Última versión 1.2.0 (Continuous updates)
Política de compatibilidad Lanzamientos de screenshots junto con MediaWiki. Master no es compatible con versiones anteriores.
MediaWiki >= 1.42
Licencia MIT Licencia
Descarga
  • $wgThanksAllowedLogTypes
  • $wgThanksConfirmationRequired
  • $wgThanksLogging
  • $wgThanksSendToBots
Descargas trimestrales 49 (Ranked 99th)
Wikis públicos que lo utilizan 2,442 (Ranked 193rd)
Traduce la extensión Thanks si está disponible en translatewiki.net
Función de vagabundo echo
Asuntos Tareas abiertas · Reportar un bug

The Thanks extension adds a quick way to give positive feedback for productive contributions to MediaWiki sites. It allows users to send public 'thank you' notifications (via Echo ) to other users for their individual edits and some logged actions.

La revisión específica por la que se está "agradeciendo" no se almacena en la tabla de registro público. Solo la marca de tiempo, el remitente y el destinatario se registran públicamente.

Se agrega un enlace de 'agradecimiento' en cuatro lugares:

  • junto al enlace 'deshacer' en el historial y diferentes vistas;
  • en algunas entradas de registro en Especial: Registro (see #Configuration, below);y
  • en Flow la junta comenta si Flow está instalado.

También proporciona una API para enviar gracias.

Tenga en cuenta que si no desea ser agradecido, puede deshabilitar fácilmente esta notificación en sus preferencias,la página de discusión.

Example of a 'thanks' notification

Una vez que haya tenido la oportunidad de probarlo, agradeceremos sus comentarios sobre esta función en la página de discusión.

Esperamos que la notificación de agradecimiento haga que sea más fácil mostrar aprecio por el trabajo del otro, y que sea particularmente útil para alentar a los nuevos usuarios durante sus primeros pasos críticos en una wiki. Intencionalmente, hemos mantenido esta notificación lo más simple posible, para que podamos evaluarla y mejorarla juntos. Disfrutelo…

Instalación

Gracias requiere que la extension Echo esté instalada como requisito previo.
  • Descarga y extrae los archivos en un directorio denominado «Thanks» dentro de la carpeta extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'Thanks' );
    
  • De ser necesario, configúralo a tu gusto
  • Vaya a la acción Historial de una página para ver la nueva interfaz "Gracias".
  •   Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Configuración

Habilite la interfaz de agradecimiento para ediciones de bot (deshabilitado de forma predeterminada)

$wgThanksSendToBots = false;

Registrar acciones de agradecimiento en "Special:Log" (habilitado de forma predeterminada)

$wgThanksLogging = true;

Si se requiere o no confirmación para agradecerte (activado por omisión)

$wgThanksConfirmationRequired = true;

Tipos de entrada de registro que se pueden agradecer desde Especial: Registro:

$wgThanksLogTypeWhitelist = [
	"contentmodel",
	"delete",
	"import",
	"merge",
	"move",
	"patrol",
	"protect",
	"tag",
	"managetags",
	"rights"
];

Uso

Para agradecer a otro usuario, vaya a la pestaña Historial de cualquier página. Al lado de cada revisión habrá un enlace de 'agradecimiento'. Haga clic en el enlace para enviar gracias a ese usuario. Este enlace también está disponible en la vista de diferencias, en algunas entradas en Special: Log, y debajo de los comentarios en Flowboards si Flow está instalado.

When the thank link is clicked, the recipient will receive a notification with your thanks via the Echo extension (unless they have opted out of receiving thanks notifications). A record of the action is also recorded as a log entry at Special:Log/thanks.

If the wiki is using memcached, a rate limit is imposed of no more than 10 thanks per minute per user. The limit can be configured with $wgRateLimits ['thanks-notification'].

Avoiding thanks

To stop getting thanks notifications, you can opt out from them in your notification preferences. Go to the Notifications tab of your preferences. This only prevents you from getting notified, it does not prevent users from thanking you.

Documentación de API

The Thanks extension includes an API for sending thanks. In order to call the API, use the parameter action=thank.

Parámetros:

  • rev - The revision ID you would like to thank someone for (either this or log is required)
  • log - The log ID you would like to thank someone for (either this or rev is required)
  • source - Source of the thank event. This is a short string that identifies where the thanks was sent from. For example, if the thanks was sent from Huggle, the value could be 'huggle'. (optional)
  • token - Edit token (a.k.a. CSRF token). You can get one of these through the tokens API. (required)

Ejemplo:

 api.php?action=thank&rev=16543&token=%2B\

To send thanks via OAuth only the "Basic" grant permission is required. A python example is available.

Flow Thanks

There is a separate API for sending Thanks for comments on Flow boards. To call the API, use action=flowthank.

Parámetros:

  • postid - The UUID of the comment for which to send thanks (required)
  • token - Edit token. You can get one of these through prop=info. (required)

Ejemplo:

 api.php?action=flowthank&postid=abc123&token=%2B\

Errores y avisos

Código Información
invalidrecipient No se encontró un destinatario válido
No se pueden enviar agradecimientos a bots
No puedes enviarte agradecimientos a ti mismo

SQL Documentation

Understanding who thanked who from the logs requires some understanding of the columns. Within the logging table, the log_title represents the receiver, and the log_user_text represents the sender.

The following SQL which finds all the thanks a receiver received within a time period illustrates this:

select log_timestamp as thank_timestamp,
  replace(log_title, '_', ' ') as receiver,
  log_user_text as sender
from logging_logindex
where log_title = :user_name
  and log_action = 'thank'
  and :start_date <= log_timestamp
  and log_timestamp <= :end_date

Notice also that the logging table is not selected from directly, but on Wikimedia servers we take advantage of the logging_logindex table. In order to quickly search for all the thanks a user sent the logging_userindex provides the correct index.


Véase también