Creating talk-page to centralize future discussions with redirects, feel free to remove this if anything of substance gets posted. Elliot321 (talk | contribs) 02:52, 22 January 2021 (UTC)
Using any of the formatting codes with "-" i.e. %-Y, %-H, %-M, %-S, %-j, and %-I while specifying the date format does not work. Is this intended or is this a bug? — Jeluang Terluang (talk) 09:12, 3 February 2021 (UTC)
%-Y
work with that. Elliot321 (talk | contribs) 12:46, 3 February 2021 (UTC)
Dignidad Ahora is a new article with two errors from ((Cite tweet)), namely "Lua error in Module:TwitterSnowflake at line 45: attempt to index local 'x' (a nil value)." I'll fix them soon as they are due to the date not being valid as an English date (for example, date=6 de enero de 2021
). Previewing the following shows the error.
((Cite tweet |user=ExampleUser |title=ExampleTitle |number=1346864942662774789 |date=mistake ))
The problem is from lines 39–40 of Module:TwitterSnowflake:
local date = Date(frame.args.date) or 0 -- if we error here, then an input of no date causes an error, which is contrary to the entire way ((TwitterSnowflake/datecheck)) works return date - twitterdate
The first line sets date
to 0 and the second line tries to subtract twitterdate
(which is a valid date from Module:Date) from zero. Module:Date cannot do that so it returns nil and that gives the error above. A better error message would be something like:
return (date - twitterdate) or error("parameter 'date' is invalid", 0)
What should happen? Johnuniq (talk) 02:26, 28 August 2021 (UTC)
Please check error on Marty Kemp — Martin (MSGJ · talk) 21:36, 17 February 2023 (UTC)
|date=
so it was GIGO, but perhaps the error should be caught. Nardog (talk) 00:31, 18 February 2023 (UTC)
The TwitterSnowflake module appears to fail with a script error on invalid dates. Here's one I found in the wild:
((Cite tweet|number=1055907442213580800|user=conangray|title=my middle name is "lee" so all i gotta do is name my child "fam"|author=Conan Gray|date=October 98, 2098))
Can it be improved to display a real error message and a ((Cite tweet)) error-tracking category instead? – Jonesey95 (talk) 14:19, 23 May 2023 (UTC)