Certain templates used to format content don't accept to have a link on it.
Steps to reproduce:
- Open VisualEditor on a page
- Type {{
- Write "Langue", and click "Ajouter un modèle" (well, I've used ctrl+enter)
- Write "en" for "Code de langue", and "Kraft Foods" for "Texte"
- Click "Insérer"
- Select the inserted template
- Press ctrl+K
- add link
Expectation: [[{{langue|en|Kraft Foods}}]]
Reality: [[Kraft Foods]]{{langue|en|Kraft Foods}}
- https://fr.wikipedia.org/w/index.php?title=Utilisateur%3ATrizek_%28WMF%29%2FBrouillon&type=revision&diff=142554457&oldid=141851154
- https://en.wikipedia.org/w/index.php?title=User%3ATrizek_%28WMF%29%2Fsandbox&type=revision&diff=810138094&oldid=779864066
Checked on Firefox and Chromium, last versions on ubuntu.