MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=pageswithprop (pwp)
- Denna modul kräver läsrättigheter.
- Denna modul kan användas som en generator.
- Source: MediaWiki
- License: GPL-2.0+
Lista alla sidor som använder en angiven sidegenskap.
Parametrar:
- pwppropname
Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).
- Denna parameter är obligatorisk.
- 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.
- Värden (separerade med | eller alternativ): ids, title, value
- Default: ids|title
- pwpcontinue
When more results are available, use this to continue.
- pwplimit
The maximum number of pages to return.
- Inte mer än 500 (5 000 för robotar) tillåts.
- Type: integer or max
- Default: 10
- pwpdir
In which direction to sort.
- Ett av följande värden: ascending, descending
- Default: ascending
- pwpnocache
- (no description)
- Type: boolean (details)
- pwpprop_append
- (no description)
- Type: boolean (details)
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]