It would be great if the badge info could be accessed through the lua api, and then let the clients decide how they want to display the information with templates or whatever other method. On the left sidebar with only one (default) badge is usually enough.

Cheers,
David


On Sat, Feb 1, 2014 at 1:44 PM, Bene* <benestar.wikimedia@gmail.com> wrote:
Hi guys,

I added a comment on bug 40810 but I also want to send it here to reach more people.

We still need to discuss how the badges should work in general. At the development plan [1] it says "Each sitelink can have zero or one badge attached to it." This does not match the current implementation which allows multiple badges. So the implementation needs to be changed to only supporting one badge.

However, if we decide to keep the option of multiple badges we face some other problems. First, the ui gets harder to be implemented on Wikidata. This is not a real problem though. But a real problem is that we cannot determine which badge we want to display on the client. The only option I see to solve this issue is either to create another config variable (very ugly) or to only allow one badge as stated in the development plan anyway.

Best regards,
Bene*

[1] https://www.wikidata.org/wiki/Wikidata:Development_plan

_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech



--
Etiamsi omnes, ego non