Wikipedia:Bots/Requests for approval/Helpful Pixie Bot 45/archive

[[User:Helpful Pixie Bot|Helpful Pixie Bot 45]]

{{Newbot|Helpful Pixie Bot|45}}

Operator: Rich Farmbrough

Automatic or Manually assisted: Automatic

Programming language(s): AWB

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 {{Break}}The logic for a bot would be {{hilite|{{resize|(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_"   {{resize|(wha_draft becomes draft, etc)}}

:::* find "|ntl_team_women" and delete "_women"   {{resize|(ntl_team_women_2 becomes ntl_team_2, etc)}}

::* if template contains "|shot=" or "|caught=",

:::* change shot to shoots

:::* change caught to catches

=Discussion=

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)