Open main menu

Extension:Linter/es

This page is a translated version of the page Extension:Linter and the translation is 25% complete.

Other languages:
English • ‎español • ‎português do Brasil • ‎中文 • ‎日本語 • ‎한국어
MediaWiki extensions manual
OOjs UI icon advanced.svg
Linter
Release status: estable
Linter logo v2.svg
Implementación Special page
Descripción Expose and track lint errors
Autor(es) Kunal Mehta (Legoktmtalk)
Cambios de la base de datos
Tablas linter
Licencia GNU General Public License 2.0 or later
Descarga
README
Translate the Linter extension if it is available at translatewiki.net
Verificar uso y versión de la matriz.
Asuntos Tareas abiertas · Reportar un bug

The Linter extension tracks lint errors from an external service. Currently the main use case is to track the errors identified by Parsoid and expose them to editors. Help for users wanting to fix errors is available at Ayuda:Extensión:Linter .

Contents

Instalación

This extension requires Parsoid to be installed and linting enabled in Parsoid's configuration.
  • Descarga y extrae los archivos en el directorio «Linter» dentro del directorio extensions/ existente.
  • Añade el siguiente código a tu LocalSettings.php (preferiblemente al final):
    wfLoadExtension( 'Linter' );
    
  • Ejecuta el script de actualización, que creará automáticamente las tablas que necesita esta extensión en la base de datos.
  •   Listo – Navega a Special:Version en tu wiki para verificar que la apariencia se haya instalado correctamente.

Para quienes usan MediaWiki 1.24 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.24 y anteriores), debes usar lo siguiente en lugar de wfLoadExtension( 'Linter' );:

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

Configuration parameters

In your Parsoid config.yaml, set:

        linting: true
        linter:
            sendAPI: true

API

list=linterrors (lnt)

(main | query | linterrors)

Get a list of lint errors

Parameters:
lntcategories

Categories of lint errors

Values (separate with | or alternative): deletable-table-tag, html5-misnesting, misc-tidy-replacement-issues, multiline-html-table-in-list, multiple-unclosed-formatting-tags, pwrap-bug-workaround, self-closed-tag, tidy-font-bug, tidy-whitespace-bug, unclosed-quotes-in-heading, bogus-image-options, fostered, misnested-tag, multi-colon-escape, wikilink-in-extlink, missing-end-tag, obsolete-tag, stripped-tag
Default: deletable-table-tag|html5-misnesting|misc-tidy-replacement-issues|multiline-html-table-in-list|multiple-unclosed-formatting-tags|pwrap-bug-workaround|self-closed-tag|tidy-font-bug|tidy-whitespace-bug|unclosed-quotes-in-heading|bogus-image-options|fostered|misnested-tag|multi-colon-escape|wikilink-in-extlink|missing-end-tag|obsolete-tag|stripped-tag
lntlimit

Number of results to query

No more than 500 (5,000 for bots) allowed.
Type: integer or max
Default: 10
lntnamespace

Only include lint errors from the specified namespaces

Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 102, 103, 104, 105, 106, 107, 486, 487, 828, 829, 1198, 1199, 2300, 2301, 2302, 2303, 2600, 5500, 5501
To specify all values, use *.
lntpageid

Only include lint errors from the specified page IDs

Type: list of integers
Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
lntfrom

Lint ID to start querying from

Type: integer
Example:
Get all lint errors of the obsolete-tag category
api.php?action=query&list=linterrors&lntcategories=obsolete-tag [open in sandbox]

Linter categories

A list of linter categories is available in site info properties.

Ve también