I looked at /wiki/Glory-2.0 and I saw the table of contents. It might as well say __NOTOC__ because it's completely useless. To find anything on that page at all you'd have to use some sort of search feature on your browser. What I propose doesn't appear 100% useful, but far more so than that page.
Take a look at my /wiki/User:D._F._Schmidt/Sandbox to see how much cleaner the table of contents looks. I grant you right now that it kind of messes up the formatting of each block, but then again, imo, the whole level-2 (=== Returns ===) headings broke up the content terribly. And since every level-1 (== :IsInBattlegrounds() ==) block is (for the most part) identical (same formatting), there's no real need to have a level-2 heading.
I could make a recommendation as to how to format it differently, but that isn't my immediate concern. And really, I wonder if anyone agrees with me about this. From what little I've seen, this formatting pervades the wiki.
Also I myself would recommend against floating the TOC to the right. I prefer it in its normal place -- just before the first header. It's easy to spot, and it should be easy enough to find what item you're looking for. I tried adding __TOC__ and __FORCETOC__ both just above the first header to no avail. I could swear that's the code for it, but I guess it didn't work. (It didn't show up as text, either. So I know it means SOMETHING.)