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: Pywikipedia-bugs@lists.wikimedia.org Reporter: ricordisamoa@live.it 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64457
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|provide support for |refactor sitelinks |sitelink badges in ItemPage |structure to support badges
--- Comment #1 from Ricordisamoa ricordisamoa@live.it --- Even better: the Sitelink class should inherit from Page and then set the .badges property.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64457
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |ricordisamoa@live.it |media.org |
pywikipedia-bugs@lists.wikimedia.org