עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
prop=iwlinks (iw)
- יחידה זו דורשת הרשאות קריאה.
Returns all interwiki links from the given pages.
פרמטרים:
- iwprop
Which additional properties to get for each interlanguage link:
- url
- Adds the full URL.
- ערכים (מופרדים באמצעות "|"): url
- iwprefix
Only return interwiki links with this prefix.
- iwtitle
Interwiki link to search for. Must be used with iwprefix.
- iwdir
The direction in which to list.
- ערך אחד: ascending, descending
- ברירת מחדל: ascending
- iwlimit
How many interwiki links to return.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- iwcontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
- iwurl
- מיושן.
Whether to get the full URL (cannot be used with iwprop).
דוגמה:
- Get interwiki links from the page Main Page.
- api.php?action=query&prop=iwlinks&titles=Main%20Page