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
|first=
is a piped wikilink and |last=
is text
|first=
and move to |authorlink=
|last=
is a piped wikilink and |first=
is text
|last=
and move to |authorlink=
If |author=
set; and |first=
, |last=
, and |authorlink=
not set
|author=
is a wikilink
|author=
and move to |authorlink=
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.
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
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