Just tested it. You can use a TP scroll one step outside the Temple and it will teleport you to the centre of the Temple.
Of course there is no maximum distance for use. Anywhere that isn't a No Logout zone can be teleported from, as long as your character isn't Logout Blocked from an active battle situation or of course Protection Zone blocked on PvP worlds
Edited to include: Yalahar as hometown temple. 1 step north of temple tested. Teleported me two steps south to the centre of the temple