Themes can contain an unlimited number of page templates. Templates contain markup supported by the Swig template engine.
Read the Swig documentation for a reference on how to markup your page template content with tags and logic flow.
The Page Templates Reference details the context data available during execution, along with any context data you add via code.
Go through the Platform Quickstart to quickly create a sample site including a number of page templates demonstrating various features including master templates.