Template:ClassSwitch

Usage
Shortcut for a switch statement based on class.