User talk:Zhaofeng Li

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Refill gadget not working[edit]

Clicking it on Cash cow returns [1] which doesn't work. The only way to make it work is to remove everything after "page=Cash_cow". KonveyorBelt 22:19, 19 August 2015 (UTC)

Also it doesn't even work on cash cow: There are obvious bare links on the reflist, and it doesn't recognize them. KonveyorBelt 22:23, 19 August 2015 (UTC)
Nvm, seems to be because of odd syntax in the link itself, see this edit. Gadget still doesn't work though. KonveyorBelt 22:26, 19 August 2015 (UTC)
@Konveyor Belt: I understand it's probably too late, but does the gadget work for you now? If it doesn't, what browser are you using? Thanks for the report. Zhaofeng Li [talkcontribs] 09:06, 17 November 2015 (UTC)

https://tools.wmflabs.org/refill/[edit]

@Zhaofeng Li: have you tried to use your tool recently? Is tools.wmflabs.org hacked? Thank you for your time. Face-smile.svg Lotje (talk) 09:51, 15 September 2015 (UTC)

Possible bug FYI[edit]

I was notified of a referencing error concerning this edit at Bowen Stassforth. It seems that one citation link, which is repeated several times in the article and which is incidentally dead, failed to be integrated by your script, leaving instead a pair of empty ref tags. Regards, -- Ohc ¡digame! 10:57, 16 September 2015 (UTC)

@Ohconfucius: Looking into it. I'm really, really sorry for being unresponsive, but I've been very busy in real life lately. Zhaofeng Li [talkcontribs] 02:46, 1 October 2015 (UTC)
@Ohconfucius: Fixed in the test version, finally. Thanks for the report! Zhaofeng Li [talkcontribs] 02:03, 14 December 2015 (UTC)

Wikipedia:Wikibreak[edit]

Enjoy your wikibreak. Face-smile.svg Lotje (talk) 03:28, 1 October 2015 (UTC)

https://github.com/zhaofengli/refill/blob/master/web/api.php[edit]

"'Set `url=` to the URL and `format=` to `CiteTemplateCitationGenerator` or `PlainCs1CitationGenerator`" should be `CiteTemplateGenerator` or `PlainCs1Generator`.--Antigng (talk) 05:17, 16 November 2015 (UTC)

@Antigng: Fixed in 83e9dd. Thanks for the report! Face-smile.svg Zhaofeng Li [talkcontribs] 08:17, 16 November 2015 (UTC)

Pinyin Wiki[edit]

Hi, I've just created a new tool on Tool Labs that adds approximate Pinyin readings to the Chinese Wikipedia. I thought you may be interested as you are a native Chinese speaker and I notice you have used Tool Labs. I'd be very interested in your feedback. Do you think it could help someone learn to read Chinese?

The modified wiki is available at https://tools.wmflabs.org/pinyin-wiki/, or via the info page.

I haven't learnt enough Chinese yet so I can't judge how good the readings are. I know that they are not 100% perfect, as I basically have a database that has a 1-1 correspondence between characters and readings, which is obviously going to get some wrong. (The readings I am using at the moment are those from the "kMandarin" field of the Unihan Database.) However, I am wondering whether in most cases an approximate reading is enough to help you get most of the meaning, and the rest can be inferred by context.

-Spacemartin (talk) 16:14, 20 November 2015 (UTC)

