When badges will be actually supported by the WikibaseRepo extension (T42810, 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.