Lucas_Werkmeister_WMDE added a comment.
Story writing notes: - We don’t want to invest into formatting the values in the browser. It would take some effort; it would either be conceptually ugly or require other extensions to extend Bridge (because e. g. mathematical expressions and musical notation are defined in separate extensions and Wikibase doesn’t yet know about them); it would require us to keep this formatting code up to date with future changes; and it’s not as useful to others. - We could use the `wbformatvalue` API, formatting each snak value at a time. But that’s a lot of concurrent API requests (possibly enough to reach a rate limit), and the formatting isn’t always ideal for us (e. g. we want to combine URL + title into a link with that text; the retrieved date should be distinguishable from the publication date; we would suffer from T218646 <https://phabricator.wikimedia.org/T218646>; etc.), likely requiring further post-processing in the browser (see above). - We could introduce a new API, e. g. `wbformatreference`, which takes a full reference and formats it. This would be based on the Lua formatting code (e. g. turn item links into links to a certain client wiki if sitelinks exist), mostly eliminates the concurrent API requests problem (unless there are enough //references// to exhaust the rate limit, rather than that many reference //snaks//), and is useful to third parties as well. We could also expose this reference formatting logic via Lua; large wikis that already have their own modules for that might not (initially) use it, but it may be very useful for others, as well as third-party installs. We are leaning towards the new API. TASK DETAIL https://phabricator.wikimedia.org/T238661 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Aklapper, Lydia_Pintscher, Sarai-WMDE, darthmon_wmde, Michael, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
