keel example is correct the bot did the correct thing in leaving the ref in the middle of the sentence these are examples given in wikipedia refpunc however this is irrelevant as no punctuation is next to those reference if the reference comes next to punctuation punctuation must come before the reference not after it this clearly stated in refpunc refpunc is not ambiguous the ref tags should immediately follow the text to which the footnote applies including any punctuation emphasis mine only dashes and parenthesis are the only given exemptions jonsey has since edited the article to do the exact same thing the edit summary is ref error it is a ref error