Extension:External Data/Local programs

The parser function #get_program_data allows retrieval of data returned by a program run server-side.

Configuration
Every such program has to be confgured at  as in the example below:

Usage
After a program is configured, it can be invoked thus: and then the retrieved data (SVG in this case) can be shown with pair, which will prevent any wiki postprocessing.

in this example is a special variable that holds the entire outputted text of the program; see.

All of the parsing-related parameters that #get_web_data supports (format, delimiter, use xpath, etc.) can be used for #get_program_data as well; see.

The caching-related parameters (cache seconds and use stale cache) and settings that #get_web_data supports can be used for #get_program_data as well; see.

Tag emulation
A simplified syntax is available in tag emulation mode: pair.

Simple example
A simpler example, involving only text processing, is below: and

Although programs are run in a restricted environment by, wiki admin should exercise great caution while configuring programs to make them callable with #get_program_data.

A set of tested examples can be found here and (with working output) here.