راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=allimages (ai)
- این پودمان نیازمند اختیارات خواندن است.
- This module can be used as a generator.
- منبع: MediaWiki
- مجوز: GPL-2.0-or-later
متوالی شمردن همهٔ تصاویر.
- aisort
- ویژگی برای مرتبسازی بر پایه آن 
- یکی از مقدارهای زیر: name، timestamp
- پیشفرض: name
- aidir
- جهتی که باید فهرست شود. 
- یکی از مقدارهای زیر: ascending، descending، newer، older
- پیشفرض: ascending
- aifrom
- The image title to start enumerating from. Can only be used with aisort=name. 
- aito
- The image title to stop enumerating at. Can only be used with aisort=name. 
- aicontinue
- When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org. 
- aistart
- The timestamp to start enumerating from. Can only be used with aisort=timestamp. 
- نوع: برچسب زمان (قالبهای مجاز)
- aiend
- The timestamp to end enumerating. Can only be used with aisort=timestamp. 
- نوع: برچسب زمان (قالبهای مجاز)
- aiprop
- Which file information to get: - timestamp
- Adds timestamp for the uploaded version.
- user
- Adds the user who uploaded each file version. If the user has been revision deleted, a userhidden property will be returned.
- userid
- Add the ID of the user that uploaded each file version. If the user has been revision deleted, a userhidden property will be returned.
- comment
- Comment on the version. If the comment has been revision deleted, a commenthidden property will be returned.
- parsedcomment
- تجزیهٔ خلاصهٔ نسخه. در صورتی که نسخهٔ مرتبط با خلاصه حذف شده باشد، یک ویژگی commenthidden برگردانده خواهد شد.
- canonicaltitle
- Adds the canonical title of the file. If the file has been revision deleted, a filehidden property will be returned.
- url
- Gives URL to the file and the description page. If the file has been revision deleted, a filehidden property will be returned.
- size
- اندازهٔ تصویر به بایت و ارتفاع، عرض و شمار صفحههای تصویر (در صورت وجود) را اضافه میکند.
- dimensions
- نام مستعار برای size
- sha1
- افزودن SHA-1 hash برای پرونده
- mime
- افزودن نوع MIME برای پرونده
- mediatype
- Adds the media type of the file. If the file has been revision deleted, a filehidden property will be returned.
- metadata
- Lists Exif metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
- commonmetadata
- Lists file format generic metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
- extmetadata
- Lists formatted metadata combined from multiple sources. Results are HTML formatted. If the file has been revision deleted, a filehidden property will be returned.
- bitdepth
- Adds the bit depth of the version. If the file has been revision deleted, a filehidden property will be returned.
- badfile
- Adds whether the file is on the MediaWiki:Bad image list
 
- مقدارهای (جداشده با | یا جایگزینهای آن): badfile، bitdepth، canonicaltitle، comment، commonmetadata، dimensions، extmetadata، mediatype، metadata، mime، parsedcomment، sha1، size، timestamp، url، user، userid
- پیشفرض: timestamp|url
- aiprefix
- Search for all image titles that begin with this value. Can only be used with aisort=name. 
- aiminsize
- محدودکردن به صفحههایی که دست کم این تعداد بایت دارند. 
- نوع: عدد صحیح
- aimaxsize
- محدودکردن به صفحههایی که حداکثر این تعداد بایت دارند. 
- نوع: عدد صحیح
- aisha1
- SHA1 hash of image. Overrides aisha1base36. 
- aisha1base36
- SHA1 hash of image in base 36 (used in MediaWiki). 
- aiuser
- Only return files where the last version was uploaded by this user. Can only be used with aisort=timestamp. Cannot be used together with aifilterbots. 
- نوع: کاربر، توسط هریک از نام کاربری، آیپی، حساب کاربری موقت، نام میانویکی (یعنی «پیشوند>ناممثال») و شناسهٔ کاربر (مثلاً «#12345»)
- aifilterbots
- How to filter files uploaded by bots. Can only be used with aisort=timestamp. Cannot be used together with aiuser. 
- یکی از مقدارهای زیر: all، bots، nobots
- پیشفرض: all
- aimime
- What MIME types to search for, e.g. image/jpeg. 
- Separate values with | or alternative.
- حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیتهای بالاتر را دارند).
- ailimit
- How many images in total to return. 
- نوع: عدد صحیح یا max
- The value must be between ۱ and ۵۰۰.
- پیشفرض: 10
- Show a list of files starting at the letter B.
- api.php?action=query&list=allimages&aifrom=B [باز کردن در صفحهٔ تمرین]
- Show a list of recently uploaded files, similar to Special:NewFiles.
- api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older [باز کردن در صفحهٔ تمرین]
- Show a list of files with MIME type image/png or image/gif
- api.php?action=query&list=allimages&aimime=image/png|image/gif [باز کردن در صفحهٔ تمرین]
- Show info about 4 files starting at the letter T.
- api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo [باز کردن در صفحهٔ تمرین]