Steps to replicate the issue (include links if applicable):
- Create a page with
{{Infobox
|title=Test1<ref>https://test1.com/</ref>
|above=Loren ipsum
}}
Test2.<ref>https://test2.com/</ref>
== References ==- Click visual edit
What happens?:
- Only one reference is displayed
What should have happened instead?:
- Two references should be displayed
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- Seems related to T393009: Categories coming from templates not shown in VE and T405156: If a page only has references in a template, then you visual edit the page and add a citation outside the template, the template references disappear in preview, and the numbering gets messed up. There appears to be a whole family of bugs related to Visual Editor not recursively parsing templates in preview mode.

