But it doesn't have to be next to the temple, around the temple can certainly be booked, at most 1, 2 stops, the temple is in the city, 1, 2 stops really nothing.
This depends, chain hotels you do not have a discount card if the general 150 or so. The first thing you need to do is to get a good deal on a hotel.
If it is a local private hotel in Nanjing, not a chain to be cheaper 10 dollars, 20 or so.