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)
- Ta modul zahteva pravice branja.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
List all pages using a given page property.
Specifični parametri:
Na voljo so tudi drugi splošni parametri.
- pwppropname
Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).
- Ta parameter je obvezen.
- 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 property.
- Values (separate with | or alternative): ids, title, value
- Privzeto: ids|title
- pwpcontinue
Ko bo na voljo več rezultatov, uporabite to za nadaljevanje. Podrobnejše informacije o nadaljevanju poizvedb lahko najdete na mediawiki.org.
- pwplimit
The maximum number of pages to return.
- Type: integer or max
- Vrednost mora biti med 1 in 500.
- Privzeto: 10
- pwpdir
In which direction to sort.
- One of the following values: ascending, descending
- Privzeto: ascending
Zgleda:
- 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]