Context:
There are some categories handled by the software like Catégorie:Page utilisant une frise chronologique or Lua modules like Catégorie:Page utilisant P39.
For my examples, pages that use the EasyTimeline extension are automatically added by MediaWiki in the first category. Biographical wikidata elements that use the P39 property are categorized in the second category by Lua module. All this without ever appearing in the wikicode.
Problem:
These categories appear after a minimum of three switches between the Source and Visual editors. I managed to reproduce the bug by starting by each of the two editors the procedure. It seems harded to reproduce when starting with the Visual editor. The only one success by starting by the Visual editor may be a false postive. I may have altered the test by modifying the wikitext with the Source editor during the switches procedure since the template is automatically wrapped in nowiki tag after two switches.
Trying to reproduce the bug by tarting with the Visual editor:
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=171332768&oldid=171332231&diffmode=source (success)
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171332901&diffmode=source (fail)
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171333150&diffmode=source (fail)
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171333264&diffmode=source (fail)
Trying to reproduce the bug by starting with the Source editor:
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171333375&diffmode=source (success)
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171333523&diffmode=source (success ; note: the : next to the category caracter was added by me after the final switch)
- https://fr.wikipedia.org/w/index.php?title=Discussion_Projet:Outils_de_discussion&diff=next&oldid=171333858&diffmode=source (success)
I do not know if the bug only appear with multi-lines templates and not with single line templates.