Wikipedia:Bots/Requests for approval/Petan-Bot task7
Operator: Petrb (talk · contribs)
Time filed: 05:39, Monday April 18, 2011 (UTC)
Automatic or Manual: Auto
Programming language(s): c++
Source code available: on request
Function overview: Replace tags
Links to relevant discussions (where appropriate): http://en.wikipedia.org/w/index.php?diff=424560464&oldid=424557282
Edit period(s): one time
Estimated number of pages affected: 50 000 (+- 100)
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): Y
Function details: Will replace deprecated parameter per WP:FOOTBALL
Discussion
It would be nice to have a discussion within Wikiproject football to link to. People who might be able to raise problems with the automation of this task may not read the bot requests page. I suggest you raise the issue there to see if anyone has any concerns. Gigs (talk) 13:32, 19 April 2011 (UTC)
- What does "replace tags" mean? We'll need a lot more detail than that to understand what your proposed bot will do. Which templates will it modify? Which parameters in those templates will it modify? What will it do to the information contained in those parameters? Will it retain the information and rename it under a current parameter, or will it remove the information altogether? Are you aware that another user is already working on this task? —SW— chatter 20:44, 19 April 2011 (UTC)
- Of course that I am aware of that but actually that user didn't work on it before I posted this nor announced it here, so I couldn't know it. Perhaps someone should make a bot to watch all the noticeboards around. Petrb (talk) 20:51, 19 April 2011 (UTC)
- Actually, Magioladitis' comment was made about 9 hours before you posted this BRFA. —SW— yak 21:06, 19 April 2011 (UTC)
- But on another noticeboard than original request I do not watch all Petrb (talk) 06:12, 20 April 2011 (UTC)
- Actually, I posted at BOTREQ (a page you do watch) seven hours before this request was filed to inform you about Magioladitis' task preparation. GiantSnowman 15:10, 20 April 2011 (UTC)
- But on another noticeboard than original request I do not watch all Petrb (talk) 06:12, 20 April 2011 (UTC)
- Actually, Magioladitis' comment was made about 9 hours before you posted this BRFA. —SW— yak 21:06, 19 April 2011 (UTC)
- Of course that I am aware of that but actually that user didn't work on it before I posted this nor announced it here, so I couldn't know it. Perhaps someone should make a bot to watch all the noticeboards around. Petrb (talk) 20:51, 19 April 2011 (UTC)
- I have notified WP:FOOTBALL about this request. GiantSnowman 15:07, 20 April 2011 (UTC)
- I don't see any immediate objections at Wikipedia_talk:WikiProject_Football#Category:Football_biography_using_deprecated_parameters, so how does a trial sound? MBisanz talk 13:54, 21 April 2011 (UTC)
Approved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — HELLKNOWZ ▎TALK 16:30, 21 April 2011 (UTC)
Done (less than 30) Petrb (talk) 21:05, 21 April 2011 (UTC)
Sorry I have to rollback most of the edits since I changed the template it had horrible format. I will retag it now Petrb (talk) 21:21, 21 April 2011 (UTC)
Trial complete. Petrb (talk) 21:31, 21 April 2011 (UTC)
- Petrb, I have reverted your edits to the infobox - the coding is fine. GiantSnowman 22:35, 21 April 2011 (UTC)
- By changing it to this you only get to troubles in future there is no valid way to convert the template if it's this Petrb (talk) 23:56, 21 April 2011 (UTC)
- Now it's that template put () over the parameter so x is displayed as (x) but how can you work with parameters like this http://en.wikipedia.org/w/index.php?title=Aleksandr_Abdulkhalikov&diff=prev&oldid=425225485 only posible way is to insert values like this 1) (20) (47) (32) (18) (26) (4) (7 so that first and last bracket work, is that ok? it will leave a mess on 50k of pages so think about it I recommend to change template. Petrb (talk) 00:10, 22 April 2011 (UTC)
- In Layman's terms please? GiantSnowman 00:27, 22 April 2011 (UTC)
- If you put something in goals template now put it in brackets but there might be values separated by break to more lines so if you use template as it is it doesn't work can you show me example how it should be converted of some line which has more than one record Petrb (talk) 04:02, 22 April 2011 (UTC)
- Just one question: Why can't the bot change for example
caps(goals) = 10 (5)<br />33 (2)
into
caps1 = 10 | goals1 = 5 | caps2 = 33 | goals2 = 2
(and change the years and clubs parameters as well)? Then the parentheses wouldn't be a problem. I don't see
caps1 = 10 <br /> 33 | goals1 = 5 <br /> 2
as so desirable in any case. --Jaellee (talk) 08:07, 22 April 2011 (UTC) - Can you show me example what all bot should edit, so that I can set it to bot Petrb (talk) 10:25, 22 April 2011 (UTC)
- Why I need to change year or club? Petrb (talk) 10:28, 22 April 2011 (UTC)
- Please look at this edit, that's what I'd like the bot to do (the order of the parameters is not that important, they could be sorted differently). --Jaellee (talk) 14:26, 22 April 2011 (UTC)
- Why I need to change year or club? Petrb (talk) 10:28, 22 April 2011 (UTC)
- Just one question: Why can't the bot change for example
- If you put something in goals template now put it in brackets but there might be values separated by break to more lines so if you use template as it is it doesn't work can you show me example how it should be converted of some line which has more than one record Petrb (talk) 04:02, 22 April 2011 (UTC)
- In Layman's terms please? GiantSnowman 00:27, 22 April 2011 (UTC)
- Reviewing the trial edits, such as this, has show that it has failed - linebreaks need to be removed completely from the new infobox. GiantSnowman 11:50, 22 April 2011 (UTC)
- The edit was not from now as you can see from time Petrb (talk) 17:06, 22 April 2011 (UTC)
- It was from yesterday's trial run! GiantSnowman 17:35, 22 April 2011 (UTC)
- That was before I got this explained as you can see (it was few hours ago, now bot is doing it right I will show you example soon) Petrb (talk) 18:11, 22 April 2011 (UTC)
- It was from yesterday's trial run! GiantSnowman 17:35, 22 April 2011 (UTC)