Wikipedia:Bots/Requests for approval/H3llBot 8
- 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: H3llkn0wz (talk · contribs)
Time filed: 08:43, Saturday June 11, 2011 (UTC)
Automatic or Manual: Automatic unsupervised
Programming language(s): C#
Source code available: N
Function overview: Move links from author/editor fields to author/editorlink=
Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 42#Citation template authorlink generation
Edit period(s): Manually run
Estimated number of pages affected: Unsure, not too many Per trial I can see this is relatively common
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): Y
Function details:
If |first=
and |last=
set; and |author=
and |authorlink=
not set
- If
|first=
is a piped wikilink and|last=
is text- Strip wikilink from
|first=
and move to|authorlink=
- Strip wikilink from
- If
|last=
is a piped wikilink and|first=
is text- Strip wikilink from
|last=
and move to|authorlink=
- Strip wikilink from
If |author=
set; and |first=
, |last=
, and |authorlink=
not set
- If
|author=
is a wikilink- Strip wikilink from
|author=
and move to|authorlink=
- Strip wikilink from
The logic is applied to numbered fields as well: |author=
, |author1=
, |author2=
.. |author8=
; as well as |editor=
, |editor-first=
, |editor-last=
, |editor-link=
group and numbered fields thereof.
See example of all cases.
Discussion
[edit]There's a very minor issue with the example edit - the bot adds in a space before the |authorlink=
field. Once that's sorted (should be a fairly simple fix): Approved for trial (50). Please provide a link to the relevant contributions and/or diffs when the trial is complete. - EdoDodo talk 15:18, 11 June 2011 (UTC)[reply]
- Made the bot respect the most commonly used whitespace separator in the citation: [1]. Doing trial now. — HELLKNOWZ ▎TALK 16:23, 11 June 2011 (UTC)[reply]
- Perfect. - EdoDodo talk 16:23, 11 June 2011 (UTC)[reply]
Trial complete. Should be around 50 pages done with this task only for easier review. Fixed a few bugs encountered. Otherwise, seems fine. I'll keep reviewing and spot-checking the edits for a while as usual. — HELLKNOWZ ▎TALK 17:04, 11 June 2011 (UTC)[reply]
- Approved. The edits look alright, with the exception of the bugs which we discussed over IRC and you fixed. - EdoDodo talk 20:31, 11 June 2011 (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.