Add FlaggedRews support to Pywikibot (Outreachy round 31)
# Generators
* https://github.com/wikimedia/pywikibot/blob/master/pywikibot/pagegenerators/_generators.py
1. Add unreviewedpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=unreviewedpages
- example: https://github.com/zache-fi/PendingChangesBot/blob/master/pendingchanges.py#L485
- use same parameters than API
2. Add oldreviewedpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=oldreviewedpages
- example: https://github.com/zache-fi/PendingChangesBot/blob/master/pendingchanges.py#L493
- use same parameters than API
- add parameter for returning pages with only pending changes from single user()
OR if this is complex to implement then
- add parameter for returning pages with only pendingrevision
3. Add configuredpages() generator
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#list=configuredpages
- use same parameters than API
# Site functions
* https://github.com/wikimedia/pywikibot/blob/master/pywikibot/site/_apisite.py
4. _apisite.review_revision() T408389
- reviews single revision
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=review
- review single revision
5. _apisite.stabilize()
- Changes page stabilization settings.
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=stabilize
- make it work similarly than site.protect()
6. _apisite.flagconfig()
- Shows information about review flag configuration.
- API: https://www.mediawiki.org/wiki/Extension:FlaggedRevs#action=flagconfig
# Page functions
* https://github.com/wikimedia/pywikibot/blob/master/pywikibot/page/_page.py
7. _basepage.stable_revision()
- return latest stable revision
- make it work similarly than page.latest_revision()
8. _basepage.stable_revision_id()
- return latest stable revision id
- make it work similarly than page.latest_revision_id()
9. _basepage.flagged_state()
- get information about the flagging status of the given page
- API: https://fi.wikipedia.org/w/api.php?action=query&prop=info%7Cflagged&titles=Gone_with_the_Sin
10. _basepage.pending_changes_only_from_single_user()
- Return true if the page has pending changes only from single user
11 _basepage.review_revision()
- wrapper to site.review_revision()
12 _basepage.stabilize()
- wrapper to site.stabilize()