راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=links (pl)
- این پودمان نیازمند اختیارات خواندن است.
- This module can be used as a generator.
- منبع: MediaWiki
- مجوز: GPL-2.0-or-later
Returns all links from the given pages.
پارامترها:
Other general parameters are available.
- plnamespace
Show links in these namespaces only.
- مقدارهای (جداشده با | یا جایگزینهای آن): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- برای تعیین همهٔ مقدارها از * استفاده کنید.
- pllimit
تعداد پیوندهایی که باید بازگرداند.
- نوع: عدد صحیح یا max
- The value must be between ۱ and ۵۰۰.
- پیشفرض: 10
- plcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- pltitles
Only list links to these titles. Useful for checking whether a certain page links to a certain title.
- Separate values with | or alternative.
- حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیتهای بالاتر را دارند).
- pldir
The direction in which to list.
- یکی از مقدارهای زیر: ascending, descending
- پیشفرض: ascending
نمونهها:
- Get links from the page سرآسونٱ
- api.php?action=query&prop=links&titles=%D8%B3%D8%B1%D8%A2%D8%B3%D9%88%D9%86%D9%B1 [باز کردن در صفحهٔ تمرین]
- Get information about the link pages in the page سرآسونٱ.
- api.php?action=query&generator=links&titles=%D8%B3%D8%B1%D8%A2%D8%B3%D9%88%D9%86%D9%B1&prop=info [باز کردن در صفحهٔ تمرین]
- Get links from the page سرآسونٱ in the کاریار and چوٙأ namespaces.
- api.php?action=query&prop=links&titles=%D8%B3%D8%B1%D8%A2%D8%B3%D9%88%D9%86%D9%B1&plnamespace=2|10 [باز کردن در صفحهٔ تمرین]