Extension:External Data/ha

This page is a translated version of the page Extension:External Data and the translation is 42% complete.
Outdated translations are marked like this.
MediaWiki extensions manual
External Data
Release status: stable
Implementation Parser function , Special page
Description Allows for using and displaying values retrieved from various sources: external URLs and SOAP services, local wiki pages and local files (in CSV, JSON, XML and other formats), database tables, LDAP servers and local programs output.
Author(s) Yaron Koren, Alexander Mashin da sauransu
Latest version 3.3 (Nuwamba 2023)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.37+
Database changes Yes
Tables ed_url_cache
License GNU General Public License 2.0 or later
Download Duba
Example shafi mai ɗauke da bayanin da aka ɗauko daga fayil ɗin CSV na waje
  • $wgSources
  • $wgConnectors
  • $wgAllowGetters
  • $wgIntegratedConnectors
  • $wgVerbose
  • $wgParsers
Translate the External Data extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The External Data extension allows MediaWiki pages to retrieve, filter, and format structured data from one or more sources. These sources can include external URLs and SOAP services, regular wiki pages, uploaded files, files on the local server, databases, LDAP directories and local programs output.

The extension defines the following parser functions :

  • Sake dawo da bayanai da ayyukan sarrafawa, waɗanda ke saita masu canji na gida sannan su nuna, adanawa ko share su:
  • A cikin yanayin dacewa a baya, tsawo kuma yana bayyana ayyukan dawo da bayanai, wanda ya saita masu canjin gida da ke akwai tare da iyakokin shafin wiki wanda daga baya za'a iya nunawa ta amfani da ayyukan da ke sama:
    • #get_external_data - retrieves data from various sources, thus replacing any of the below parser functions, and assigns it to variables that can be accessed on the page.
    • #get_web_data - retrieves CSV, GFF, JSON, YAML, XML, HTML, ini, or free-form data from a URL and assigns it to variables that can be accessed on the page.
    • #get_soap_data - retrieves data from a URL via the SOAP protocol.
    • #get_file_data - yana maido da bayanai daga fayil akan uwar garken gida, a cikin tsari iri daya da #get_web_data.
    • #get_db_data - retrieves data from a database.
    • #get_ldap_data - yana maido da bayanai daga sabar LDAP
    • #get_program_data - yana dawo da bayanan da shirin ke gudana ta gefen uwar garken.
    • #get_inline_data - tantance bayanan da aka tura zuwa gare shi, a cikin tsari iri daya da # samu_web_data.
    • da kuma #clear_external_data that erases the current set of retrieved data or only some variables.

Hakanan yana bayyana aikin mw.ext.externalData.getExternalData wanda ke dawo da bayanai a matsayin tebur na Lua.

A cikin yanayin dacewa, ana kuma fayyace ƙarin ayyuka na Lua masu zuwa (akwai wasiku ɗaya-zuwa ɗaya tsakanin ayyukan ɓarna da ke dawo da bayanai da ayyukan Lua a bayyane daga sunayensu):

  • mw.ext.externalData.getWebData
  • mw.ext.externalData.getFileData
  • mw.ext.externalData.getDbData
  • mw.ext.externalData.getSoapData
  • mw.ext.externalData.getLdapData
  • mw.ext.externalData.getProgramData
  • mw.ext.externalData.getInlineData

A cikin yanayin kwaikwayi tag, mai kula da rukunin yanar gizon wiki na iya ayyana ƙarin alamun fassarori.

Wannan sigar tsawo na Bayanan Waje yana buƙatar MediaWiki 1.29 ko sama.

Danna cikin shafukan da ke cikin mashin kewayawa da ke sama don ƙarin koyo game da Bayanan waje, yadda yake aiki, yadda ake amfani da shi, da yadda ake shigar da shi.