Jump to content

User:GreenC/testcases/oldwayback

From Wikipedia, the free encyclopedia

Testcases - if needed again un-pre

* Wayback template with no problems (control case)
**{{wayback|url=http://example.com|title=Page title|date=20180906071009}}
**{{Cite web |url=http://example.com/ |title=Page title |access-date=2019-03-08 |archive-url=https://web.archive.org/web/20180906071009/http://example.com/ |archive-date=2018-09-06 |dead-url=bot: unknown |df= }}

* Positional parameters 
**{{wayback|http://example.com|20160801010101}}
**{{Cite web |url=http://example2.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example2.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

* Positional parameters (mixed types)
**{{wayback|url=http://example.com|Page title|3=20160801010101}}
**{{Cite web |url=http://example3.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example3.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

* Invalid argument ("titl")
**{{wayback|url=http://example.com|titl=Page title|date=20160801010101}}
**{{Cite web |url=http://example4.com/ |title=Archived copy |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example4.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

* Invalid argument ("mdy")
**{{wayback|url=http://example.com|title=Page title|date=20160801010101|mdy=mdy}}
**{{Cite web |url=http://example5.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example5.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

* Invalid argument ("dateformat")
**{{wayback|url=http://example.com|title=Page title|date=20160801010101|dateformat=mdy}}
**{{Cite web |url=http://example6.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example6.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

* Obscure argument ("nolink")
**{{wayback|url=http://example.com|title=Page title|date=20160801010101|nolink=}}
**{{Cite web |url=http://example7.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010101/http://example7.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

*date is a template ("date={{date|..}}")
**{{wayback|url=http://example.com|title=Page title|date={{date|2016-08-01}}}}
**{{wayback|url=http://example8.com|title=Page title|date={{date|2016-08-01}}}}

*date is < 5 chars
**{{wayback|url=http://example.com|title=Page title|date=2016}}
**{{Cite web |url=http://example9.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20190325201600/http://example9.com/ |archive-date=2019-03-25 |dead-url=bot: unknown |df= }}

*date is < 7 chars
**{{wayback|url=http://example.com|title=Page title|date=201608}}
**{{Cite web |url=http://example10.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20190325201608/http://example10.com/ |archive-date=2019-03-25 |dead-url=bot: unknown |df= }}

*date is < 9 chars
**{{wayback|url=http://example.com|title=Page title|date=20160801}}
**{{Cite web |url=http://example11.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801000000/http://example11.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}

*date is < 14 chars
**{{wayback|url=http://example.com|title=Page title|date=2016080101}}
**{{Cite web |url=http://example12.com/ |title=Page title |access-date=2019-03-25 |archive-url=https://web.archive.org/web/20160801010000/http://example12.com/ |archive-date=2016-08-01 |dead-url=bot: unknown |df= }}