Template talk:Cite tweet

What to do for empty titles
The title param is listed as required. However, what if the cited tweet has no text, just an image? I guess you could make something like "N/A" but any future automated check will likely get confused after that doesn't match the real text of the tweet. Is there a formal "None" option that's supported? If so, can it be added to the documentation? (Came up for this edit and this tweet if it matters... the kind of low-level personnel overturning that journalists won't write news stories about, so citing Twitter is legitimate in the first place.)  SnowFire (talk) 05:26, 1 November 2023 (UTC)


 * afaik, under the hood, images are either t.co or pbs.twimg.com links in a tweet. Maybe somehow get that URL and put it as the title? I'm not sure how to get them now so it would be reasonable to remove the title requirement. SWinxy (talk) 15:27, 1 November 2023 (UTC)
 * The mandatroy title param should also be removed given how long tweets can be these days. It should just show the href'd text 'Tweet' if empty. Local Variable (talk) 03:45, 14 April 2024 (UTC)
 * Since I commented, I found the way to get the content: copy the embed code (three dots > Embed post) and paste only the tweet's contents. SWinxy (talk) 05:14, 14 April 2024 (UTC)

Date issue
Do I see this right that the date automatically derived from the Tweet ID cannot be overwritten? If so, that's a problem.

Consider the tweet with this ID: 1784604761263903165

The tweeter states: I am profoundly sad to share that my father, Emeritus Professor Sir Vincent O’Sullivan, died in Dunedin late yesterday (28 April)

The Tweet was sent at 3:25am NZ time on 29 August. When I plug this into the reference template, it shows as being sent on 28 April, probably because at that time, it was still that date at Twitter HQ. However, the tweet's content now clashes with the date. Obviously, this is only correct when it shows as having been sent on 29 April, as the tweeter's father died on 28 April ("late yesterday (28 April)"). Can this please be fixed? I'd like the template to accept the correct date if that is what is specified through the date parameter.

 Schwede 66  06:24, 29 April 2024 (UTC)

Template-protected edit request on 20 May 2024
In light of the recent URL migration, line 61 should be changed from  to   UltrasonicMadness (talk) 19:01, 20 May 2024 (UTC)
 * ✅ * Pppery * it has begun... 20:10, 20 May 2024 (UTC)
 * 😔 SWinxy (talk) 22:20, 20 May 2024 (UTC)
 * This is just the sort of thing that WP:JUSTDONTLIKEIT was written for. Blech. – Jonesey95 (talk) 00:46, 21 May 2024 (UTC)
 * nononono I meant it as a "rest in peace" thing. SWinxy (talk) 02:44, 21 May 2024 (UTC)

_.---,._,'     /' _.--.<        /'     `'      /' _.---._____      \.'   ___, .-'`          /'    \\               .        /'       `-.            -|-       |                         |       |                   .-'———————`-.       |                 .'             `.       |                 |    R  I  P    | |                | ~twitter.com~ | |                |               |        \              \\|   2006–2024   |//  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ — Preceding unsigned comment added by JPxG (talk • contribs) 18:40, 22 June 2024 (UTC)

Very bad behavior with the date field
First of all: the blank template doesn't have a  param in it, which throws an error. Second of all: if you put a date before November 4, 2010, it will... literally ignore your input and claim the tweet was made on November 4, 2010. What? jp×g🗯️ 20:16, 19 June 2024 (UTC)


 * Check the sandbox version to see if it's a simple fix:
 * Template:Cite tweet/testcases
 * Live
 * Sandbox
 * May break something else though. Rjjiii  (talk) 02:16, 20 June 2024 (UTC)
 * Does the above fix resolve your issues? Rjjiii (ii) (talk) 17:58, 20 June 2024 (UTC)
 * That would address the concern that I raised above. Thanks!  Schwede 66  19:40, 20 June 2024 (UTC)
 * Does the above fix resolve your issues? Rjjiii (ii) (talk) 17:58, 20 June 2024 (UTC)
 * That would address the concern that I raised above. Thanks!  Schwede 66  19:40, 20 June 2024 (UTC)

I took some time to test and didn't see any issues. The change is a partial revert. It will also revert to two other changes in behavior. First, unless a date format is specified, it will render the date in the format given. Second, when there is a date/number mismatch, it will still emit the error message but will display the date parameter's date. I've copied a couple examples from Template:Cite tweet/testcases(20 June 2024) below to illustrate:

if this looks good to you I can push it live this weekend, Rjjiii  (talk) 16:11, 22 June 2024 (UTC)


 * This does look beautiful and I am filled with a great joy to see it although I am not conversant enough with Lua to review the code for bugs/potential breakingness personally. jp×g🗯️ 16:16, 22 June 2024 (UTC)
 * I deleted the function  because it added complication without benefit.  Why did you restore it?
 * —Trappist the monk (talk) 16:56, 22 June 2024 (UTC)
 * To restore the previous method of handling dates. Errors are explained in the discussions above. If you have a cleaner solution, I'll hold off on the partial revert. Rjjiii (ii) (talk) 17:14, 22 June 2024 (UTC)
 * That does not answer my question. Why did you decide that the function   is necessary.  See the module sandbox.  I have no more time for this discussion today; perhaps tomorrow.
 * —Trappist the monk (talk) 17:25, 22 June 2024 (UTC)
 * Oh, I was on mobile and didn't see you had commented it out in the sandbox. If that works, it works. As I said above, I just restored the previous method of handling dates. Thanks, Rjjiii  (talk) 18:01, 22 June 2024 (UTC)
 * refactored function  in the ~/sandbox.
 * —Trappist the monk (talk) 14:11, 24 June 2024 (UTC)
 * —Trappist the monk (talk) 14:11, 24 June 2024 (UTC)

Archiving Tweets
I can't work out why, but archive.org doesn't seem to work for tweets. Any other way to archive them? Closed Limelike Curves (talk) 01:40, 4 July 2024 (UTC)
 * You could try archive.today though I personally haven't used that recently for a tweet to know if it does actually capture an archive. - Favre1fan93 (talk) 16:19, 7 July 2024 (UTC)

Citing a tweet when I cant find anything else
Hi! I'm wanting to add a tweet to the 2024 Cook Out Southern 500 about it being the 75th running, would I still be able to use the tweet from the official darlington raceway twitter? 45BearsFan (talk) 16:03, 4 July 2024 (UTC)
 * See WP:TWITTER and WP:TWITTER-EL. Should be ok, though a reliable secondary source is always preferable when possible. - Favre1fan93 (talk) 16:18, 7 July 2024 (UTC)

Titles of tweets ending in a period get said period truncated in citations
(If the title's too confusing, that's my bad. Oops!) Just swapped a Template:Cite web citation to a Template:Cite tweet citation in Technoblade and as seen in the two article versions in, I had to add an extra period to the title parameter to get it to render properly in the citations section.

I have confirmed that this still happens when viewing anonymously. The tweet ID in question is. Is this the template's intended behavior, by any chance? Thanks in advance. Cheers, u&#124;RayDeeUx  (contribs &#124; talk page)  15:09, 11 July 2024 (UTC)


 * I'm seeing in this version that it's fine: Noxy @ Hypixel Studios [@Noxywoxy] (November 11, 2022). "With permission from his family here are the Technoblade book(s) of condolences in full. Players on the Hypixel server were able to leave a message to be printed into the book" (Tweet). Archived from the original on February 25, 2023. Retrieved February 22, 2023 – via Twitter. Does it not appear for you? SWinxy (talk) 23:56, 11 July 2024 (UTC)
 * The first line of the original Tweet ends in a period, which gets truncated in the version you linked . I had to work around that visual error by adding an extra period to the  parameter as seen in this revision . Cheers,  u&#124;RayDeeUx  (contribs &#124; talk page)  17:38, 12 July 2024 (UTC)
 * Ah I see. SWinxy (talk) 18:27, 12 July 2024 (UTC)
 * So that you don't spoil the template's metadata, you should write this particular template this way (I left out the archive stuff for simplicity):
 * —Trappist the monk (talk) 18:08, 12 July 2024 (UTC)
 * Much appreciated! Will do now. Cheers, u&#124;RayDeeUx  (contribs &#124; talk page)  11:08, 13 July 2024 (UTC)
 * —Trappist the monk (talk) 18:08, 12 July 2024 (UTC)
 * Much appreciated! Will do now. Cheers, u&#124;RayDeeUx  (contribs &#124; talk page)  11:08, 13 July 2024 (UTC)