Jarekt added a comment.

Maybe modify existing mw.wikibase.entity:getLabel(lang) (or write new mw.wikibase.entity:getLabel&Sitelink) so in addition to returning a label in the most relevant language, it would also returned a link to most relevant wikipedia. At the moment that is THE main use of Wikidata on Commons (we hope to write code or other uses) and it should be optimized. Calls to get label+sitelink in the user language are used in many templates which are then transcluded into great many files. A single file could have up to dozen such links.


TASK DETAIL
https://phabricator.wikimedia.org/T142903

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jarekt
Cc: hoo, Jarekt, Zolo, Aklapper, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to