This is an archive of past discussions about Help:Citation Style 1. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
In normal display mode (what readers see), broken archive urls are ignored except that the module emits an error message. When editors view the same article in preview mode, and when the archive url is an archive.org url, the module uses a modified form of the archive url. The purpose of that is to enable editors to see archive.org's calendar view so that they might choose the url of an appropriate snapshot to replace the malformed archive url in the template. When |archive-url= holds a malformed archive url, the live module truncates the timestamp from 14 to 6 digits and appends a splat (*). That used to work. So, I have tweaked the code so that the new preview-mode archive url uses the first six (YYYYMM) or four (YYYY) digits of the timestamp, zero-fills to 14 digits, and then appends the splat. To see this in action, you must edit this section (or page) and preview.
Cite web comparison
Wikitext
{{cite web|access-date=November 3, 2008|archive-date=2017-06-14|archive-url=https://web.archive.org/web/20170614/http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html|publisher=Intellivision Productions|title=Ask Hal: Frequently Asked Questions to the Blue Sky Rangers|url=http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html}}
However, the "*"-wildcard still seems to work fine with 0-, 4- and 8-digit timecodes, so the zero-filling does not appear to be necessary in all cases:
BTW, if you truncate the archive URL to |archive-url=https://web.archive.org/web/20170614 or shorter, the new implementation throws a Lua error in "Module:Citation/CS1/sandbox at line 2379: attempt to index local 'timestamp' (a nil value)."
{{cite web|access-date=November 3, 2008|archive-date=2017-06-14|archive-url=https://web.archive.org/web/20170614|publisher=Intellivision Productions|title=Ask Hal: Frequently Asked Questions to the Blue Sky Rangers|url=http://www.intellivisionlives.com/bluesky/people/askhal/askhal.html}}