Problem: Page previews and Reference Tooltips currently live in the same repository but are maintained by 2 different teams. The contract for how these interact is not clear and could be made clearer by separating code into two different folders.
Given the new architecture, the reference preview code should be separated from the page previews code and registered in the same way as the Math extension. On the long term it might make sense to move this out to another extension but this is not in scope for this ticket
TODO
- Reference preview code should live inside its own module. Suggested: ext.popups.referencePreviews
- Registration should support registering preview types to settings dialog (this was descoped in T233099)
- All reference preview code lives inside a subfolder.
- Use an OWNERs.md file (see https://github.com/wikimedia/mediawiki-extensions-WikimediaEvents/blob/master/OWNERS.md)