The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was  Approved.

Operator: Alakzi (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 17:15, Wednesday, August 5, 2015 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): AWB / Lua

Source code available: AWB / Module:Infobox college coach/convert (test cases)

Function overview: The bot will split <br>-separated career pseudo-lists in ((Infobox college coach)) into numbered parameters. For an explanation of why this is needed, see Wikipedia:WikiProject Accessibility/Infoboxes.

Links to relevant discussions (where appropriate):

Edit period(s): one-time run

Estimated number of pages affected: 6,233

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): No

Function details:

The bot will replace the pattern "\{\{ *(infobox college coach|infobox athletic director|college coach infobox)" (case-insensitive) with ((subst:#invoke:Infobox college coach/convert|main|, and save edits with the following edit summary: "Split teams/years using Module:Infobox college coach/convert". AWB auto-tagging will be switched off.

The script will split *_teams and *_years parameters at <br>; and print out one of each consecutively. If either the year or team in a pair is blank, the non-blank value will be assumed to be a sport. If both are blank, the pair will be skipped. The output is demonstrated below.

In Out
| player_years = Baseball<br>1960<br>1961
| player_teams = <br>Team 1<br>Team 2
| player_sport1 = Baseball
| player_years2 = 1960
| player_team2 = Team 1
| player_years3 = 1961
| player_team3 = Team 2

The script will fail gracefully under the following conditions: the header and data cells are unbalanced; the header cell is empty; the data cell is empty. Upon failure, the content of the infobox will remain intact, and the script will print an HTML comment with the error message directly above any affected parameters to guide editors in making manual corrections.

Discussion

[edit]

Approved for trial (60 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. -- Magioladitis (talk) 14:25, 6 August 2015 (UTC)[reply]

@Alakzi: Can you please do the edits manually using the bot account? -- Magioladitis (talk) 17:02, 6 August 2015 (UTC)[reply]

Trial completed with one error, which was to overwrite a previous partial conversion (Special:Diff/674865205); this is probably best addressed by removing these pages from the category. I've not spotted any other issues. Alakzi (talk) 17:25, 6 August 2015 (UTC)[reply]

Trial complete. Magioladitis (talk) 21:24, 6 August 2015 (UTC)[reply]

 Approved. Magioladitis (talk) 09:59, 11 August 2015 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.