I don't know if there's a mod that works that way, but that's how phrases work. If you create a phrase like you posted above, then in a plugin or template you can specify what you want to use for the variables.
Well, if it's mod then you need to ask in the mod thread. Edit:... but the answer is that you'd probably need to add code, unless the mod is written to allow it to be customized.