Steps to replicate the issue (include links if applicable):
and
https://fa.wikipedia.org/wiki/%D9%87%D9%88%D9%86%D8%AF%D8%A7_%D8%B3%DB%8C%E2%80%8C%D8%A8%DB%8C%DB%B7%DB%B7?useparsoid=0&uselang=fa
What happens?:
The error message on the Parsoid version is not flowing in the right direction.
What should have happened instead?:
Both error messages should flow in the same (correct) direction).
Note
The legacy parser adds a lang="fa" dir="rtl" on the message wrapper, which the Parsoid localization pass does not do. And, since the reference block itself is marked as "ltr", this messes up the error message display in this case.
Adding the correct information to the wrapper should fix the issue, or at least make it equivalent to issues that would arise in legacy parsing as well (I don't believe that the <ref> tag in that message should be displayed as ref>>!)

