Extension:External Data/ha

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 :
 * Data retrieval and handling functions, which set local variables and then display, store or clear them:
 * #external_value - displays the value of any such variable.
 * #for_external_table - cycles through all the values retrieved for a set of variables, displaying the same "container" text for each one.
 * #display_external_table - cycles through all the values retrieved for a set of variables, displaying each "row" using a template.
 * #format_external_table - available only if Cargo is installed. Formats the retrieved external data the same way as #cargo_query.
 * #store_external_table - cycles through a table of values, storing them as semantic data via the Semantic MediaWiki extension, by mimicking a call to SMW's #subobject function for each row.
 * #clear_external_data - erases the current set of retrieved data.
 * In backward compatibility mode the extension also defines data retrieval functions, which set local variables available with wikipage scope that can later be displayed using the above functions:
 * #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 - retrieves data from a file on the local server, in the same formats as #get_web_data.
 * #get_db_data - retrieves data from a database.
 * #get_ldap_data - retrieves data from an LDAP server.
 * #get_program_data - retrieves data returned by a program run server-side.
 * #get_inline_data - parses data passed to it, in the same formats as #get_web_data.

It also defines a Lua function  that retrieves data and returns it as Lua table.

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):

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.