Board Thread:Support Requests - Getting Technical/@comment-45310000-20200413025233/@comment-9605025-20200413041451

I don't believe MediaWiki has a built-in way to accomplish this. However Wikipedia does this, it appears to involve a Lua module. I would assume some JS as well but I can't be certain.

Table of contents are expanded/collapsed based on whichever state you used last. If you had it expanded on the previous page when you navigated away, the one on the next page will be expanded. If you had it collapsed on the previous page when you navigated away, it will be collapsed on the next page.