Last modified: 2014-11-15 06:45:48 UTC
When badges will be actually supported by the WikibaseRepo extension (bug 40810, [[d:Wikidata:Development_plan#Badges]]), we may have to rework the whole structure of ItemPage.sitelinks, either: * using tuples as (Page, (ItemPage, ItemPage, )) or: * creating a new Sitelink class, with ItemPage.iterlinks() iterating over a list of Sitelink instances, Sitelink.page returning a Page object, and Sitelink.badges containing a list of ItemPage instances; The latter scheme would probably increase maintainability in the long term. Of course, we will also add functions to edit badges via the API.
Even better: the Sitelink class should inherit from Page and then set the .badges property.
Change 131019 had a related patch set uploaded by Ricordisamoa: [POC] [BREAKING] refactor the sitelinks structure https://gerrit.wikimedia.org/r/131019
Badges are now used on the 'production' Wikidata!