MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=pageswithprop (pwp)
- Este módulo requiere permisos de lectura.
- Este módulo puede utilizarse como un generador.
List all pages using a given page property.
Parámetros:
- pwppropname
Page prop for which to enumerate pages.
- Este parámetro es obligatorio.
- pwpprop
Which pieces of information to include:
- ids
- Adds the page ID.
- title
- Adds the title and namespace ID of the page.
- value
- Adds the value of the page prop.
- Valores (separados por |): ids, title, value
- Predeterminado: ids|title
- pwpcontinue
When more results are available, use this to continue.
- pwplimit
The maximum number of pages to return.
- No more than 500 (5000 for bots) allowed.
- Predeterminado: 10
- pwpdir
In which direction to sort.
- Un valor: ascending, descending
- Predeterminado: ascending
Ejemplos:
- List the first 10 pages using
{{DISPLAYTITLE:}}
. - api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value
- Get page info about first 10 pages using
__NOTOC__
. - api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info