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

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

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

list=mystashedfiles (msf)

(main | query | mystashedfiles)
  • این پودمان نیازمند اختیارات خواندن است.
  • منبع: MediaWiki
  • مجوز: GPL-2.0-or-later

Get a list of files in the current user's upload stash.

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

Which properties to fetch for the files.

size
Fetch the file size and image dimensions.
type
Fetch the file's MIME type and media type.
مقدارهای (جداشده با | یا جایگزین‌های آن): size، type
پیش‌فرض: (خالی)
msflimit

تعداد پرونده‌هایی که باید بگیرد.

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

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

نمونه:
Get the filekey, file size, and pixel size of files in the current user's upload stash.
api.php?action=query&list=mystashedfiles&msfprop=size [باز کردن در صفحهٔ تمرین]