I am a graduate of St Andrews University and what is more I spent my four years there in University Hall. So I came across this picture in this article from Reform Magazine and my immediate response was...
THAT IS WARDLAW WING
Well that is the best picture I can find of Wardlaw Wing. It only looks like a building in the same style because you are looking at it from a different angle. If you search the web you can find an angle where it is very similar to look at.
Now apparently isn't, but is the Scottish United Reformed and Congregational College. I am not sure the college is still in that building and I am also well aware that the building was originally in Glasgow. I also have a suspicion that at least at one time it was in Edinburgh. I once stayed as a child with the Principal of the college as part of a family holiday which was in Edinburgh. So whether this is at present the college building, a picture of the Glasgow original or the building at some other time, I have no idea.
The odd thing is that one of the founders is in fact Ralph Wardlaw. Now I was always led to believe that Wardlaw was named after Bishop Wardlaw and had formerly been a house of a wealthy family known as Westerlea.