When the template expansion limit is exceeded within a section of wikicode that's temporarily replaced with a strip marker, that results in an exception:
includes/parser/StripState.php: Invalid marker: ^?'"`UNIQ--<span class="error">Expansion depth limit exceeded</span>-00000001-QINU`"'^?
The desirable behavior would be to display <span class="error">Expansion depth limit exceeded</span> in the page content instead of throwing an exception.
Example page https://commons.wikimedia.org/w/index.php?title=File:Flag_of_Germany.svg&oldid=192017176
Related: T102410: Remove — at least increase — the "template expansion depth limit"
Original report (errors not reproducible anymore):
There's a fatal error loading the following page: https://be.wikipedia.org/wiki/Ніцэлопсіс_двухдомны
Was first discovered with mobileview API request: https://be.wikipedia.org/w/api.php?action=mobileview&page=Ніцэлопсіс_двухдомны
Other examples of similar issues:
- https://be.wikipedia.org/wiki/Авакада
- https://be.wikipedia.org/wiki/Вадзяны_арэх_плывучы
- https://be.wikipedia.org/wiki/Банан
I'm not sure which tags to assign to this issue.