User:Mike Peel/Commons category resolution

From Wikipedia, the free encyclopedia
  1. enwp commons link is a redirect to the wikidata commons sitelink
    • Remove the local link so that the wikidata one is used.
  2. enwp commons link is to a disambig category but Commons sitelink is to a specific page
  3. enwp commons link is to a deleted category
    1. Wikidata has a Commons sitelink
      • Remove the local link so that the wikidata one is used.
    2. Wikidata does not have a Commons sitelink
      • Remove the template from enwp
    (Need to figure out how to identify whether a commons category has been deleted or never exists using pywikibot)
  4. No enwp sitelink from Wikidata, but the commons category exists and is linked to a Wikidata item
    1. enwp is an article
      • Add an enwp sitelink based on the commons category link.
    2. enwp is a category, Wikidata item is not a category item but has topic's main category (P910)
    3. enwp is a category, Wikidata item is not a category item and does not have topic's main category (P910)
  5. Commons category exists, but isn't on Wikidata
  6. Commons category doesn't exist
    • Remove the template from enwp
  7. Other situation
    • Add to a report for manual resolution

Potential later steps:

  1. Category:Commons category link is on Wikidata
    • Remove local links to use Wikidata instead
  2. Linked Wikidata item has a commons category, but there is no local template displaying it
    • Add a template to display the link