Thread:Project:Support desk/Using a template to insert a template invocation

We just upgraded our wiki from 1.9 to the latest:

MediaWiki 1.17.0 PHP       5.3.2-1ubuntu4.10 (apache2handler) MySQL     5.1.41-3ubuntu12.10

This broke a really tricky template that relied on the old parser ordering to translate all instances of:

[somestuff]

into:

[]

such that ATemplate actually got invoked and would do some other stuff with "somestuff". It did this by using #replace on the square brackets so that " " became " " and " " became " "; the result of that would then go through the preprocessor and the template would get invoked.

So, with the new changes, that no longer works, and I understand why. My question is, what's another way to do it? I couldn't find any examples of this sort of usage in the migration guide.