Wikipedia:Bots/Requests for approval/Helpful Pixie Bot 45/archive
Appearance
Operator: Rich Farmbrough
Automatic or Manually assisted: Automatic
Source code available: Yes;
Function overview: Change some parameters in Infobox ice hockey player
Links to relevant discussions (where appropriate): Template talk:Infobox ice hockey player
Edit period(s): One time
Estimated number of pages affected: 2876 2669
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: To quote the talk page
The logic for a bot would be (ignoring whitespace):
- For all articles using "Template:Infobox ice hockey player"
- if template contains
""|wha_
" or|ntl_team_women
", insert a parameter of "| sex = f
" above the first occurance
find "|wha_
" and delete "wha_
" (wha_draft
becomesdraft
, etc)- find "
|ntl_team_women
" and delete "_women
" (ntl_team_women_2
becomesntl_team_2
, etc)
- if template contains "
|shot=
" or "|caught=
",
- change
shot
toshoots
- change
caught
tocatches
- change
- if template contains
Discussion
[edit]Note that a couple of other changes requested are better done in the template itself (adding a maint category) or, at least to start with, on an "as and when" basis (bypassing redirects).Rich Farmbrough 21:08, 17 November 2011 (UTC)