Feature summary
[[Special:SpecialPages]] is a very long page with multiple headings, and so needs a table of contents.
An example implementation is given here:
https://teflpedia.com/MediaWiki:Specialpages-summary
giving:
https://teflpedia.com/Special:SpecialPages
Note I've also moved the legend from the bottom to the top, as it makes more sense there.