User:Mike Peel/Commons category resolution


 * 1) enwp commons link is a redirect to the wikidata commons sitelink
 * 2) * Remove the local link so that the wikidata one is used.
 * 3) enwp commons link is to a disambig category but Commons sitelink is to a specific page
 * 4) * Remove the local link so that the wikidata one is used.
 * 5) * Category:Cagayan currently links to commons:Category:Cagayan, but Wikidata links to commons:Category:Cagayan (province)
 * 6) enwp commons link is to a deleted category
 * 7) Wikidata has a Commons sitelink
 * 8) * Remove the local link so that the wikidata one is used.
 * 9) Wikidata does not have a Commons sitelink
 * 10) * Remove the template from enwp
 * (Need to figure out how to identify whether a commons category has been deleted or never exists using pywikibot)
 * 1) No enwp sitelink from Wikidata, but the commons category exists and is linked to a Wikidata item
 * 2) enwp is an article
 * 3) * Add an enwp sitelink based on the commons category link.
 * 4) enwp is a category, Wikidata item is not a category item but has
 * 5) * Follow, add the enwp sitelink there
 * 6) enwp is a category, Wikidata item is not a category item and does not have
 * 7) * Create a new category item if an enwp sitelink exists in a topic item.
 * 8) * Category:Cairngorms has no Wikidata link, but commons:Category:Cairngorms links to - a new Wikidata category item is needed
 * 9) Commons category exists, but isn't on Wikidata
 * 10) * Add to Wikidata
 * 11) * Probably most in Category:Commons category link is the pagename
 * 12) * The danger is if these have been removed from Wikidata as they are incorrect...
 * 13) * Category:1801 in New York (state), doesn't have a sitelink but commons:Category:1801 in New York (state) exists
 * 14) Commons category doesn't exist
 * 15) * Remove the template from enwp
 * 16) Other situation
 * 17) * Add to a report for manual resolution

Potential later steps:
 * Category:Commons category link is on Wikidata
 * 1) * Remove local links to use Wikidata instead
 * 2) Linked Wikidata item has a commons category, but there is no local template displaying it
 * 3) * Add a template to display the link