Hoppa till innehållet

Mall:Wayback/sandboxLua/testcases

Från Wikipedia

Three versions shown:

Base testing

[redigera wikitext]
No Title. No Date. df=nil
Title. No Date. df=nil
No Title. Date. df=nil
Title. Date. df=nil

Date tests

[redigera wikitext]
Month names
Date is less than 14 characters
Date is less than 4 characters
  • {{Wayback |url=http://example.com |date=201 |title=Page title}}
  • Error in wayback template: Check |date= value. Should be 14-digit snapshot ID in form YYYYMMDDhhmmss (error code 2)
  • Error in wayback template: Check |date= value. Should be 14-digit snapshot ID in form YYYYMMDDhhmmss (error code 2)
  • Page title hämtat från the Wayback Machine.
Date is year and month only
Date is year only
  • {{Wayback |url=http://example.com |date=2015 |title=Page title}}
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Page title hämtat från the Wayback Machine (arkiverat 2 december 2015).
[redigera wikitext]
Title. Date. nolink=<empty>
  • {{Wayback |url=http://example.com |date=20160801000000 |title=Page title |nolink=}}
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).
Title. Date. nolink=yes
  • {{Wayback |url=http://example.com |date=20160801000000 |title=Page title |nolink=yes}}
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).
  • Page title hämtat från the Wayback Machine (arkiverat 1 augusti 2016).

DF argument

[redigera wikitext]
No Title. No Date. df=yes
Title. No Date. df=yes
No Title. Date. df=yes
Title. Date. df=yes

Test positional arguments

[redigera wikitext]
No Title. No Date. df=nil
Title. No Date. df=nil
No Title. Date. df=nil
Title. Date. df=nil

Test of error reporting

[redigera wikitext]
No Title. No Date. url x2 archive
  • {{Wayback |url=https://web.archive.org/20160801000000/http://example.com}}
  • Error in wayback template: Check |url= value. Should be the original URL not an archive.org URL.
  • Error in wayback template: Check |url= value. Should be the original URL not an archive.org URL.
  • Arkivkopia hämtat från the Wayback Machine.
Title. No Date. url missing
  • {{Wayback |url=|title=Page title}}
  • Error in wayback template: Check |url= value. Empty.
  • Error in wayback template: Check |url= value. Empty.
  • Page title hämtat från the Wayback Machine.
No Title. Date. date wrong format
  • {{Wayback |url=http://example.com |date=May 16, 2016}}
  • Error in wayback template: Check |date= value. Should be 14-digit snapshot ID in form YYYYMMDDhhmmss (error code 1)
  • Error in wayback template: Check |date= value. Should be 14-digit snapshot ID in form YYYYMMDDhhmmss (error code 1)
  • 16, 2016/http://example.com Arkiverad 16 maj 2016 hämtat från the Wayback Machine.
No Title. Date. date wrong month
  • {{Wayback |url=http://example.com |date=20161301000000}}
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Arkiverad Fel: ogiltig tid hämtat från the Wayback Machine.
No Title. Date. date wrong day
  • {{Wayback |url=http://example.com |date=20161232000000}}
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Arkiverad Fel: ogiltig tid hämtat från the Wayback Machine.
No Title. Date. Zero day
No Title. Date. Zero month
  • {{Wayback |url=http://example.com |date=20150001000000}}
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Error in wayback template: Check |date= value. Date has invalid day or month. (error code 4)
  • Arkiverad 1 december 2014 hämtat från the Wayback Machine.