Topic on User talk:DeltaBot

Jump to navigation Jump to search
Aschroet (talkcontribs)
Pasleim (talkcontribs)

It is based on a query which is executed every hour.

Aschroet (talkcontribs)

Thanks for the answer. Since i am not a WD expert. Am i right that you add P373 when a Commonscat template is added to the English WP article? If so, does that also work for other language WPs?

Pasleim (talkcontribs)

No, P373 is added when to a Wikidata item a sitelink to a commons category is added. For example, the trigger for this edit was this edit.

Robby (talkcontribs)

Hi, I've an additional question concerning this topic:

I noticed that P373 is not added when the corresponding item on wikidata has property P31 with the value Q4167836 (in other words when the item is marked as Wikimedia category. Could you please indicate me the place to find the explanation for this?

On the other hand there is the following maintenance category on en-wikipedia en:Category:Commons category without a link on Wikidata which lists more than 15 thousand categories.

From my point of view there is a slight contradiction if we do not expect categories to contain P373 here on wikidata while we mark these categories nevertheles in the precited maintencecategory on en-wikipedia. as an illustration i would likt eo quote Q55810202

Many thanks for any feedback on this.

Robby (talkcontribs)

Hi I make another try and formulate my question in another way:

Is there a specific reason why Deltabot is not adding the property P373 when the wikidata item has property P31. Here are some examples to illustrate: Q29887966, Q30601133, ... thanks for your feedback

Pasleim (talkcontribs)
Robby (talkcontribs)

I see but why do we then have en:Category:Commons category without a link on Wikidata in which pages and categories are listed as long as P373 is not put.

unfortunately my technical knowledge does not allow me to find out how to change this category on en.wikipedia so it completely reflects this considerations.

Mike Peel (talkcontribs)

I'd suggest adding the P373 value in those cases anyway - I don't think it does any harm at this point, and it looks like it would reduce manual editor work. Although I'm hoping that P373 can be deprecated in the long term...

Robby (talkcontribs)
Mike Peel (talkcontribs)

@Pasleim It seems to be a bit hit-and-miss at the moment. As a sample, see https://www.wikidata.org/w/index.php?limit=50&title=Special%3AContributions&contribs=user&target=Pi+bot&namespace=&tagfilter=&start=2018-08-01&end=2018-08-01 - around 200 sitelinks added in the same way in a short period of time. Somehow, Q18648354 has gained two identical P373 values, Q15102678 got one (correctly), while Q4732805 doesn't have one yet - and you can see a mix of those three cases throughout the set. It's not critical, but it would be good if you could look into this and make the code more reliable/robust. And thanks for running the bot!

Reply to "Trigger for Commons category"