עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
prop=links (pl)
- יחידה זו דורשת הרשאות קריאה.
- היחידה הזאת יכולה להיות מחולל.
החזרת כל הקישורים מהדפים שצוינו.
פרמטרים:
- plnamespace
Show links in these namespaces only.
- ערכים (מופרדים באמצעות "|"): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- pllimit
How many links to return.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- plcontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
- pltitles
Only list links to these titles. Useful for checking whether a certain page links to a certain title.
- הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
- pldir
The direction in which to list.
- ערך אחד: ascending, descending
- ברירת מחדל: ascending
דוגמאות:
- Get links from the page Main Page
- api.php?action=query&prop=links&titles=Main%20Page
- Get information about the link pages in the page Main Page.
- api.php?action=query&generator=links&titles=Main%20Page&prop=info
- Get links from the page Main Page in the עורכ/ת and תבנית namespaces.
- api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10