@Spacemartin: Looks great, but I guess <ruby>...</ruby> tags are better for this purpose, like (cēn)(). And a faster alternative to using a full MediaWiki installation is to use mw:Parsoid or action=render to retrieve the bare HTML for a page (for example, [2]). Then, you can add pinyin by manipulating the DOM directly.
Also, keep in mind that a character may have different pronunciations and meanings, based on the context or the word it's used in. For example, 差 is pronounced chā in the word 差别 (difference), cī in 参差 (irregular), and chà in 差评 (poor evaluation). However, the kMandarin field in Unihan only lists chà. This can be misleading, especially for learners. The kHanyuPinyin and kXHC1983 fields contain all pronunciations listed in Hanyu Da Zidian and Xiandai Hanyu Cidian respectively, but I don't think they are helpful. Anyway, it's not bad as a demo. Keep up the good work!
Zhaofeng Li [talkcontribs] 04:14, 21 November 2015 (UTC)
Hmm yes, I could have used Parsoid, but (a) it looks like it doesn't support language variant conversion yet [3], and (b) the links come back with Chinese characters in the HTML attributes, meaning I would have to parse the HTML to work out which characters to convert, whereas MediaWiki URL-encodes all of its HTML attributes, making the job much easier. And I think action=render is generally frowned upon for mirrors?
I'm thinking of doing some data mining on the Chinese Wiktionary at some point to get some word recognition going, hopefully that will improve the readings.
-Spacemartin (talk) 21:23, 21 November 2015 (UTC)

Hi again! As planned, I've now improved Pinyin Wiki with word recognition. I'm using the Chinese Wiktionary to create a database of multi-character words and their corresponding readings, and then using a greedy-matching algorithm to convert the words. I've put the characters into tooltips because they would otherwise make it harder to read. I'm really trying to help people improve their spoken Chinese, as it doesn't make much sense to learn characters until you're confident with the spoken language. Hopefully my wiki will make self-study easier.

I've updated User:Spacemartin/Pinyin Wiki with details of the new algorithm and how I am creating the dataset.

Do you think you could help me by taking a look at a few articles, and letting me know what sort of an error rate it's getting, particularly with polysyllabic words? Just an estimate of how many errors per paragraph or something like that. I know that there are some errors, for instance I noticed "1990 niánfǎ míngliǎo" in wǎngyè liúlǎnqì (first section, first paragraph) instead of "1990 nián fǎmíngliǎo". Your help would be much appreciated. Thanks!

-Spacemartin (talk) 20:14, 13 December 2015 (UTC)

A barnstar for you! Scratchpad[edit]

Brilliant Idea Barnstar Hires.png The Brilliant Idea Barnstar
Thank you for Scratchpad - elegantly enabling offline editing of forked articles and online testing of parsed Wiki code, including citation and other templates. Awesome! -- Paulscrawl (talk) 21:17, 30 November 2015 (UTC)

Reverting MVT disambiguation edit[edit]

"mvt" is a file format for Mapnik Vector tiles <https://openstreetmap.us/~migurski/vector-datasource> which is one of the formats that OpenStreetMap can use. So, I think it is relevant.

Oops, it was a silly mistake. I've re-added the entry. Sorry about that! Zhaofeng Li talk (Please {{Ping}} when replying) 11:26, 29 December 2015 (UTC)

Disambiguation link notification for December 30[edit]

Hi. Thank you for your recent edits. Wikipedia appreciates your help. We noticed though that when you edited Mengshan Giant Buddha, you added a link pointing to the disambiguation page Sina (check to confirm | fix with Dab solver). Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject.

It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 09:27, 30 December 2015 (UTC)

Fixed /me feeds DPL bot some oil Zhaofeng Li talk (Please {{Ping}} when replying) 09:31, 30 December 2015 (UTC)

Upside-Down Oshwah Award[edit]

Oshwah Picture.jpg
Upside-Down Oshwah Award
You fist-bumped Oshwah too hard! Enjoy your award. Cheers, Sn1per (t)(c) 04:07, 31 December 2015 (UTC)
It's an IRC joke if you didn't get it.

translation of existing Wikipedia page[edit]

I would like to submit MY ENGLISH TRANSLATION of the following wikipedia page in Italian, about a living musician named Marzio Del Testa

https://it.wikipedia.org/wiki/Marzio_Del_Testa


what can I do ??? your instructions are very difficult and I've already been speedy deleted once (unjustly I believe) — Preceding unsigned comment added by Jones62 (talkcontribs) 13:56, 19 January 2016 (UTC)

ReFill[edit]

The option "Do not add access dates" is always set on. Could this be changed to always be set off, or alternatively, that the editor can call the tool with it set off? I always want the access dates.--DThomsen8 (talk) 14:22, 22 January 2016 (UTC)

A barnstar for you![edit]

