 <p>There are several macros of this kind, but they are not directly available.</p> <p>The page <a href="http://www.dokuwiki.org/namespace_templates" rel="nofollow">namespace templates</a> describes how to set up namespace-level template files that automatically substitute some expressions (such as <code>@USER@</code> or <code>@DATE@</code>) when <em>creating</em> a new page in that directory. It should not be hard to adapt those to the format you desire.</p> <p>Another choice would be adapt something from the <a href="http://www.dokuwiki.org/plugin%3avar" rel="nofollow">var plugin</a> so that the instructions it generates are converted and saved as text during a page preview or save. It would require converting the plugin from a "syntax" plugin to an "action" plugin.</p>