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 Jonsey95 has since edited the article to do the exact same thing The edit summary is ref error It is a ref error