I don't know if you have found a solution to this yet. But Dokuwiki does support page and namespace templates:
http://www.dokuwiki.org/namespace_templates
This might, however, not be adequate for your purposes because all Dokuwiki pages can be changed by anyone with write permission.