https://bugzilla.wikimedia.org/show_bug.cgi?id=64457

            Bug ID: 64457
           Summary: provide support for sitelink badges in ItemPage
           Product: Pywikibot
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Wikidata
          Assignee: [email protected]
          Reporter: [email protected]
        Depends on: 40810
       Web browser: ---
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to