Template:TwitterSnowflake/datecheck/doc

Usage change

{{TwitterSnowflake/datecheck}} has two parameters that should be used. |date= must be the date, in a decent format (like "January 1, 2021" or "1 January 2021"), and |id_str= is the Tweet ID to check.

Tweet IDs contain the date the tweet was posted, as long as the Tweet was posted after November 4, 2010. This template checks a few things.

  • If the tweet was posted before November 4, 2010, and no date is specified, it outputs |error2=
  • If the tweet was posted after November 4, 2010, and the date specified is more than one day apart from the Tweet, it outputs |error1=
  • If the id_str is invalid (contains non-numeric characters), it outputs |error3=

This should therefore be used in templates that wrap {{TwitterSnowflake}} to ensure that dates are entered accurately. An example usage can be seen at {{Cite tweet}}.

Default values
Parameter Value
|error1= Date mismatch of two or more days
|error2= No date, and posted before November 4, 2010
|error3= Invalid id_str

See also change