@slowwalker,
You have a great knowledge to understood which dynasty the temple built on. Actually I don't know how you are doing it! But I think you have that ground knowledge and sometimes this might be your most interesting area of observe or sometimes this might be your job related thing! Anyway, it's great and educational!
We can get a clear idea by following these articles about beautiful Korea and it's history as well!
Cheers~