Jump to content

User talk:Zhuyifei1999: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 88: Line 88:


The bot [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Guild_of_Copy_Editors%2FRequests&type=revision&diff=963725692&oldid=963721768 removed two requests] from the GOCE Requests page, understandably but erroneously. If the code can be fixed to avoid that sort of error, that would be helpful. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:43, 22 June 2020 (UTC)
The bot [https://en.wikipedia.org/w/index.php?title=Wikipedia%3AWikiProject_Guild_of_Copy_Editors%2FRequests&type=revision&diff=963725692&oldid=963721768 removed two requests] from the GOCE Requests page, understandably but erroneously. If the code can be fixed to avoid that sort of error, that would be helpful. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:43, 22 June 2020 (UTC)
:Good catch. It didn't recognize <code><nowiki>===<s>[[Organ donation in India]]</s>===</nowiki></code> as a h3 header due to the unexpected &lt;s&gt; pair. Should be fixed. Changed regex from <code><nowiki>^=== *('*\[\[[^\[\]]+\]\]'*) *===$</nowiki></code> to <code><nowiki>^=== *(?:<s>)?('*\[\[[^\[\]]+\]\]'*)(?:</s>)? *===$</nowiki></code> (i.e. add explicit handling for &lt;s&gt; pair outside the wikilink). --[[User:Zhuyifei1999|Zhuyifei1999]] ([[User talk:Zhuyifei1999#top|talk]]) 17:08, 22 June 2020 (UTC)

Revision as of 17:08, 22 June 2020

A belated welcome!

Sorry for the belated welcome, but the cookies are still warm!

Here's wishing you a belated welcome to Wikipedia, Zhuyifei1999. I see that you've already been around a while and wanted to thank you for your contributions. Though you seem to have been successful in finding your way around, you may benefit from following some of the links below, which help editors get the most out of Wikipedia:

Also, when you post on talk pages you should sign your name using four tildes (~~~~); that should automatically produce your username and the date after your post.

I hope you enjoy editing here and being a Wikipedian! If you have any questions, feel free to leave me a message on my talk page, consult Wikipedia:Questions, or place {{helpme}} on your talk page and ask your question there.

Again, welcome! Epicgenius(talk to mesee my contributions) 00:26, 19 June 2013 (UTC)[reply]

Thanks. --Zhuyifei1999 (talk) 01:16, 19 June 2013 (UTC)[reply]

A brownie for you!

thanks for your edits EB1999 16:46, 28 December 2013 (UTC)
Thanks --Zhuyifei1999 (talk) 02:55, 29 December 2013 (UTC)[reply]

WikiText Transfer Protocol listed at Redirects for discussion

An editor has asked for a discussion to address the redirect WikiText Transfer Protocol. Since you had some involvement with the WikiText Transfer Protocol redirect, you might want to participate in the redirect discussion (if you have not already done so). John Vandenberg (chat) 15:22, 7 January 2014 (UTC)[reply]

back?

irc--Gabrielchihonglee (talk) 09:38, 8 August 2014 (UTC)[reply]

October 2015

Information icon Hello, I'm MelbourneStar. I wanted to let you know that I reverted one of your recent contributions —the one you made with this edit to User:Idiot_nandhu— because it didn’t appear constructive to me. If you think I made a mistake, or if you have any questions, you can leave me a message on my talk page. Thanks. —MelbourneStartalk 10:35, 26 October 2015 (UTC)[reply]

@MelbourneStar: It's his userpage. I don't have the duty to maintain it, after I deleted the other image on Commons. (As for the i-word, he made named the file himself) --Zhuyifei1999 (talk) 11:08, 26 October 2015 (UTC)[reply]
You're correct – my mistake there. Odd username, I'm surprised it passed the test. Best, —MelbourneStartalk 11:18, 26 October 2015 (UTC)[reply]

A barnstar for you!

The Technical Barnstar
For help with MySQL/Toolforge/HeidiSQL thing. Edgars2007 (talk/contribs) 17:12, 2 May 2018 (UTC)[reply]

Unhelpful removal

I have reverted this removal as the inter-wiki link was essential to the deletion discussion. Please make sure that this bot no longer makes this sort of change. Thank you. YBG (talk) 08:36, 4 January 2019 (UTC)[reply]

Turns out there may have been a mistake in formatting the original link. I reverted your edit and then added a colon. I think all is OK now. YBG (talk) 08:44, 4 January 2019 (UTC)[reply]

YiFeiBot 2 approved.

Wikipedia:Bots/Requests for approval/YiFeiBot 2 has been approved. Happy editing! --TheSandDoctor Talk 04:44, 12 November 2019 (UTC)[reply]

The da Vinci Barnstar

The da Vinci Barnstar
On behalf of the Guild of Copy Editors, I hereby award The da Vinci Barnstar to Zhuyifei1999 for amazing work consulting, coding and testing YiFeiBot to archive our requests page, which has saved us a great deal of time while improving the accuracy of our records. Much thanks from Team GOCE! Reidgreg (talk) 22:52, 23 December 2019 (UTC)[reply]

Interview about YiFeiBot 2

Hi Zhuyifei1999; I'm currently compiling the Guild of Copy Editors' annual report, which should be sent out around the end of the month. I'm writing a piece about YiFeiBot 2; could I ask you a few questions about the process of writing and setting up the bot? Thanks for your time. Cheers, Baffle☿gab 05:30, 11 January 2020 (UTC)[reply]

@Baffle gab1978: Sure. I'll answer when I see them. My response will probably be very direct and to the point so might need some polishing for a report. --Zhuyifei1999 (talk) 07:44, 11 January 2020 (UTC)[reply]
Thank you;
  • Q1: How do you write a Wikipedia bot script for a particular purpose?
  • Q2: Were there any difficulties in writing and setting up YiFeiBot 2?
That's all I can think of for the moment; I'll return if I can think of any more, though I don't need the piece to be very long. Thanks for your time. :) Cheers, Baffle☿gab 07:38, 15 January 2020 (UTC)[reply]
  • Q1:
    • To write a bot, well first you have a problem, then you evaluate the potential methods to solve it; should it be a bot, a tool, or a gadget, or what? I personally prefer bot (if the task is doable by bot) because the other two involves user interface design, while bot is pure programming logic and least amount of work for me.
    • Then you think about the main pieces of code (shall I say component?) that are necessary for the bot. For most bots, it's often two: one "page generator" to get a list of pages to execute on, which could be recentchanges, a category, template transclusions, database scan, XML dump scan, or something else like that. Another component "treats" each page based on some logic, which could be doing a regex replacement, finding somewhere to add or remove text, or even invoking some other logic on another page. As for the my GOCE archiving bot specifically, the "page generator" is inlined out; it is only Wikipedia:WikiProject Guild of Copy Editors/Requests. The "treatment" is more complicated. I decided to do it in two parts, a parsing part and the archiving part, where the first part finds where all the sections are and their statuses, and the second text adds to the archive page and removes text from the requests page.
    • Then you go through the process of discussing the plan, writing the bot, debugging with simulate / sandbox edits (run the code, either show diffs but don't actually save page, or run on some sandbox page), BRFA.
    • Bingo!
  • Q2: No, I've been writing MediaWiki bots since 2013. Getting close to 7 years ;). Now that I think about it, yeah I avoided things that could be complex, for example, parsing status templates in a more human way rather than simple regex matches, like  Done being a non-match rather than a match, but the benefit is probably too marginal to be worth it.
--Zhuyifei1999 (talk) 12:08, 15 January 2020 (UTC)[reply]

() Thank you for this; you can view the pasted interview at the Annual Report page; feel free to correct or amend anything if necessary, or let me know if you're unhappy with anything. Cheers, Baffle☿gab 09:05, 17 January 2020 (UTC)[reply]

Bot error on GOCE Requests page

The bot removed two requests from the GOCE Requests page, understandably but erroneously. If the code can be fixed to avoid that sort of error, that would be helpful. Thanks. – Jonesey95 (talk) 15:43, 22 June 2020 (UTC)[reply]

Good catch. It didn't recognize ===<s>[[Organ donation in India]]</s>=== as a h3 header due to the unexpected <s> pair. Should be fixed. Changed regex from ^=== *('*\[\[[^\[\]]+\]\]'*) *===$ to ^=== *(?:<s>)?('*\[\[[^\[\]]+\]\]'*)(?:</s>)? *===$ (i.e. add explicit handling for <s> pair outside the wikilink). --Zhuyifei1999 (talk) 17:08, 22 June 2020 (UTC)[reply]