Rotary switch as stepped potentiometer into analog in....?

So I'm having a hard time visualizing how this would be connected. 5v going to central pin of 12position switch, then 1k resistors across each pin. An analog pin connected to the 12th pin (or does ground go there?). Where does ground (or analog in) go?

I guess what's the 'wiper' in a 1 to 12 rotary switch?

Oh wait, so pin1 is 5v, pin12 is ground, and the central pin is the analog in, with a .1 cap going from the central pin to pin12/ground to slow the switching rate. Can I go with a bigger value to avoid 'floating' problems altogether? I don't need to switch fast at all, and my hardware skills are much better than my software skills.

MarkT:
I would go for as simple as possible - 1k resistors between each contact. Then its easy to convert the ADC input to a switch-position number, and this in turn can be converted to any function you want, linear or otherwise. For a 12 position switch that comes to 11k in total which is less than 0.5mA per switch which isn't too wasteful.

One issue is that as the switch moves the wiper might be floating briefly (or simultaneously connected to two neighbouring contacts). The code will have to identify and reject such 'bad' values. Reduce the 'floating input' problem by a capacitor of 0.1uF or so between the wiper and ground.