adrianheine added a comment. My proposal:
1. Move the existing formatting JS code into an EntityIdFormatter 2. Replace usage of the formatting code with usage of EntityIdFormatter 3. Add pre-formatted EntityIds to parser output (probably replacing most of `wbUsedEntities`) 4. Implement API-based EntityIdFormatter (using `wbformatvalue`) 5. Remove existing EntityId formatting code from JS TASK DETAIL https://phabricator.wikimedia.org/T88275 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: adrianheine Cc: Liuxinyu970226, matej_suchanek, thiemowmde, Snaterlicious, adrianheine, Aklapper, daniel, Wikidata-bugs, aude _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs