Extension: PageAuthors

This page is a translated version of the page Extension:PageAuthors and the translation is 100% complete.
Manual de extensiones de MediaWiki
PageAuthors
Estado de lanzamiento: estable
Implementación Función del analizador
Descripción Obtención de lista de autores en una página
Autor(es) Sophivorusdiscusión
Última versión 1.4 (2022-08-10)
MediaWiki 1.35+
PHP 7+
Cambios de la base de datos No
Licencia GNU Licencia Pública general 3.0 o posterior
Descarga
Ejemplo [1]
  • $wgPageAuthorsMinBytesPerEdit
  • $wgPageAuthorsDelimiter
  • $wgPageAuthorsIgnoreGroups
  • $wgPageAuthorsIgnoreBots
  • $wgPageAuthorsIgnoreUsers
  • $wgPageAuthorsIgnoreSystemUsers
  • $wgPageAuthorsIgnoreMinorEdits
  • $wgPageAuthorsLinkUserPages
  • $wgPageAuthorsIgnoreBlocked
  • $wgPageAuthorsMinBytesPerAuthor
  • $wgPageAuthorsUseRealNames
  • $wgPageAuthorsIgnoreAnons
  • $wgPageAuthorsIgnoreSummaryPatterns
Descargas trimestrales 9 (Ranked 136th)
Traduce la extensión PageAuthors si está disponible en translatewiki.net

The PageAuthors extension introduces a magic word {{PAGEAUTHORS}} that returns a list of the main page authors of a page, sorted by number of bytes added.

The extension is highly configurable so you can fine-tune what counts as an author.

Instalación

  • Descarga y extrae los archivos en un directorio denominado «PageAuthors» 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/PageAuthors
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'PageAuthors' );
    
  •   Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Empleo

Simply add {{PAGEAUTHORS}} to any page and you will get a comma-separated list of the main authors of the current page, sorted by number of bytes added.

You can also do {{PAGEAUTHORS:Some page}} to get the list of authors for some page other than the current one.

See #Configuration to define your own criteria of what counts as an author and how the list of authors should be displayed.

Configuración

Each configuration is shown with its default value:

  • $wgPageAuthorsMinBytesPerAuthor = 100; ― Minimum number of bytes that a user must add in order to be considered an author.
  • $wgPageAuthorsMinBytesPerEdit = 10; ― Minimum number of bytes that each edit must reach in order to be counted towards the author's total. Having a positive value here already means that edits that reduce content don't count, which is usually desirable because even though synthesizing and removing problematic content is often valuable, we wouldn't say that makes you an author of the existing content.
  • $wgPageAuthorsIgnoreMinorEdits = true; ― Whether to ignore edits marked as minor.
  • $wgPageAuthorsIgnoreBlocked = true; ― Whether to ignore blocked users.
  • $wgPageAuthorsIgnoreAnons = true; ― Whether to ignore anonymous users.
  • $wgPageAuthorsIgnoreBots = true; ― Whether to ignore bots.
  • $wgPageAuthorsIgnoreSystemUsers = true; ― Whether to ignore system users (such as in mass imports).
  • $wgPageAuthorsIgnoreSummaryPatterns = [ '/Undo.*/', '/Revert.*/' ]; ― Ignore edits with edit summaries that match these PHP regex patterns. By default, edits with edit summaries that start with 'Undo' or 'Revert' will be ignored (these match the default edit summaries when doing a revert or a rollback in an English wiki). So for example, if some vandal blanks a page and then a user reverts it, the revert won't count towards the byte count of the user.
  • $wgPageAuthorsIgnoreUsers = []; ― Ignore edits by these users (without "User:" prefix).
  • $wgPageAuthorsIgnoreGroups = []; ― Ignore edits by these groups.
  • $wgPageAuthorsUseRealNames = false; ― Show the real names when available, rather than the user names.
  • $wgPageAuthorsLinkUserPages = false; ― Link each author to its user page.
  • $wgPageAuthorsDelimiter = ', '; ― Delimiter between authors.

Véase también

  • Manual:$wgMaxCredits - Una opción incluida para enumerar los autores por por orden de edición más reciente, a pie de página de la wiki. Esto no siempre resulta deseable ya que, a menudo, los autores más recientes no son los principales.
  • Extension:Contributors - Lista de autores por número de ediciones. Esto no es confiable porque algunos usuarios tienden a hacer pocas ediciones, pero grandes, mientras que otros tienden a hacer muchas pequeñas. Los casos extremos pero reales incluyen páginas en las que el autor inicial crea la página completa en una sola edición enorme, mientras que otros editores posteriores realizan varias ediciones para solucionar problemas triviales.
  • Extension:SemanticExtraSpecialProperties - The _EUSER property lists authors by chronological order. Esto tampoco es confiable porque, si bien a menudo los primeros editores son los autores principales, también sucede que los editores posteriores contribuyen de manera significativa e incluso pueden reescribir la página completa.