Of course it depends Civ, map you are playing and Goal you want to achieve.
I like to have early Culture, so I like an early Temple in my Capital, Culture does help relationship with other AIs.
However my priorities goes to Granary, Courthouse, Market place, Aqueduct, Harbour and a few Barracks.
Now when both Libraries and Temples are available, I will build Library if I need to research by myself (found myself alone on an island). If the game require to build Hospital, then I will definitly build Temple and Cathedral in the size 20 Metro.
In other words, if I do not go for a Cultural Goal, Temple (beside the one I will build in my Capital) is my less priority.
I like to have early Culture, so I like an early Temple in my Capital, Culture does help relationship with other AIs.
However my priorities goes to Granary, Courthouse, Market place, Aqueduct, Harbour and a few Barracks.
Now when both Libraries and Temples are available, I will build Library if I need to research by myself (found myself alone on an island). If the game require to build Hospital, then I will definitly build Temple and Cathedral in the size 20 Metro.
In other words, if I do not go for a Cultural Goal, Temple (beside the one I will build in my Capital) is my less priority.