I brought the article "Tour de Tasmània" from Catalan Wikipedia to English using Content Translation. It includes a series of repeated 'flag' templates to indicate the winners of this cycling race over the years. A section of the original code in Catalan looks like this:
Palmarès
'''Original Tour of Tasmania'''
- 1930 {{Bandera|Austràlia}} [[Hubert Opperman]]
- 1933 {{Bandera|Austràlia}} [[Richard Lamb]]
- 1934 {{Bandera|Austràlia}} [[Richard Lamb]]
But, that same section in the content-translation version looks like this:
Winners
'''Original Tour of Tasmania'''
- 1930 [[Hubert Opperman]]<span class="mw-image-border"><span>[[File:Flag_of_Australia.svg|link=|22x22px]]</span></span>
- 1933 [[Richard Lamb]]<span class="mw-image-border"><span>[[File:Flag_of_Australia.svg|link=|22x22px]]</span></span>
- 1934 [[Richard Lamb]]<span class="mw-image-border"><span>[[File:Flag_of_Australia.svg|link=|22x22px]]</span></span>
A bot has subsequently automatically modified the article to replace the underscores in the filenames with spaces:
https://en.wikipedia.org/w/index.php?title=Tour_of_Tasmania&diff=next&oldid=670690990
Ideally, t system should be able to recognise that {{Bandera|Austràlia}} should convert to {{Flag|Australia}}, but at the least, it should not add in Underscores to filenames/links.
[More complex still, is the fact that the idea template in english wikipedia for this use-case is actually template:flagicon, not template:flag. But that's not the fault of CX!]