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)
- This module requires read rights.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Loetle kõik leheküljed, mis kasutavad teatud leheatribuuti.
Parameters:
- pwppropname
Leheatribuut, mille kohta lehekülgi loetleda (action=query&list=pagepropnames tagastab kasutatavate atribuutide nimed).
- This parameter is required.
- pwpprop
Millised teabe elemendid hankida:
- ids
- Adds the page ID.
- title
- Adds the title and namespace ID of the page.
- value
- Lisab leheatribuudi väärtuse.
- Values (separate with | or alternative): ids, title, value
- Default: ids|title
- pwpcontinue
Kui saadaval on rohkem tulemusi, kasuta seda jätkamiseks.
- pwplimit
The maximum number of pages to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- pwpdir
Järjestuse suund.
- One of the following values: ascending, descending
- Default: ascending
Examples:
- List the first 10 pages using
{{DISPLAYTITLE:}}
. - api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value [open in sandbox]
- Get additional information about the first 10 pages using
__NOTOC__
. - api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info [open in sandbox]