Try to improve automatic fixing for the references with different content to handle some of the problems caused by T296044, see this bot request.
Idea : when a reference contains a template, check if the template has the same arguments with the same values...