Erweiterung:External Data
External Data Freigabestatus: stabil |
|
---|---|
Einbindung | Parser-Funktion , Spezialseite |
Beschreibung | 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. |
Autor(en) | Yaron Koren, Alexander Mashin and others |
Letzte Version | 3.3 (November 2023) |
Kompatibilitätspolitik | Der Master behält die Abwärtskompatibilität bei. |
MediaWiki | 1.37+ |
Datenbankänderungen | Ja |
Tabellen | ed_url_cache |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | Siehe |
Beispiel | A page containing information retrieved from an external CSV file |
|
|
Übersetze die External Data-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
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.
Die Erweiterung definiert die folgenden parser functions :
- Data retrieval and handling functions, which set local variables and then display or store 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 - nur verfügbar, wenn Cargo installiert ist. 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.
- In the Legacy 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_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 - retrieves data from a file on the local server, in the same formats as #get_web_data.
- #get_db_data - ruft Daten von einer Datenbank ab.
- #get_ldap_data - ruft Daten von einen LDAP-Server ab.
- #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.
- and also #clear_external_data that erases the current set of retrieved data or only some variables.
It also defines a Lua function mw.ext.externalData.getExternalData
that retrieves data and returns it as Lua table.
In the Legacy mode, the following additional Lua functions are also defined (there is one-to-one correspondence between parser functions retrieving data and Lua functions evident from their names):
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
In tag emulation mode, the wiki site administrator can define additional parser tags.
Diese Version der External Data-Erweiterung erfordert MediaWiki 1.37+.
Klicke durch die Seiten in der Navigationsleiste oben, um mehr über External Data zu erfahren, wie es funktioniert, wie man es benutzt und wie man es installiert.
Diese Erweiterung ist in den folgenden Softwarepaketen enthalten und/oder wird von den folgenden Wiki-Farmen, bzw. Wiki-Hostern verwendet: Dies ist keine maßgebliche Liste. Softwarepakete und/oder Wiki-Farmen, bzw. Wiki-Hoster nutzen diese Erweiterung ggf., obwohl sie nicht in dieser Liste enthalten sind. Prüfe daher stets die Nutzung im verwendeten Softwarepaket und/oder bei der Wiki-Farm, bzw. dem Wiki-Hoster. |
- Stable extensions/de
- Parser function extensions/de
- Special page extensions/de
- GPL licensed extensions/de
- LoadExtensionSchemaUpdates extensions/de
- ParserFirstCallInit extensions/de
- ScribuntoExternalLibraries extensions/de
- SoftwareInfo extensions/de
- All extensions/de
- Extensions included in BlueSpice/de
- Extensions included in Canasta/de
- Extensions included in Miraheze/de
- Extensions included in MyWikis/de
- Extensions included in ProWiki/de
- Extensions included in semantic::core/de
- Extensions included in WikiForge/de
- Data extraction extensions/de
- Remote content extensions/de
- File system content extensions/de
- Semantic MediaWiki extensions/de
- Extensions in Wikimedia version control/de