Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

list=pageswithprop (pwp)

(main | query | pageswithprop)
  • Modul ini memerlukan hak membaca.
  • Modul ini boleh digunakan sebagai penjana.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List all pages using a given page property.

Parameter:
pwppropname

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

Parameter ini diwajibkan.
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
Asal: ids|title
pwpcontinue

When more results are available, use this to continue.

pwplimit

The maximum number of pages to return.

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

In which direction to sort.

One of the following values: ascending, descending
Asal: ascending
Contoh-contoh:
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]