Extension:MyVariables/es

This page is a translated version of the page Extension:MyVariables and the translation is 25% complete.
Other languages:
English • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎polski • ‎português • ‎русский • ‎हिन्दी • ‎বাংলা • ‎中文 • ‎日本語
Extensión matemática MediaWiki
OOjs UI icon advanced-invert.svg
MyVariables
Estado de lanzamiento estable
Implementación Variable
Descripción Adds new built-in variables
Autor(es)
Mantenedor(es) WikiTeq team
Última versión 4.2 (2021-07-11)
Política de compatibilidad Follows the MediaWiki version lifecycle. Master is not backward compatible.
MediaWiki 1.31+
Cambios de la base de datos No
Licencia GNU Licencia Pública general 2.0 o más tarde
Descarga
Traduce el MyVariables extensión si es disponible en translatewiki.net

Verificar uso y versión de la matriz.

The MyVariables extension adds new built-in variables:

Variable Descripción Ejemplo
{{CURRENTUSER}} Login of current user or the IP for anonymous users "Pastakhov" or "x.x.x.x"
{{CURRENTLOGGEDUSER}} Login of current user or empty for anonymous users "Pastakhov" o ""
{{CURRENTUSERREALNAME}} Real name of current user "Pavel Astakhov"
{{LOGO}} Path to wiki logo "/w/skins/common/images/wiki.png"
{{UUID}} Random (v4) UUID "65ba1a51-c723-4b9d-b1f3-13148d628322"
{{USERLANGUAGECODE}} Language that the user specified in the preferences "en", "en-ca", "ru", etc.
{{FIRSTREVISIONID}} ID of the first revision of the current page or empty if page isn't yet created. "1" or ""
{{FIRSTREVISIONTIMESTAMP}} Timestamp of the first revision of the current page or empty if page isn't yet created. "20100809003006" or ""
{{FIRSTREVISIONUSER}} The user name (without the User prefix) or IP address associated to the first revision of the current page or empty if page isn't yet created. "Pastakhov" or "x.x.x.x" or ""
{{PAGEIMAGE}} The main image of the current page as determined by Extension:PageImages. If the extension is not installed or no main image was determined then {{PAGEIMAGE}} will output nothing. "Logo.png" or ""
{{REALNAME}} When used in a user page, will output the real name of the user. However, if used like this {{REALNAME:Jimbo}} it will output the real name of the user Jimbo. This dual behavior is similar to core variables like {{PAGENAME}}. "Pastakhov" or ""
{{SUBPAGES}} The subpages of the current page, in plain text, comma-separated and in alphabetic order. If there are no any subpages, it will output nothing. "Pastakhov/SubPage1", "Pastakhov/SubPage2" or "".
{{WHATLINKSHERE}} The titles of the pages that link to the current page, comma-separated and in alphabetic order. It will be empty if there are no any linked pages Bar, Baz, Foo or ""

Instalación

  • Descarga y extrae los archivos en el directorio «MyVariables» dentro del directorio extensions/ existente.
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    wfLoadExtension( 'MyVariables' );
    
  •   Hecho – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.

Para quienes usan MediaWiki 1.31 o versiones anteriores:

Estas instrucciones describen la nueva forma de instalar extensiones usando wfLoadExtension(). Si necesitas instalar esta extensión en versiones anteriores (MediaWiki 1.31 y anteriores), debes usar lo siguiente en lugar de wfLoadExtension( 'MyVariables' );:

require_once "$IP/extensions/MyVariables/MyVariables.php";

Nota

  • This extension should not be confused with the Variables extension, which allows the use of variables in the computer programming sense.

Véase también

  This extension is professionally maintained by the WikiTeq team.