עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

prop=images (im)

(main | query | images)
  • יחידה זו דורשת הרשאות קריאה.
  • היחידה הזאת יכולה להיות מחולל.

Returns all files contained on the given pages.

פרמטרים:
imlimit

כמה קבצים להחזיר.

המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
ברירת מחדל: 10
imcontinue

כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.

imimages

Only list these files. Useful for checking whether a certain page has a certain file.

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
imdir

The direction in which to list.

ערך אחד: ascending, descending
ברירת מחדל: ascending
דוגמאות:
Get a list of files used in the Main Page.
api.php?action=query&prop=images&titles=Main%20Page
Get information about all files used in the Main Page.
api.php?action=query&generator=images&titles=Main%20Page&prop=info