User:Alfwyn/Sandbox/Template:Replace

From YPPedia

{{{1}}}

Usage

These usage notes will not be included in articles bearing this template.

{{replace|text|key1=value1|key2=value2|...}}

Will expand to 'text' unless 'text' matches any of the given keys, in which case it will expand to the corrosponding value.

Note: Perhaps worthwile to find out the name of this template in other wikis, it's too simple not to be a reinvention.