Bot request

Jump to navigation Jump to search

Bot request

Hi Cc, may I ask you for a bot run at the Wiktionary? I would need small edits in ~400 articles, quite simple automatic working following a list that I will provide. I'll discuss the details when you answer. 05:54, 11 April 2012 (UTC)

sarang사랑05:54, 11 April 2012

Ok, I'll try.

CodeCat12:02, 11 April 2012

Hi Codecat, somebody adviced me to ask you and/or Ruakh for that help; which I did. As you know in the meantime it depends {{Commonsrad}}. At User talk:Ruakh#Bot request I gave an explanation what I need, and my ideas how I could transmit the data for the bot to run. We should come to a decision about the name of the template, and whose bot can do this job with least effort. Thank you

sarang사랑05:02, 12 April 2012

Normally when I need a bot to do a task, I write the script myself in Python to do that specific job. So I don't think effort is really that important...

CodeCat12:20, 12 April 2012

Something seems still to be in question - template name, upper case initial, position before first L2-line - and then you can tell me which format you want my list for your bot task. I make any arrangement, at the moment it consists of lines like

4	丿
4	乀
4	乁
5	乙
5	乚
5	乛
6	亅
7	二
8	亠
9	人
9	亻
10	儿
11	入
12	八

and so on. Will this be fine to you? When I insert it into your bot talk page?

sarang사랑18:23, 12 April 2012

It may be better to make a subpage of your user page, like User:Sarang/list, and add it there. Of course I still have no idea what to do with the list...

CodeCat18:41, 12 April 2012

I composed something for you at User talk:Sarang#Bot run; I shall insert the complete list with all lines when you agree with the list format.
It may fit better to Wiktionary usage to rename the template to {{commonsrad}}; shall I do that manually, or ask somebody (admins like you have better possibilities for that)?

sarang사랑05:41, 13 April 2012

The list format doesn't really matter much, I can always change the format myself if I need to.

CodeCat11:40, 13 April 2012

Hi CodeCat, now the full lists (both variants) are at User_talk:Sarang#Bot_run, so you may use the one for insert-1 and the other for insert-2, or you make both inserts from the long list, or whatever you like.
You had been thinking of changing the templates name, but nobody entered the discussion. I would prefere just to change to {{commonsrad}} because lower cap initials seems the preferred style of naming Wiktionary templates (other Wiki projects prefere capitals). Anyway, you may start with first tests whenever you are ready. If you like I shall countercheck your bots work after the first few inserts.

sarang사랑14:36, 13 April 2012
 

Hi CodeCat, now I am not sure: if you will run your bot in some future, I'll not disturb you; but if you are waiting for something you'll need from my side, please let me know.
New name: In the meantime I changed manually the template name from Commonsrad to commonsrad, and will request a deletion (redirect seems not necessary).

sarang사랑11:34, 16 April 2012

I'm not sure about the cases where there is more than one of the same number. For example,

4       丿
4       乀
4       乁

And which list should the bot process, the short list or the long list?

CodeCat12:19, 16 April 2012
Edited by 2 users.
Last edit: 15:59, 1 November 2021

The long list means: select for each line with character "x" the page "x" and insert there "{{commonsrad|#}}", the number # from the same line. There are pages 丿, and all with number 4.
The short list means: select for each line with character "x" the page "Index:Chinese radical/x" and insert there "{{commonsrad|#}}", again # from the line with the character. Only page Index:Chinese radical/丿 exists for number 4, the other two and 乁are redirects to 丿.
This will be the procedure when you work from the list. Since no parent category exists of the affected pages yet (the template could easily do the categorizing for such a category e.g. "Han character radicals" or so), I do not know another possibility. May be you prefer to do both in one run from the "long list", either with the bot remembering when one number is done not to try the index page for further occurencies, or you check for existence anyway; then you will not need the "short list".

sarang사랑13:05, 16 April 2012
Edited by 3 users.
Last edit: 15:59, 1 November 2021

I've done the short list now. One of the pages could not be updated, because it was a redirect: Index:Chinese radical/廿.

For the long list, do you think it would be better if the template is placed inside the ==Translingual== section? I think it would be.

CodeCat14:04, 16 April 2012
Edited by 2 users.
Last edit: 15:59, 1 November 2021

from my view, I do not think it better. There is lot of place to the right above the Transligual section - no matter whether the "contents" are hidden or shown; but it is often rather stressy below, there are pictures an longt text parts. And the uppermost right corner is the place where the other links from&to Commons for radicals are placed. So I prefer to place it above, before any other text as {{also}}, that means without any checking.

Index:Chinese radical/廿 was my fault, there was an error in the index list which is now corrected to 廾. Thank you!

sarang사랑15:55, 16 April 2012

That may be true but I have tabbed languages enabled, and it looks a bit strange then: File:Radical one tabbed.png

CodeCat16:36, 16 April 2012

May give a problem. I'll try to find a solution.

sarang사랑17:03, 16 April 2012

How about now? Too dirty trick???

sarang사랑17:23, 16 April 2012

Uh... yeah, kinda...

CodeCat18:29, 16 April 2012
 
 
 
 

I think things should be placed inside the translingual section, just because we don't usually place things outside of some language section.

- -sche (discuss)18:32, 16 April 2012
Edited by another user.
Last edit: 20:56, 1 March 2023

OK, I tried. after the translingual L2, and at the sections end. Both doesn't look any good, no matter TOC is hidden or not, and Language Tab is on or off. It gets only worse! I keep my opinion that above is best. See yourself; and decide how to handle these problems.

sarang사랑19:54, 16 April 2012

Can we make it 'float right' to the same extent as the stroke order templates? That is, can we make its right side line up with the right side of the stroke order template? That would improve its appearance.

- -sche (discuss)20:00, 16 April 2012

Not any problem, I just undo the shift to the left. within an instant

sarang사랑20:02, 16 April 2012
 
 

The "see also" is above the language section and anything else. I would treat the link alike.

sarang사랑19:59, 16 April 2012

Last night I saw that MewCat was a bit furious and partially out of control, editing approx. 20 articles a 2nd time devastively. I undid three of the 2nd edits and can continue healing all quickly, but I am not sure whether you agree to my action. So I am waiting for your OK to continue. Sorry that this all consumes more of your time than expected.

sarang사랑06:03, 17 April 2012

- Another recognition happened to me: your mew-task inserting the template string is a fine thing, and I think it is a benefit for wikipedia/wiktionary/commons. This about the "short list".
For the questioned "long list"-insertions I see now a better possibility: the affected articles are those where {{Han char}} has the parameter value 00 for "as" (additional strokes). If I can persuade the guards of that protected (21 461 transclusions) template to accept a small expansion it will be no need for an insertion of an extra template, as mine.
So I draw back my bot request.
Thank you for your useful work. For sure a long discussion will go on now, whether the communinity allows the expansion of {{Han char}}.

sarang사랑12:48, 17 April 2012