MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=parse
- Este módulo requiere permisos de lectura.
- Fuente: MediaWiki
- Licencia: GPL-2.0+
Parses content and returns parser output.
See the various prop-modules of action=query to get information from the current version of a page.
There are several ways to specify the text to parse:
- Specify a page or revision, using page, pageid, or oldid.
- Specify content explicitly, using text, title, and contentmodel.
- Specify only a summary to parse. prop should be given an empty value.
- title
- Título de la página a la que pertenece el texto. Si se omite se debe especificar contentmodel y se debe utilizar el API como título. 
- text
- Texto a analizar. Utiliza title or contentmodel para controlar el modelo del contenido. 
- summary
- Resumen a analizar. 
- page
- Analizar el contenido de esta página. No se puede utilizar con text y title. 
- pageid
- Analizar el contenido de esta página. Remplaza page. 
- Tipo: entero
- redirects
- Si page o pageid contienen una redirección, soluciónalo. 
- Tipo: booleano/lógico (detalles)
- oldid
- Analizar el contenido de esta revisión. Remplaza page y pageid. 
- Tipo: entero
- prop
- Qué piezas de información obtener: - text
- Da el texto analizado en wikitexto.
- langlinks
- Da el idioma de los enlaces en el wikitexto analizado.
- categories
- Da las categorías en el wikitexto analizado.
- categorieshtml
- Da la versión HTML de las categorías.
- links
- Da los enlaces internos del wikitexto analizado.
- templates
- Da las plantillas del wikitexto analizado.
- images
- Da las imágenes del wikitexto analizado.
- externallinks
- Da los enlaces externos del wikitexto analizado.
- sections
- Da las secciones del wikitexto analizado.
- revid
- Añade la ID de revisión de la página analizada.
- displaytitle
- Añade el título del wikitexto analizado.
- headitems
- Da elementos para colocar en el <encabezado>de la página.
- headhtml
- Da el <encabezado>analizado de la página.
- modules
- Da los módulos de ResourceLoader utilizados en la página. jsconfigvars o bien encodedjsconfigvars deben solicitarse en conjunto con modules.
- jsconfigvars
- Da la configuración JavaScript de variables específica para la página.
- encodedjsconfigvars
- Da la configuración JavaScript de variables específica para la página como cadena JSON.
- indicators
- Da el HTML de los indicadores de estado utilizados en la página.
- iwlinks
- Da los enlaces interwiki del texto analizado.
- wikitext
- Da el wikitexto original que se había analizado.
- properties
- Da varias propiedades definidas en el wikitexto analizado.
- limitreportdata
- Da el informe del límite de forma estructurada. No da datos si disablelimitreport está establecido.
- limitreporthtml
- Da la versión HTML del informe del límite. No da datos si disablelimitreport está establecido.
- parsetree
- The XML parse tree of revision content (requires content model wikitext)
 
- Valores (separados por |): text, langlinks, categories, categorieshtml, links, templates, images, externallinks, sections, revid, displaytitle, headitems, headhtml, modules, jsconfigvars, encodedjsconfigvars, indicators, iwlinks, wikitext, properties, limitreportdata, limitreporthtml, parsetree
- Predeterminado: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties
- pst
- Do a pre-save transform on the input before parsing it. Only valid when used with text. 
- Tipo: booleano/lógico (detalles)
- onlypst
- Do a pre-save transform (PST) on the input, but don't parse it. Returns the same wikitext, after a PST has been applied. Only valid when used with text. 
- Tipo: booleano/lógico (detalles)
- effectivelanglinks
- Incluye enlaces de idiomas proporcionados por las extensiones (para utilizar con prop=langlinks). 
- Tipo: booleano/lógico (detalles)
- section
- Only parse the content of this section number. - When new, parse text and sectiontitle as if adding a new section to the page. - new is allowed only when specifying text. 
- sectiontitle
- New section title when section is new. - Unlike page editing, this does not fall back to summary when omitted or empty. 
- disablepp
- En desuso.
- Usa disablelimitreport en su lugar. 
- Tipo: booleano/lógico (detalles)
- disablelimitreport
- Omit the limit report ("NewPP limit report") from the parser output. 
- Tipo: booleano/lógico (detalles)
- disableeditsection
- Omit edit section links from the parser output. 
- Tipo: booleano/lógico (detalles)
- disabletidy
- Do not run HTML cleanup (e.g. tidy) on the parser output. 
- Tipo: booleano/lógico (detalles)
- generatexml
- En desuso.
- Generate XML parse tree (requires content model - wikitext; replaced by prop=parsetree).
- Tipo: booleano/lógico (detalles)
- preview
- Analizar en modo de vista previa. 
- Tipo: booleano/lógico (detalles)
- sectionpreview
- Analizar sección en modo de vista previa (también activa el modo de vista previa). 
- Tipo: booleano/lógico (detalles)
- disabletoc
- Omitir la tabla de contenidos en la salida. 
- Tipo: booleano/lógico (detalles)
- contentformat
- Content serialization format used for the input text. Only valid when used with text. 
- Uno de los siguientes valores: text/x-wiki, text/javascript, application/json, text/css, text/plain
- contentmodel
- Content model of the input text. If omitted, title must be specified, and default will be the model of the specified title. Only valid when used with text. 
- Uno de los siguientes valores: wikitext, javascript, json, css, text
- Analizar una página.
- api.php?action=parse&page=Project:Sandbox [open in sandbox]
- Analizar wikitexto.
- api.php?action=parse&text={{Project:Sandbox}}&contentmodel=wikitext [open in sandbox]
- Analizar wikitexto, especificando el título de la página.
- api.php?action=parse&text={{PAGENAME}}&title=Test [open in sandbox]
- Analizar un resumen.
- api.php?action=parse&summary=Some+[[link]]&prop= [open in sandbox]