මාධ්යවිකි API උදවු
මෙය ස්වයං-ජනිත මාධ්යවිකි API ප්රලේඛන පිටුවකි.
ප්රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API
prop=extlinks (el)
- මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්ය වේ.
- Source: MediaWiki
- License: GPL-2.0-or-later
Returns all external URLs (not interwikis) from the given pages.
පරාමිතීන්:
Other general parameters are available.
- ellimit
How many links to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 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.
- එක් වටිනාකමක්: Can be empty, or 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
- Default: (හිස්)
- 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.
- Type: boolean (details)
උදාහරණය:
- Get a list of external links on the page මුල් පිටුව.
- api.php?action=query&prop=extlinks&titles=%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A%20%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80 [open in sandbox]