With the template based on the original dokuwiki template and (as all templates do) directly using DokuWiki code, you have to be compatible with the original license which is GPL Version 2. While you can use MIT code in GPL software you can't use GPL code in MIT software. So your template has to be released under the GPL.