From my point of view trams have no advantages over buses. On the other hand they need lots of special purpose infrastructure and often condition road traffic rules terribly, like forcing traffic lights instead of roundabouts. Actually I am open to hear the advantages of trams.