رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=images (im)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو جنریٹر کے طور پر استعمال کیا جا سکتا ہے۔
- ماخذ: MediaWiki
- اجازت نامہ: GPL-2.0-or-later
Returns all files contained on the given pages.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- imlimit
How many files to return.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 10
- imcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- imimages
Only list these files. Useful for checking whether a certain page has a certain file.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- imdir
The direction in which to list.
- ذیل کی قدروں میں سے کوئی ایک: ascending، descending
- طے شدہ: ascending
مثالیں
- Get a list of files used on the page صفحۂ اول.
- api.php?action=query&prop=images&titles=%D8%B5%D9%81%D8%AD%DB%82%20%D8%A7%D9%88%D9%84 [تختۂ مشق میں کھولیں]
- Get information about all files used on the page صفحۂ اول.
- api.php?action=query&generator=images&titles=%D8%B5%D9%81%D8%AD%DB%82%20%D8%A7%D9%88%D9%84&prop=info [تختۂ مشق میں کھولیں]