Improved template process

Tu use any replacement pattern from
https://www.dokuwiki.org/namespace_templates