Yesterday, I added a table contents directly in the Index: namespace by using a template (Table) with some parameters. I previewed and saved, and it broke the whole page (see [[ https://fr.wikisource.org/w/index.php?title=Livre:Esquieu,_Louis_-_Les_jeux_populaires_de_l%27enfance_%C3%A0_Rennes.djvu&diff=5433687&oldid=4505775 | here ]] and [[ https://fr.wikisource.org/w/index.php?title=Livre:Esquieu,_Louis_-_Les_jeux_populaires_de_l%27enfance_%C3%A0_Rennes.djvu&oldid=5433687 | here ]]).
By further searching, it happens the preview removed wikitext after the first "|". With further searching, the function getIndexEntries in includes/index/ProofreadIndexPage.php cuts after the first "\n|", so I removed the newline before the "|", I previewed, and saved, and it works (see [[ https://fr.wikisource.org/w/index.php?title=Livre:Esquieu,_Louis_-_Les_jeux_populaires_de_l%27enfance_%C3%A0_Rennes.djvu&diff=5434542&oldid=5433718 | here ]]).