Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=extlinks (el)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Returns all external URLs (not interwikis) from the given pages.
Parametry:
Other general parameters are available.
- ellimit
How many links to return.
- Type: integer or max
- Hodnota musí byť medzi 1 a 500.
- Predvolené: 10
- elcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- elprotocol
Protocol of the URL. If empty and elquery is set, the protocol is http and https. Leave both this and elquery empty to list all external links.
- Jedna z následujících hodnot: Môže byť prázdne, alebo bitcoin, ftp, ftps, geo, git, gopher, http, https, irc, ircs, magnet, mailto, matrix, mms, news, nntp, redis, sftp, sip, sips, sms, ssh, svn, tel, telnet, urn, wikipedia, worldwind, xmpp
- Implicitní hodnota: (prázdné)
- elquery
Search string without protocol. Useful for checking whether a certain page contains a certain external url.
- elexpandurl
- Zastaralý.
Expand protocol-relative URLs with the canonical protocol.
- Type: boolean (details)
Příklad:
- Get a list of external links on the page Hlavní strana.
- api.php?action=query&prop=extlinks&titles=Hlavn%C3%AD%20strana [otevřít v pískovišti]