Extension:External Data/Glossary


 * Data processing functions : Data processing functions are parser functions that display or otherwise utilise the external data: #external_value, #for_external_table, #display_external_table, #format_external_table, #store_external_table, #clear_external_data. In Standalone mode they also retrieve the necessay data; in Legacy mode, they dispay the data previously retrieved by Data retrieval functions.
 * Data retrieving functions : Data retrieval functions are parser functions defined in Legacy mode that retrieve the data to be processed further down the wikitext by Data processing functions. They are: #get_external_data (the universal function replacing any of the below functions), #get_web_data, #get_soap_data, #get_file_data, #get_db_data, #get_ldap_data, #get_program_data, #get_inline_data.
 * Data source : Data source is either a URL, a host, a second-level domain, an inline text to be parsed or a configured in  connection to a database, LDAP server, etc., or a generic source  . Texts cannot be configured; URLs can but do not need to; other must be. For a web or SOAP connection, four data source are analysed to obtain the necessary configuration: , second-level domain, host, URL. For other types of connections, only two:   and the specific connection itself. A data source can contain the parameters that are usually passed to the parser function overriding them. Data sources are configured in the   array.
 * Data source ID : Data source ID is the string identifying it and serving as a key of the  array. For URLs, it is the URL, its host, second-level domain, for other types of connection, its identifier, that can be called, deending on its type, ,  ,  ,  , etc. Any of the above, except   can be replaced with  ; and for the Hidden data sources, only   can be used; and in most cases, this parameter can be passed to parser function as its only anonymous argument.
 * Format : ...
 * Format auto-detection : ...
 * Hidden data source : A hidden data source is a Data source with a setting . It is supposed to contain all settings usually passed to the parser function, thus hiding all its details, even its type, from wiki user . In Legacy mode can only be invoked with get_external_data, its identifier can only be passed to it as.
 * Intuitive parsing : Intuitive parsing happens when the wikitext is passed to for_external_table as its second parameter rather than the first, i.e., when a pipe character is inserted after the semi-colon. In this mode, the wikitext, including variables' values in  is parsed correctly. This is the recommended mode.
 * Limited parsing : Limited parsing happens when the wikitext is passed to for_external_table as its first parameter. In this mode, the wikitext, including variables' values in  is parsed parsed counter-intuitively, and parser functions in the wikitext are applied to variables' names rather than their values, which severely limits wikitext functionallity. This mode is kept for backward compatibility.
 * Legacy mode : Legacy mode is enabled, when . Only in legacy mode, Data retrieving functions are available, as well as Lua functions other than   . This mode is kept for backward compatibility.
 * Lua functions : Lua functions retrieve external data and return it as a two-dimentional row-based Lua table. They are: are  (in both modes) and ,  ,  ,  ,  ,  ,   (in Legacy mode). Lua functions accept the same parameters as Data retrieving funcitons wrapped in an associative Lua table; if Data source ID is the only parameter, it can be passed not wrapped in a table, e.g.,.
 * Parsing : Some data source types (web, SOAP, program, inline text) fetch external data as text, whicn may need to be parsed as CSV, XML, JSON, etc. The parsing is done by a Data retrieving function in Legacy mode, a Data processing function in Standalone mode or a Lua function. The Format can either be set explicitly by the  parameter, or auto-detected, which works in most cases.
 * Standalone mode : Standalone mode is the mode of calling Data processing functions, when the parameters needed to fetch the external data are passed to them, and Data retrieving functions are not used. This external data will not be available elsewhere in wikitext. This mode is the only option, if the wikitext is parsed by Parsoid, since it does not guarantee parsing order.
 * Tag emulation mode : The tag emulation mode is the mode of calling a server-side program by a parser tag, if  is defined for the Data source. This is useful, when a program returns SVG that needs to be embedded in the resulting HTML.