Operator: Green Cardamom ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 04:40, Thursday, November 3, 2016 ( UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): GNU awk
Source code available: https://github.com/greencardamom/WebArchiveMerge
Function overview: TfM consensus to merge 4 templates into a 5th template; of which the bot will merge two, and I will manually merge the other two.
Links to relevant discussions (where appropriate): Wikipedia:Templates_for_discussion/Log/2016_October_24#Template:Wayback
Edit period(s): Periodic batch runs until complete.
Estimated number of pages affected: 100,000
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: Merge 2 templates into {{
webarchive}}
. The 2 templates are {{
wayback}}
, {{
webcite}}
. The TfM also includes merger of {{
memento}}
and {{
cite archives}}
but for various reasons I'll be doing these manually. About 95% of the merger is {{wayback}}
the other 5% {{webcite}}
.
A typical merger will look:
{{wayback|url=
http://example.com%7Cdate=20160901010101%7Cdf=y}}
{{webarchive|url=
https://web.archive.org/web/20160901010101/http://example.com%7Cdate=1 September 2016}}
The bot checks dates to make sure a |date=
argument exists if otherwise missing, by decoding the date from the URL. Webcite IDs uses base62 encoding to unix-time. It preserves date formats iso, dmy, mdy and ymd. Interprets positional arguments and converts to named arguments. Converts short-form Webcite URLs to long-form
per RfC, using the API.
{{
wayback}}
and 50 {{
webcite}}
. There is overlap with some articles containing both templates, but anyway 100 articles total.
{{
webarchive}}
has tracking categories for error checking so problems will usually show up there and those cats are clean post-trial. I also manually checked each edit and they seem OK.