මාධ්යවිකි API උදවු
මෙය ස්වයං-ජනිත මාධ්යවිකි API ප්රලේඛන පිටුවකි.
ප්රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API
list=pageswithprop (pwp)
- මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්ය වේ.
- මෙම ආකෘතිය උත්පාදකයක් ලෙස භාවිතා කල හැක.
- Source: MediaWiki
- License: GPL-2.0-or-later
List all pages using a given page property.
පරාමිතීන්:
Other general parameters are available.
- pwppropname
Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).
- This parameter is required.
- 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.
- වටිනාකම් ("|" සමග වෙන් කරන්න): ids, title, value
- Default: 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.
- Default: 10
- pwpdir
In which direction to sort.
- එක් වටිනාකමක්: ascending, descending
- Default: ascending
උදාහරණ:
- 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]