راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=extlinks (el)
- این پودمان نیازمند اختیارات خواندن است.
- منبع: MediaWiki
- مجوز: GPL-2.0-or-later
Returns all external URLs (not interwikis) from the given pages.
پارامترها:
Other general parameters are available.
- ellimit
How many links to return.
- نوع: عدد صحیح یا max
- The value must be between ۱ and ۵۰۰.
- پیشفرض: 10
- elcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- elprotocol
Protocol of the URL. If empty and elquery is set, the protocol is http and https. Leave both this and elquery empty to list all external links.
- یکی از مقدارهای زیر: Must be empty
- پیشفرض: (خالی)
- elquery
Search string without protocol. Useful for checking whether a certain page contains a certain external url.
- elexpandurl
- منسوخشده.
Expand protocol-relative URLs with the canonical protocol.
- نوع: بولی (جزئیات)
نمونه:
- Get a list of external links on the page صفحهٔ اصلی.
- api.php?action=query&prop=extlinks&titles=%D8%B5%D9%81%D8%AD%D9%87%D9%94%20%D8%A7%D8%B5%D9%84%DB%8C [باز کردن در صفحهٔ تمرین]