User:WolfgangFahl/MagicTag

The MagicTag is a Tag extension that adds a . On rendering this tag a configurable external RESTFul service is called with a POST request and the tag content will be replaced by the text response of the service.

Usage
Setup the RESTFul service endpoint first.

Examples
Take the use cases: MagicTag
 * 1) We want to display some text as ASCII-Art and are to lazy to look for a PHP / extension based solution. There is https://pypi.org/project/art/ which looks nice for the job. There seems to be no security risk involved.
 * 2) We want to display the disk usage in our wiki. This info might not be too security sensible and e.g. useful in an intranet to show when we run out of disk space.

Result
__ __                _        _____                               |___/                         |___/
 * \/ |  __ _   __ _ (_)  ___ |_   _|  __ _   __ _
 * |\/| | / _` | / _` || | / __| | |   / _` | / _` |
 * | | || (_| || (_| || || (__   | |  | (_| || (_| |
 * _| |_| \__,_| \__, ||_| \___|  |_|   \__,_| \__, |

Diskusage


Result
Total: 187 GiB Used: 140 GiB Free: 37 GiB