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

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

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

list=prefixsearch (ps)

(main | query | prefixsearch)
  • این پودمان نیازمند اختیارات خواندن است.
  • This module can be used as a generator.
  • منبع: MediaWiki
  • مجوز: GPL-2.0-or-later

Perform a prefix search for page titles.

Despite the similarity in names, this module is not intended to be equivalent to Special:PrefixIndex; for that, see action=query&list=allpages with the apprefix parameter. The purpose of this module is similar to action=opensearch: to take user input and provide the best-matching titles. Depending on the search engine backend, this might include typo correction, redirect avoidance, or other heuristics.

پارامترها:
Other general parameters are available.
pssearch

جستجوی رشته

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

فضاهای نامی برای جستجو

مقدارهای (جداشده با | یا جایگزین‌های آن): 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 100، 101، 102، 103، 710، 711، 828، 829
برای تعیین همهٔ مقدارها از * استفاده کنید.
پیش‌فرض: 0
pslimit

حداکثر تعداد نتایج برای بازگرداندن.

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

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

نوع: عدد صحیح
The value must be no less than ۰.
پیش‌فرض: 0
psprofile

Search profile to use.

strict
پروفایل سخت با چند کاراکتر نشانه گذاری حذف شد ولی تفکیک کننده و علامت استرس نگه داشته شد.
normal
سجاوندی حذف شدند.
fuzzy
شبیه حالت عادی با اصلاح اشتباه تایپی (دو اشتباه تایپی پشتیبانی می‌شود).
fast-fuzzy
Experimental fuzzy profile (may be removed at any time)
classic
پیشوند مرسوم، نویسه‌های سجاوندی و تفکیک‌کننده حذف شدند.
engine_autoselect
اجازه بده موتور جستجو بهترین نمایه را برای به‌کارگیری تعیین کند.
یکی از مقدارهای زیر: classic، engine_autoselect، fast-fuzzy، fuzzy، normal، strict
پیش‌فرض: engine_autoselect