Noting this is probably pretty low priority in terms of engineering effort, but filing a task after mentioning in T283040: Aspect values are poorly documented in API help pages.
Taking, for example, the API "errorformat" parameter, it takes a value in a list of pre-defined strings
'errorformat' => [ ApiBase::PARAM_TYPE => [ 'plaintext', 'wikitext', 'html', 'raw', 'none', 'bc' ], ApiBase::PARAM_DFLT => 'bc', ],
These are then documented in the API description for that parameter in one big text blob
"apihelp-main-param-errorformat": "Format to use for warning and error text output.\n; plaintext: Wikitext with HTML tags removed and entities replaced.\n; wikitext: Unparsed wikitext.\n; html: HTML.\n; raw: Message key and parameters.\n; none: No text output, only the error codes.\n; bc: Format used prior to MediaWiki 1.29. <var>errorlang</var> and <var>errorsuselocal</var> are ignored.",
Which results in something like
It would be "nice" if for these use cases, you could define something like apihelp-main-param-errorformat-value-plaintext, apihelp-main-param-errorformat-value-wikitext and be able to have that all displayed in the output, rather than reusing a bigger more overarching message.
