עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
prop=extlinks (el)
- יחידה זו דורשת הרשאות קריאה.
Returns all external URLs (not interwikis) from the given pages.
פרמטרים:
- ellimit
כמה קישורים להחזיר.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- eloffset
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
- elprotocol
Protocol of the URL. If empty and elquery is set, the protocol is http. Leave both this and elquery empty to list all external links.
- ערך אחד: יכול להיות ריק או bitcoin, ftp, ftps, geo, git, gopher, http, https, irc, ircs, magnet, mailto, mms, news, nntp, redis, sftp, sip, sips, sms, ssh, svn, tel, telnet, urn, worldwind, xmpp
- ברירת מחדל: (ריק)
- 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 Main Page.
- api.php?action=query&prop=extlinks&titles=Main%20Page