Jump to content

Wikipedia:Bots/Requests for approval/Petan-Bot task7

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GiantSnowman (talk | contribs) at 11:50, 22 April 2011 (trial has failed). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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)[reply]

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)[reply]
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)[reply]
Actually, Magioladitis' comment was made about 9 hours before you posted this BRFA. —SW— yak 21:06, 19 April 2011 (UTC)[reply]
But on another noticeboard than original request I do not watch all Petrb (talk) 06:12, 20 April 2011 (UTC)[reply]
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)[reply]

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)[reply]

Trial complete. Petrb (talk) 21:31, 21 April 2011 (UTC)[reply]

Petrb, I have reverted your edits to the infobox - the coding is fine. GiantSnowman 22:35, 21 April 2011 (UTC)[reply]
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)[reply]
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)[reply]
In Layman's terms please? GiantSnowman 00:27, 22 April 2011 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]
Why I need to change year or club? Petrb (talk) 10:28, 22 April 2011 (UTC)[reply]