Vitruvian Barnstar Hires.png The Technical Barnstar
Thanks to your useful tool:) Stang 15:52, 13 February 2016 (UTC)

Telegram[edit]

Hi,

I saw on https://tools.wmflabs.org/ that you have a Telegram bot. Does it work? Do you have the source for it somewhere? I wanted to try to write a wiki-editing Telegram bot myself, and I wondered whether I can build off your work :)

Thanks! --Amir E. Aharoni (talk) 18:01, 1 April 2016 (UTC)

@Amire80: Hey there! The bot isn't running at the moment, but the source is available here on GitHub. It doesn't do any editing, but I suppose it can be easily implemented with libraries like Peachy. Note that the source code currently uses a old version of the Telegram bot SDK, and you may want to read the latest documentation as quite a few APIs have changed since I wrote the bot. Good luck and have fun! Face-smile.svg Zhaofeng Li talk (Please {{Ping}} when replying) 09:38, 5 April 2016 (UTC)
Thanks!
I did something here: https://github.com/amire80/mediawiki-telegram-bot/
It's very raw, but I did manage to make some edits using it! I hope to clean it up and make it active some time soon. --Amir E. Aharoni (talk) 08:16, 6 April 2016 (UTC)

Palliative Care[edit]

I am obviously confused by this Wiki editing process. The current Palliative Care page could really use some editing, which I spent hours on, but then all my work was undone. I am not following how I am supposed to submit my edits. Do editors just automatically undo the edits and leave them at that? Who owns the page to approve the edits? — Preceding unsigned comment added by PCnurse (talkcontribs) 04:19, 17 April 2016 (UTC)

@PCnurse: Hi, I've reverted your edit as I don't think it's good enough to be published. Although I don't have relevant expertise in this area, I'd like to point you to Referencing for beginners which should give you an idea of how to properly make citations on Wikipedia. In addition, I think it may be better to add to the relevant sections and to improve the lede, rather than insert large blocks of text at the beginning. After improving your draft, you may suggest your changes on the article's talk page and ask editors at WikiProject Medicine for their opinions.
I have a feeling that this may be an assignment. If it's the case, I'm really sorry about delaying your work. Please refer your instructor to Wikipedia:Student assignments - We have a program aiming to help educators use Wikipedia as a teaching tool more effectively, and to facilitate mutual communication.
Again, I'm sorry if the whole thing is confusing. Feel free to ask if you have any question!
Zhaofeng Li talk (Please {{Ping}} when replying) 04:44, 17 April 2016 (UTC)

Thank you so much for the response. Yes, it is an assignment. We created our own Wiki's on our school's Blackboard page and are supposed to try to edit our topic's Wikipedia page. This is the first time the instructor has asked her students to try to make edits (and she wants feedback about the process, which I will refer her to the above mentioned link to help educators...etc.). Luckily, getting the edits accepted isn't part of the grade, but as I mentioned the PC page does really need some "sprucing up". Thank you again for all of your help. — Preceding unsigned comment added by PCnurse (talkcontribs) 05:28, 17 April 2016 (UTC)

Refill not working[edit]

Either the tool or wmflabs has problems. Not expecting a quick reply, just letting you know.--Auric talk 11:38, 20 May 2016 (UTC)

@Auric: It appears to be working the time you posted this, according to the logs. Maybe it's related to this bug? Sorry for the slow response. Zhaofeng Li talk (Please {{Ping}} when replying) 08:15, 30 May 2016 (UTC)

Tech News: 2016-22[edit]

16:19, 30 May 2016 (UTC)

Refill[edit]

Thanks for creating this tool. I do a moderate amount of cleanup of references, and after only a few, the cleanup in visual editor works fine. However, if there are more than three or four, I turned to Refill. I have one small request — when I am in reference cleanup mode I'd like to do a number of articles. I can drop the article name into refill and it runs but then it closes, it would be nice if there were a toggle which could even default to closing when done but I could switch off and it would stay open and ready for another article. Is this feasible or am I missing something?

(I wrote this before realizing that you were on wiki break. If a talk page stalker sees this and has a suggestion for a better location for this request, please let me know.)--S Philbrick(Talk) 15:05, 1 June 2016 (UTC)

