The way to go is to first determine, what you want to do (obvious, but people tend to forget to be clear about it). After you have installed and created the config files/design directories for you site, have the all(!) the demo sites installed and enable template debug:
Then choose a demo view that most closely resembles what you want, and dig into the template code of that view. Use the customization section as a reference