dev

This page, or parts of it, are still untranslated. Please translate it to the appropriate language (español).

For "etiquetas" en encabezados globales, see UserTags.

MessageWallUserTags le permite agregar una "etiqueta" personalizable a los nombres que aparecen en la parte superior de las publicaciones del muro de mensajes de usuarios específicos. Puede ser utilizado para marcar mensajes por administradores, burócratas, fundador, etc. También se puede utilizar para cualquier otro propósito, como usuario del mes, etc.

Note: There is a CSS alternative to this script.

Installation

Configuration

Para agregar este script en su wiki, coloque el siguiente código en su MediaWiki:Common.js, y cambie, 'user1', 'user2' etc. a los nombres de los usuarios que desea etiquetar, y 'usergroup' etc. al texto que desea que aparezca, como Admin, etc:

{
    "tagColor": "red",
    "txtSize": "10px",
    "glow": true,
    "glowSize": "15px",
    "glowColor": "#f77",
    "users": {
        "username": "usergroup",
        "User1": "Founder",
        "User2": "Bureaucrat",
        "User3": "Admin",
        "User4": "Rollback",
        "User5": "Custom Tag"
     }
 }

Note: JSON keys and string values must start and end in double quotes ("). Make sure that the JSON is properly formatted, as any JSON errors will cause the script to not work!

Alternatively, you can place the following code into the MediaWiki:Common.js page on your wiki, and change 'user1', 'user2' etc to the names of users you want tagged, and 'usergroup' etc to the text you want to appear, such as admin, etc:

window.MessageWallUserTags = {
    tagColor: 'red',
    txtSize: '10px',
    glow: true,
    glowSize: '15px',
    glowColor: '#f77',
    users: {
        'username': 'usergroup',
        'User1': 'Founder',
        'User2': 'Bureaucrat',
        'User3': 'Admin',
        'User4': 'Rollback',
        'User5': 'Custom Tag'
    }
};

Note: doing it this way means that any changes must first be approved by the review process before they become visible on your wiki. This can slow down any changes you may want to make such as a new color or adding new users.

También hay varias otras opciones que se pueden manipular, tales como el color de la etiqueta (tagColor), si es o no se iluminará, así como el tamaño y el color de la luz (glow, glowSize y glowColor).

También puede especificar varias etiquetas por usuario, así:

window.MessageWallUserTags = {
    // Other options
    users: {
        'username': 'Bureaucrat • Admin • Something Else',
    }
};

Pueden estar separados por viñetas, comas o cualquier otro carácter de su elección.

Si tiene nombres de usuario con espacios, reemplace los espacios con guiones bajos ( _ ). Asegúrese de que cada nombre y grupo/texto tenga comillas alrededor y una coma al final de cada línea, excepto en la última línea. Si un nombre contiene un apóstrofo ('), deberá encerrar ese nombre con comillas dobles (") en lugar de comillas simples (').

Additional styling of the user tags is possible through CSS. You can use the .MessageWallUserTag class selector to apply additional styling as seen in the example below:

.MessageWallUserTag {
    font-weight: bold;
    font-variant: small-caps;
    /* Additional CSS */
}

Actualizaciones

June 18 2022
A JSON customization page has been added to allow for instantaneous customization that bypasses the review process. Support for comments on articles and blogs is also included. — Mario&LuigiBowser'sInsideStory
2 March 2017
Wikis using a non-English language are now supported. — OneTwoThreeFall
3 February 2016
Text size can now be specified using txtSize. Default is 10px if not specified. — SuperSajuuk
18 September 2014
The script will now work with posts made on the Fandom forum system. — SuperSajuuk
10 September 2014
Glow colour is now customizable.— Auron
11 May 2014
Added additional options, revised code, and added code comments. — RyaNayR (diff)
8 February 2014
Added option to specify color. — RyaNayR (diff)
8 February 2014
Initial release — RyaNayR