@Sphilbrick: Yes check.svg Done That's a great idea! I've added a "Save & Return" button in the test version which will open the edit interface in a new tab/window, then quietly navigate back to the tool's main page. After saving the edit, simply close the tab and the tool will be waiting for you in the previous one. By the way, I've just returned from my wikibreak. It will take me a while to get back to my usual wiki-mood, though. Face-smile.svg Thanks for your suggestion! Zhaofeng Li talk (Please {{Ping}} when replying) 17:16, 1 June 2016 (UTC)
By the way, did you know that you can add the tool to your sidebar or as a bookmarklet? That should help if you are hunting down and fixing articles one by one. But if you already have a list of articles to fix, the "Save & Return" button can save some time. Actually, I'm thinking about making a "batch mode" which allows you to enter multiple articles as a list. Not sure if it'd be helpful, though. Zhaofeng Li talk (Please {{Ping}} when replying) 18:02, 1 June 2016 (UTC)
Thank you very much for your very prompt response and support for my idea. Unfortunately, I ran into a snag yesterday which I'd like to share with you so you can help me contact the right people. First, I assume that the algorithm for converting a URL into a proper reference is the same in both Refill and in the convert option in Visual Editor.
An editor noticed yesterday that two reference improvements I made both failed. In the first case, a Google books URL which went to a specific page in the book converted into a reference which link to the overall book but did not identify the page number. In the second instance, conversion was botched due to a URL encoding error. Both of these are discussed on my talk page User_talk:Sphilbrick#Mistakes.
My assumption is that you worked on the program to handle multiple reference conversions within a single article as part of the creation of Refill, but didn't write the URL conversion routines yourself. My hope is that you can point me to the team that did work on the URL conversion so I can discuss these issues with them. Ideally, someone could modify the algorithm to handle both of these situations correctly. If that's not an option, I'd like to explore whether there is a semi automated way of fighting these problems so they can be handled manually. (Presumably, I could check every conversion manually but that would slow down the process to the point that it wouldn't be worth doing.)--S Philbrick(Talk) 12:05, 2 June 2016 (UTC)
@Sphilbrick: Both reFill and VisualEditor use Citoid (maintained by WMF) to extract bibliographic metadata from webpages. Citoid automatically downloads the cited webpages, scrapes interesting information (title, author(s), DOI, etc.) and passes it back to the tools. During the process, Citoid may make some (hopefully helpful) changes to the user-supplied URL, which explains the problem of the Google Books link. To see this in action, you can fill any URL onto Citoid's test interface and examine the raw data it generates (try entering a link to any Wikipedia article).
However, it's reFill and VE's responsibility to generate valid wikitext (that is, everything between the <ref>...</ref> tags) using data provided by Citoid.
Regarding the particular problems you mentioned, I've filed phab:T136911 and phab:T136912 against Citoid on Phabricator.
Zhaofeng Li talk (Please {{Ping}} when replying) 05:22, 3 June 2016 (UTC)
Thanks for filing both of those, and subscribing me. I'll watch to see when they are fixed.--S Philbrick(Talk) 13:16, 3 June 2016 (UTC)
  • I noticed recently that Refill seems to have stopped filling in the publisher/work parameters when populating the citation templates, like here. Can you please look into it to confirm that it's picking up all the relevant metadata? Regards, -- Ohc ¡digame! 07:31, 17 June 2016 (UTC)

Metadata[edit]

I don't know if the metadata change on Refill is working out. The last couple times I used it, it seems the publisher field is more often than not left blank. See here and here for examples. – Muboshgu (talk) 23:27, 2 June 2016 (UTC)

With this edit, Refill parsed the date of the article as an author. – Muboshgu (talk) 18:00, 3 June 2016 (UTC)
@Muboshgu: The first |publisher= problem is because there is (still) no reliable way to get this information, and a blank |publisher= is provided as convenience. I'm considering turning off this feature by default. Regarding the date problem, I've filed phab:T137019 against Citoid on Phabricator. Thank you! Zhaofeng Li talk (Please {{Ping}} when replying) 11:23, 4 June 2016 (UTC)
Thank you! – Muboshgu (talk) 15:57, 4 June 2016 (UTC)

