- Upload a file named Example.jpg
- Create a page named Example with [[Media:{{PAGENAME}}.jpg]]
- Edit Example with the VisualEditor, add a space and click save the edits.
Expected outcome:
The source still contains [[Media:{{PAGENAME}}.jpg]].
Observed outcome:
The source contains [//localhost:1352/wiki/images/a/a9/Example.jpg Media:Example.jpg] instead.
Note that there are real use cases for using templates or parser functions in Media links, case in point the {{FILEPREFIX}} parser function of my Attachments extension.