Template talk:Cite tweet
![]() | Template:Cite tweet is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
![]() | This template is a Citation Style 1 specific-source template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
This is the talk page for discussing improvements to the Cite tweet template. |
|
Archives: 1, 2Auto-archiving period: 180 days ![]() |
![]() | This template was considered for deletion on 2015 April 11. The result of the discussion was "no consensus to delete". |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||
|
![]() | On 7 August 2023, it was proposed that this page be moved to Template:Cite X post. The result of the discussion was not moved. |
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)
Update to sandbox version
Is there any opposition to updating to the sandbox version? Rjjiii (talk) 07:26, 4 January 2024 (UTC)
- I see above that the documentation was never updated for the template update. I've gone ahead and done this, in case that had caused the wait as I see some support and no objections to the sandbox version. GKFX, if you're okay with it, I'd like to go ahead with the sandbox update this week. If there are objections to the sandbox version, feel free to revert my changes to the documentation. Rjjiii (talk) 08:12, 4 January 2024 (UTC)
- I think we should proceed. It fixes the issues we've been coming across due to the changes to the underlying CS/cite web module. - Favre1fan93 (talk) 17:04, 4 January 2024 (UTC)
- Full send. SWinxy (talk) 17:19, 4 January 2024 (UTC)
- Also, it looks like GKFX has been inactive since switching the template to lua. Does the template have a primary maintainer to ping? Nardog? Rjjiii (talk) 21:17, 4 January 2024 (UTC)
- I mean, I've been here a while, and the last two edits to the module were from me. So, me? I guess? SWinxy (talk) 23:29, 4 January 2024 (UTC)
- @SWinxy: Gotcha, I just didn't want to step on anyone's toes. Rjjiii (talk) 23:31, 4 January 2024 (UTC)
- The template and documentation are both updated. And again if this causes some unforeseen issue, feel free to roll back. Rjjiii (talk) 23:46, 4 January 2024 (UTC)
- @SWinxy: Gotcha, I just didn't want to step on anyone's toes. Rjjiii (talk) 23:31, 4 January 2024 (UTC)
- I mean, I've been here a while, and the last two edits to the module were from me. So, me? I guess? SWinxy (talk) 23:29, 4 January 2024 (UTC)
- Also, it looks like GKFX has been inactive since switching the template to lua. Does the template have a primary maintainer to ping? Nardog? Rjjiii (talk) 21:17, 4 January 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)
[1]
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.
References
Schwede66 06:24, 29 April 2024 (UTC)
Template-protected edit request on 20 May 2024
![]() | This edit request to Module:Cite tweet has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
In light of the recent URL migration, line 61 should be changed from cite_args_t.url = 'https://twitter.com/';
to cite_args_t.url = 'https://x.com/';
UltrasonicMadness (talk) 19:01, 20 May 2024 (UTC)
Done * 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)
- This is just the sort of thing that WP:JUSTDONTLIKEIT was written for. Blech. – Jonesey95 (talk) 00:46, 21 May 2024 (UTC)
- 😔 SWinxy (talk) 22:20, 20 May 2024 (UTC)
Very bad behavior with the date field
First of all: the blank template doesn't have a date=
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
- @jack (Mar 21, 2006). "just setting up my twttr" (Tweet) – via Twitter.
- Sandbox
- @jack (Mar 21, 2006). "just setting up my twttr" (Tweet) – via Twitter.
- May break something else though. Rjjiii (talk) 02:16, 20 June 2024 (UTC)
- @Schwede66 and JPxG: 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! Schwede66 19:40, 20 June 2024 (UTC)
- @Schwede66 and JPxG: Does the above fix resolve your issues? Rjjiii (ii) (talk) 17:58, 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:
Extended content
| ||||||||
---|---|---|---|---|---|---|---|---|
|
@JPxG: 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
_if()
because it added complication without benefit. Why did you restore it? - —Trappist the monk (talk) 16:56, 22 June 2024 (UTC)
- @Trappist the monk: 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
_if()
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)
- @Trappist the monk: 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)
- That does not answer my question. Why did you decide that the function
- @Trappist the monk: 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)