In T392775, an ability to color links based on the link text was added (as opposed to just based on the target page). A proper code has been added to both the legacy parser and Parsoid.
The remaining place where this ability should be added is the ApiQueryInfo, which currently can determine the link color only based on the target page.
Acceptance criteria
- When requesting the query+info API endpoint for a link [[User:~2025-1|~2025-1]], it's determined to have mw-tempuserlink class
- When requesting the query+info API endpoint for a link [[User:~2025-1|user]], it's determined not to have mw-tempuserlink class
Minimally, the endpoint should support a single link to a given title (so that the result can still be keyed by the page title).