עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

(main | query | langlinks)
  • יחידה זו דורשת הרשאות קריאה.

Returns all interlanguage links from the given pages.

פרמטרים:
llprop

Which additional properties to get for each interlanguage link:

url
Adds the full URL.
langname
Adds the localised language name (best effort). Use llinlanguagecode to control the language.
autonym
Adds the native language name.
ערכים (מופרדים באמצעות "|"): url, langname, autonym
lllang

Only return language links with this language code.

lltitle

קישור לחיפוש. חובה להשתמש עם lllang.

lldir

The direction in which to list.

ערך אחד: ascending, descending
ברירת מחדל: ascending
llinlanguagecode

Language code for localised language names.

ברירת מחדל: he
lllimit

How many langlinks to return.

המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
ברירת מחדל: 10
llcontinue

כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.

llurl
מיושן.

Whether to get the full URL (cannot be used with llprop).

דוגמה:
Get interlanguage links from the page Main Page.
api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=