Tech News: 2016-23[edit]

20:51, 6 June 2016 (UTC)

A page you started (Shadowsocks) has been reviewed![edit]

Thanks for creating Shadowsocks, Zhaofeng Li!

Wikipedia editor Colonel Wilhelm Klink just reviewed your page, and wrote this note for you:

You were right; why the hell didn't it have an article here? Good work, and thanks. :)

To reply, leave a comment on Colonel Wilhelm Klink's talk page.

Learn more about page curation.

Tech News: 2016-24[edit]

18:41, 13 June 2016 (UTC)

Tech News: 2016-25[edit]

19:14, 20 June 2016 (UTC)

Tech News: 2016-26[edit]

15:42, 27 June 2016 (UTC)

Editing News #2—2016[edit]

Editing News #2—2016 Read this in another languageSubscription list for this multilingual newsletter

VisualEditor-logo.svg
Did you know?

It's quick and easy to insert a references list.

Screenshot showing a dropdown menu with many items

Place the cursor where you want to display the references list (usually at the bottom of the page). Open the "Insert" menu and click the "References list" icon (three books).

If you are using several groups of references, which is relatively rare, you will have the opportunity to specify the group. If you do that, then only the references that belong to the specified group will be displayed in this list of references.

Finally, click "Insert" in the dialog to insert the References list. This list will change as you add more footnotes to the page.

You can read and help translate the user guide, which has more information about how to use the visual editor.

Since the last newsletter, the VisualEditor team has fixed many bugs. Their workboard is available in Phabricator. Their current priorities are improving support for Arabic and Indic scripts, and adapting the visual editor to the needs of the Wikivoyages and Wikisources.

Recent changes[edit]

The visual editor is now available to all users at most Wikivoyages. It was also enabled for all contributors at the French Wikinews.

The single edit tab feature combines the "Edit" and "Edit source" tabs into a single "Edit" tab. It has been deployed to several Wikipedias, including Hungarian, Polish, English and Japanese Wikipedias, as well as to all Wikivoyages. At these wikis, you can change your settings for this feature in the "Editing" tab of Special:Preferences. The team is now reviewing the feedback and considering ways to improve the design before rolling it out to more people.

Future changes[edit]

The "Save page" button will say "Publish page". This will affect both the visual and wikitext editing systems. More information is available on Meta.

The visual editor will be offered to all editors at the remaining "Phase 6" Wikipedias during the next few months. The developers want to know whether typing in your language feels natural in the visual editor. Please post your comments and the language(s) that you tested at the feedback thread on mediawiki.org. This will affect several languages, including: Arabic, Hindi, Thai, Tamil, Marathi, Malayalam, Urdu, Persian, Bengali, Assamese, Aramaic and others.

The team is working with the volunteer developers who power Wikisource to provide the visual editor there, for opt-in testing right now and eventually for all users. (T138966)

The team is working on a modern wikitext editor. It will look like the visual editor, and be able to use the citoid service and other modern tools. This new editing system may become available as a Beta Feature on desktop devices around September 2016. You can read about this project in a general status update on the Wikimedia mailing list.

Let's work together[edit]

If you aren't reading this in your preferred language, then please help us with translations! Subscribe to the Translators mailing list or contact us directly, so that we can notify you when the next issue is ready. Thank you!

Whatamidoing (WMF) (talk), 21:09, 30 June 2016 (UTC)

Tech News: 2016-27[edit]

19:45, 4 July 2016 (UTC)

Tech News: 2016-28[edit]

15:15, 11 July 2016 (UTC)

Bizarre metadata extracted by Refill[edit]

Looking at this edit, I see that Japan Times was added to the |title=, whilst Los Angeles Times was split into two components and included within |author=. -- Ohc ¡digame! 15:11, 14 July 2016 (UTC)

Tech News: 2016-29[edit]

12:01, 18 July 2016 (UTC)

Tech News: 2016-30[edit]

19:54, 25 July 2016 (UTC)