Set a variable in a template based on URL parameter

Definitely possible with custom code did not find any modules but it opens up obvious security concerns, so you want it matching a hard-coded list not allowing it to be anything.