עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
list=allimages (ai)
- יחידה זו דורשת הרשאות קריאה.
- היחידה הזאת יכולה להיות מחולל.
Enumerate all images sequentially.
- aisort
Property to sort by.
- ערך אחד: name, timestamp
- ברירת מחדל: name
- aidir
The direction in which to list.
- ערך אחד: 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
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
- 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.
- userid
- Add the user ID that uploaded each file version.
- comment
- תגובה על הגרסה.
- parsedcomment
- Parse the comment on the version.
- canonicaltitle
- Adds the canonical title of the file.
- url
- Gives URL to the file and the description page.
- size
- Adds the size of the file in bytes and the height, width and page count (if applicable).
- dimensions
- Alias for size.
- sha1
- Adds SHA-1 hash for the file.
- mime
- Adds MIME type of the file.
- mediatype
- Adds the media type of the file.
- metadata
- Lists Exif metadata for the version of the file.
- commonmetadata
- Lists file format generic metadata for the version of the file.
- extmetadata
- Lists formatted metadata combined from multiple sources. Results are HTML formatted.
- bitdepth
- Adds the bit depth of the version.
- ערכים (מופרדים באמצעות "|"): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, mediatype, metadata, commonmetadata, extmetadata, bitdepth
- ברירת מחדל: timestamp|url
- aiprefix
Search for all image titles that begin with this value. Can only be used with aisort=name.
- aiminsize
Limit to images with at least this many bytes.
- aimaxsize
Limit to images with at most this many bytes.
- aisha1
גיבוב SHA1 של תמונה. דריסת aisha1base36.
- aisha1base36
גיבוב SHA1 של התמונה בבסיס 36 (הבסיס בו נעשה שימוש במדיה־ויקי).
- aiuser
Only return files uploaded by this user. Can only be used with aisort=timestamp. Cannot be used together with aifilterbots.
- 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.
- הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
- ailimit
כמה תמונות להחזיר בסך הכול.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- הצגת רשימה של קבצים שמתחילים באות 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
- הצגת מידע על 4 קבצים המתחילים באות T.
- api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo