راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=pageswithprop (pwp)

(main | query | pageswithprop)
  • این پودمان نیازمند اختیارات خواندن است.
  • This module can be used as a generator.
  • منبع: MediaWiki
  • مجوز: 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).

این پارامتر الزامی است.
pwpprop

Which pieces of information to include:

ids
افزودن شناسه صفحه
title
Adds the title and namespace ID of the page.
value
Adds the value of the page property.
مقدارهای (جداشده با | یا جایگزین‌های آن): ids، title، value
پیش‌فرض: 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.

نوع: عدد صحیح یا max
The value must be between ۱ and ۵۰۰.
پیش‌فرض: 10
pwpdir

جهت مرتب شدن

یکی از مقدارهای زیر: ascending، descending
پیش‌فرض: ascending