MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=pageswithprop (pwp)

(main | query | pageswithprop)
  • This module requires read rights.
  • This module can be used as a generator.
  • Font : MediaWiki
  • Licéncia : GPL-2.0-or-later

List all pages using a given page property.

Paramètres :
Other general parameters are available.
pwppropname

Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).

Cal aquest paràmetre.
pwpprop

Which pieces of information to include:

ids
Apond l’ID de la pagina.
title
Adds the title and namespace ID of the page.
value
Adds the value of the page property.
Values (separate with | or alternative): ids, title, value
Per defecte: ids|title
pwpcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

pwplimit

The maximum number of pages to return.

Type: integer or max
The value must be between 1 and 500.
Per defecte: 10
pwpdir

In which direction to sort.

One of the following values: ascending, descending
Per defecte: ascending
Examples:
List the first 10 pages using {{DISPLAYTITLE:}}.
api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value [open in sandbox]
Obtenir informació addicional sobre les 10 primeres pàgines utilitzant .
api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info [open in sandbox]