To make panoramas like the example shown above you need to take several photos in sequence. With these you can then go into photoshop and go File > New > Photomerge® Panorama this will being up the following screen [below] where you can select your images.
Once the images are selected you can choose your layout and hit enter, and let photoshop work it's magic...
The next step [right] is not compulsory because it doesn't always work (dependant on how complex your images are), you can just crop the image later if you wish.