Quite simple. Fill missing {{para|archivedate}} if {{para|archiveurl}} is set and contains identifiable date:
Quite simple. Fill missing {{para|archivedate}} if {{para|archiveurl}} is set and contains identifiable date:
<tt><nowiki>{{Cite web |url=http://www.peremoga.gov.ua/index.php?2150005000000000020 |accessdate=2002-15-19 |title=Some weird page |author=Smith, John |archiveurl=http://web.archive.org/web/20050515091804/http://www.peremoga.gov.ua/index.php?2150005000000000020}}</nowiki></tt>
<tt><nowiki>{{Cite web |url=http://www.peremoga.gov.ua/index.php?2150005000000000020 |accessdate=2002-15-19 |title=Some weird page |author=Smith, John |archiveurl=http://web.archive.org/web/20050515091804/http://www.peremoga.gov.ua/index.php?2150005000000000020|archivedate=15 May 2005 }}</nowiki></tt>
{{Cite web |url=http://www.peremoga.gov.ua/index.php?2150005000000000020 |accessdate=2002-15-19 |title=Some weird page |author=Smith, John |archiveurl=http://web.archive.org/web/20050515091804/http://www.peremoga.gov.ua/index.php?2150005000000000020}}
{{Cite web |url=http://www.peremoga.gov.ua/index.php?2150005000000000020 |accessdate=2002-15-19 |title=Some weird page |author=Smith, John |archiveurl=http://web.archive.org/web/20050515091804/http://www.peremoga.gov.ua/index.php?2150005000000000020|archivedate=15 May 2005 }}
to
to
Revision as of 04:07, 11 June 2013
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 Speedily Approved.
Quite simple. Fill missing |archivedate= if |archiveurl= is set and contains identifiable date:
{{Cite web |url=http://www.peremoga.gov.ua/index.php?2150005000000000020 |accessdate=2002-15-19 |title=Some weird page |author=Smith, John |archiveurl=http://web.archive.org/web/20050515091804/http://www.peremoga.gov.ua/index.php?2150005000000000020|archivedate=15 May 2005 }}
As seen above {{cite xxx}} produces an error when |archivedate= is not set, but |archiveurl= is.
Note about date format: The bot respects {{use dmy dates}} and similar, and if those are not present, will use the date format as seen in that citation's |accessdate= or |date= in that order. It will only match and use these formats: June 7, 2011; 7 June 2011; Jun 7, 2011; 7 Jun 2011; 2011-06-07 [default]. Wrong syntax is recognised, such as, June 7 2011 or 2011.06.07; but the bot will still use correct syntax of that format.
So is this basically the same code as H3llBot 4 except looking at a Wayback URL already in |archiveurl= instead of moving it from |url=? Anomie⚔11:09, 8 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.