How would one connect the potentiometer to an Arduino?

I'm a total noob to this. How do you connect a slide potentiometer to an Arduino?

may be this can help.

The same way you'd connect a rotary one!

electrically, they're identical: you have a resistive track, with a contact at each end, and moving contact: