When creating a topic from a template, can I make it so that %MACROs% are expanded on save?

Example

Error: no such plugin chili
%STARTSECTION{type="expandvariables"}%
 [[%WIKIUSERNAME%][%QUERY{'%WIKIUSERNAME%'/FirstName}% %QUERY{'%WIKIUSERNAME%'/LastName}%]]
 created this topic at %SERVERTIME% in %WEB% web when there were %SEARCH{"1" type="query" nonoise="on" format="" footer="$ntopics"}% topics in it
%ENDSECTION{type="expandvariables"}%

There are currently %SEARCH{"1" type="query" nonoise="on" format="" footer="$ntopics"}% topics in %WEB%

IDEA! Note that the SEARCH and WEB macros inside the expandvariables section are expanded on save; whereas the same macros outside of that section, are saved verbatim.

Test

Using Faq58Template:

Created topics

Searched: parent.name='Faq58'
Number of topics: 1
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads