Temple is a village and civil parish in Midlothian, Scotland. Situated to the south of Edinburgh, the village lies on the east bank of the river South Esk. The civil parish has a population of 225.