The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
Pi bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Mike Peel (talk • contribs • logs)
Task/s: Remove bad Commons category (P373) values, if possible replacing them with the sitelink
Code: Available on BitBucket
Function details: The code looks through the commons link constraint for P373 to find cases where the category that P373 is linking to doesn't exist. If the non-existent category contains any files, then the bot skips it so that a human can look into it. Otherwise it either replaces P373 with the sitelink, or removes the P373 value. This should be routine maintenance. It would run daily. Some test edits are at [1]. Thanks. Mike Peel (talk) 18:45, 17 June 2019 (UTC)[reply]