Open main menu
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} .
Welcome to my talk page. Please post new messages at the bottom of my talk page, use headlines when starting new talk topics and sign and date your entries by inserting -- ~~~~ at the end. I will generally reply on this page to keep conversations together; please watch this page for a short time after leaving a comment. Thank you.

Start a new talk topic.

If you would prefer to contact me off-wiki, then my contact details and a contact form are available on my personal website.


Commons sitelinks for names categoriesEdit

Hi! A recent vandalising edit caused a lot of errors. You suggested using Commons sitelinks for names categories. I think that will not only solve the problems of homonymous Chinese names but also prevent common vandalism/testing on English labels. Would you like to implement the design? Or if we should seek consensus on village pump first?--Roy17 (talk) 19:24, 21 June 2019 (UTC)

@Roy17: There's two issues. One is the coding, for which I think we've got all of the Lua pieces of but it will take me a while to get around to (unless @RexxS: wants to write this up nicely in a separate Lua function!). The other is how we deal with the cases where the sitelinks don't exist (either because they haven't been added yet, or because they're redlinks), which is more of a community question (perhaps at Template talk:Wikidata Infobox). I'm mostly going to be offline this week, but I'll try to look into this some more when I'm back. Thanks. Mike Peel (talk) 19:32, 23 June 2019 (UTC)
@Mike Peel: I'm always happy to write a function for you, Mike, but I'm unclear what you want. I assume that getCommonsLink doesn't do what you want?
{{#invoke:WikidataIB |getCommonsLink |qid=Q12397773}} → Category:Irina (given name)
I take it you want a function that will return a sitelink if it exists rather than a label? I'm pretty sure we do that as a matter of course in most cases, so I know the code is straightforward. However, do you always want the Commons sitelink? or do you want the sitelink for the wiki that the code is running on? Then what do you want returned if there is no sitelink? If it's the label, then what language do you want the label in? Finally, what do you want returned if there is no label in the language you specify? As usual, some test cases would be really valuable. Cheers --RexxS (talk) 20:38, 23 June 2019 (UTC)

Pi botEdit

Hi Mike Peel,

Does it still add {{Wikidata Infobox}} ? I find that most helpful, but I noticed it hasn't run in some time. Maybe database lag is better now and it can work again. Jura1 (talk) 15:15, 27 June 2019 (UTC)

@Jura1: It's stuck pending the resolution of phab:T226050. The main way I run it now is to take the output of a Quarry query as a candidate set to add the infobox to, and I haven't been able to run that query successfully for quite a while. I've been trying daily, the last time it worked was the last set of infoboxes that pi bot added, back on 7 June. Thanks. Mike Peel (talk) 17:02, 27 June 2019 (UTC)
I just added LIMIT 1000 and it gave some results. Maybe there is a way to avoid some of the joins to get it to run quicker (even if it's not sparql, d:Wikidata:Request a query might help). Jura1 (talk) 17:52, 27 June 2019 (UTC)
@Jura1: I'm running through that now, thanks - most of them are cases where the infobox isn't currently wanted, such as ones using {{Disambig}} or {{MDcat}}. Typically the query was returning around 19k of unwanted results. I've tried removing the joins, but that didn't help - maybe more should be added to avoid the unwanted results... Thanks. Mike Peel (talk) 18:06, 27 June 2019 (UTC)
@Jura1: Quarry seems to be working again now, so I'm running through the complete set now. Thanks to @Rudolphous: adding them over the last month, there's only around 7,000 for pi bot to add now. Thanks. Mike Peel (talk) 07:02, 29 June 2019 (UTC)
Great, thanks. Occasionally, I bookmark a category I just linked from Wikidata to see how it ends up looking. Some I did earlier in June are just getting used now (e.g. d:Q16795429). Jura1 (talk) 12:57, 29 June 2019 (UTC)
BTW, would you update the template from the sandbox? I added a few properties. Jura1 (talk) 14:51, 29 June 2019 (UTC)
@Jura1: With the infobox changes, I don't understand why you do "check for health by region" etc. rather than just include the properties as normal? Are there cases where we wouldn't want to display those properties if they've been set on Wikidata? Thanks. Mike Peel (talk) 16:21, 29 June 2019 (UTC)
The idea is to display them on Category:Health in Gabon instead of Category:Gabon. Wikidata has it on the item for Gabon. Similarly for Category:Education in Norway and Category:Economy of Mauritania. Country categories might get to much stuff. Jura1 (talk) 18:33, 29 June 2019 (UTC)
Updates seem to be complete. Even categories linked yesterday got boxes. Thanks for this. BTW I had done a short summary on Template talk:Wikidata Infobox#Health infobox for countries. Jura1 (talk) 17:47, 30 June 2019 (UTC)

Was just talking to Magnus. He's not aware of any smoking gun that would have explained the slow-down you were seeing with the query, but there may have been some changes at about that time relating to the tables for how (i) edit-summaries and (ii) user IDs/anon IPs were stored, involving tables behind the scenes being either split or merged or respecified. Magnus thinks that some of the -p tables may be views of other tables (cutting out some columns that most users shouldn't see), rather than actual tables in their own right; he conjectures that perhaps one or more of these views might not have been reset-up properly in the change, and perhaps an index got missed. But great, if as you seem to say above this issue now seems to have gone away again. Jheald (talk) 15:03, 29 June 2019 (UTC)
@Jheald: There was a conversation at [1] - and apparently something on IRC that then seemed to get this sorted out. I haven't looked at the IRC logs to find out exactly what was changed, though. Thanks. Mike Peel (talk) 16:03, 29 June 2019 (UTC)

Wiki Science Competition 2019Edit

Hi, we are organizing the 2019 edition of WSC, if you are interested let me know. Maybe this year we will invest less energy on country whose chapter is not interested but we are expecting much better results in countries were local organizers are active. Let me know if you are interested to join, I can find some role.

Also, we are creating a new User group that acts as a global coordination project on meta for scientific subjects. See m:Science Wiki User Group. It will take some months to shape it but we are very motivated. Specifically, one of the main target of the group are people with an academic degree and/or who are involved in scientific research in real life, we want to reach out to the scientific community through that way. Please join us, especially if you have a sufficient knowledge of English or of meta since we are still building it (we will translate the page in the future when its identity is stable). Every comment is welcome (see the talk page). One of the topic of this UG is to provide an official support also for WSC in the future.--Alexmar983 (talk) 15:25, 29 June 2019 (UTC)

@Alexmar983: I'm happy to help if I can. I now live in Spain rather than Brazil though, for Brazil you might want to involve @Joalpe, Sturm. Sorry, but I view UGs as a waste of time - it's better to work with chapters and to get them to handle the admin side of things instead (or form a chapter where they don't already exist). Thanks. Mike Peel (talk) 16:17, 29 June 2019 (UTC)
I have already involved some Brazilians. I know where you live, I was told by another guy there. Chapters are always involved in WSC if they want to, but the international organization require a framework. Actually, if you give chapters all the power is not as optimal as you think. You need balance with everything in life. And I am sorry there is no proof it is better even at the administrative level. It can be better or worse, it really depends. For example if a chapter put the manager of Wiki Loves Monuments to do WSC the result depending on the profile can actually be worse. it's not nice for a scientist who produced a good scientific image to be discarded and maybe not even sent to the itnernational level because an unbalnced jury though something else was just "nice", even if it is super common and not original to an expert eye. The UG is an effort ot rationalize the academic background. The day chapters will create academic committee and some peer-reviewed evaluation of scientific activity, i agree with you. But only big, robust chapters could do so (so the UG is still useful for smaller one) and they seem always interested in doing so so far.--Alexmar983 (talk) 16:27, 29 June 2019 (UTC)
Ragrding Spain, They did in 2017 so they can redo it. It's mostly up to them. I will still however need a comment on some astronomic images at the very last steps to be sure they are fine. --Alexmar983 (talk) 16:29, 29 June 2019 (UTC)
@Alexmar983: I think we have different ideas of what the work of a UG/chapter is. For me, it's mostly bureaucratic/secretarial - sort out the paperwork, pay for the prizes, make sure people do the actions they've agreed to do, etc. Things like jury selection are better done by some sort of committee, but that doesn't have to be a UG. But whatever works best for you! My days of being involved in Wikimedia organisations are mostly over now. :-) Thanks. Mike Peel (talk) 17:52, 29 June 2019 (UTC)
Don't let me start on the different situations you can have there... look I do this for free so far so I wouldn't do something if I did not know that is the most functional way. At least, that's what I hope. BTW the level of the jury should probably increase, which means better contact and they will be there for people when needed in the future.---Alexmar983 (talk) 18:23, 29 June 2019 (UTC)

Structured Data on Commons - IRC office hours this week, 18 JulyEdit

The Structured Data team is hosting an IRC office hour this week on Thursday, 18 July, from 17:00-18:00 UTC. Joining information as well as date and time conversion is available on Meta. Potential topics for discussion are the testing of "other statements", properties that may need to be created for Commons on Wikidata soon, plans for the rest of SDC development, or whatever you might want to discuss. The development team looks forward to seeing you there. -- Keegan (WMF) (talk) 18:51, 16 July 2019 (UTC)

Return to the user page of "Mike Peel".