A MediaWiki template that is described via TemplateData in a machine-readable way also provides a short description for the template (see https://www.mediawiki.org/wiki/Extension:TemplateData#TemplateData_object). This description is part of a JSON blob in the wikitext, and rendered as part of a table on the template page (example: https://en.wikipedia.org/wiki/Template:Cite_journal#TemplateData). But this table is typically way down on the page.
Is it possible to prioritize this description when indexing template pages, like it is a subheading or lead paragraph? The HTML of the element in question is currently <p class="mw-templatedata-doc-desc">…</p>, but can be changed if needed.
In which codebase or configuration could such a change be done?
This request is a result of the investigation done in T272457.