Automatically add a heading above the <references/> tag if references exist. The heading should be added to the TOC also.
I didn't find a way how to implement adding the heading if refs were used without a main references tag, because the code checks references when the wikitext was parsed and the TOC was already built. When I tried to use the InternalParseBeforeLinks hook instead of the ParserAfterParse hook in the CiteParserHooks class, it was working as expected but only for the simplest cases, but a lot of tests was not passed. I think it should be OK to have this feature disabled by default and it works with the <references/> tag only, at least to begin...
See Also:
- T69847: Cite: If there's no <references /> block on the page for grouped references, maybe show them in some way
- T32763: Cite: If there's no <references /> block on the page, insert the wikitext for one automatically in the right place
- T56906: Append a references list to bottom of the page when the first reference is added