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: 6 months |
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. |
Template-protected edit request on 20 May 2024
[edit]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)
_.---,._,' /' _.--.< /' `' /' _.---._____ \.' ___, .-'` /' \\ . /' `-. -|- | | | .-'———————`-. | .' `. | | 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
[edit]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)
- refactored function
date_number_url_get()
in the ~/sandbox. - —Trappist the monk (talk) 14:11, 24 June 2024 (UTC)
- refactored function
- @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)
Archiving Tweets
[edit]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
[edit]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
[edit](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 this diff, 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 1591171409484873728
. Is this the template's intended behavior, by any chance? Thanks in advance. Cheers, u|RayDeeUx (contribs | 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)- @SWinxy: The first line of the original Tweet ends in a period (
into the book.
), which gets truncated in the version you linked (into the book" (Tweet).
). I had to work around that visual error by adding an extra period to thetitle
parameter as seen in this revision (into the book." (Tweet).
). Cheers, u|RayDeeUx (contribs | talk page) 17:38, 12 July 2024 (UTC)- Ah I see. SWinxy (talk) 18:27, 12 July 2024 (UTC)
- @SWinxy: The first line of the original Tweet ends in a period (
- 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):
{{cite tweet |number=1591171409484873728 |user=Noxywoxy |title=((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.)) |author=Noxy @ Hypixel Studios |date=2022-11-11 |access-date=2023-02-22}}
- Noxy @ Hypixel Studios [@Noxywoxy] (2022-11-11). "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). Retrieved 2023-02-22 – via Twitter.
- —Trappist the monk (talk) 18:08, 12 July 2024 (UTC)
- @Trappist the monk: Much appreciated! Will do now. Cheers, u|RayDeeUx (contribs | talk page) 11:08, 13 July 2024 (UTC)
Automatic citing
[edit]Is it not possible to create an automatic citation by entering the URL of the tweet? Entering all the information is a bit time-consuming. I also notice that you have to remove line breaks, otherwise it comes up with errors. TrottieTrue (talk) 16:57, 22 July 2024 (UTC)
- The template cannot do that. For the security of the encyclopedia, templates and modules are not allowed to fetch information from external sources. Neither WP:RefToolbar nor WP:VE have support for
{{cite tweet}}
; those tools only have support for the big four cs1|2 templates:{{cite book}}
,{{cite journal}}
,{{cite news}}
,{{cite web}}
. For years editors have been asking for support for more of the cs1|2 templates; the requests have been declined or ignored (I don't know which) so don't expect support for{{cite tweet}}
. - One thing you might try is to write your own external tool which would take a twitter url and convert it in to a
{{cite tweet}}
template that you could copy and paste into an article. An example of such a tool is Citer. But, if you give it a twitter url, you won't get a pretty result (it's junk) so a specialized tool is what you need to write. - —Trappist the monk (talk) 17:25, 22 July 2024 (UTC)
Registration required for viewing a thread
[edit]Much material cited using twitter (X) actually cites threads, but currently, only the first tweet (post) could be viewed directly after clicking the cited link. For the rest of posts in the thread, you need to login, for that you need to register. Currently there is no option to mark this in the template, or at least I didn't find one. Suggestion is to add one parameter, just like there is one in template cite web. ExclusiveEditor Notify Me! 15:57, 6 August 2024 (UTC)
- This template taken from a discussion above since OP did not offer an example of one that exhibits the thread problem. Using it here simply to show that
{{cite tweet}}
now supports|url-access=
:{{cite tweet |number=1591171409484873728 |user=Noxywoxy |title=((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.)) |author=Noxy @ Hypixel Studios |date=2022-11-11 |access-date=2023-02-22 |url-access=limited}}
- Noxy @ Hypixel Studios [@Noxywoxy] (2022-11-11). "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). Retrieved 2023-02-22 – via Twitter.
{{cite tweet |number=1591171409484873728 |user=Noxywoxy |title=((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.)) |author=Noxy @ Hypixel Studios |date=2022-11-11 |access-date=2023-02-22 |url-access=subscription}}
- Noxy @ Hypixel Studios [@Noxywoxy] (2022-11-11). "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). Retrieved 2023-02-22 – via Twitter.
- —Trappist the monk (talk) 19:00, 7 August 2024 (UTC)
- This parameter doesn't show up in 'visual mode'. ExclusiveEditor Notify Me! 20:07, 7 August 2024 (UTC)
- You will have to add it to the template's TemplateData.
- —Trappist the monk (talk) 20:44, 7 August 2024 (UTC)
- That's why I started this discussion, so as not to unilaterally make any change without hearing for better suggestions or to know it already existed. ExclusiveEditor Notify Me! 19:04, 8 August 2024 (UTC)
- @ExclusiveEditor: It's done though; have you updated TemplateData before? When you edit the "/doc" page there will be an "Edit template data" box, if you don't want to fool with the syntax. Rjjiii (talk) 20:00, 8 August 2024 (UTC)
- (edit conflict)
- You won't break anything by adding
|url-access=
to the{{cite tweet}}
TemplateData. You can use the{{cite web}}
TemplateData as an example of what you need to do.- follow this link to Template:cite web § TemplateData (probably easiest to do this in a separate window or tab)
- click the 'Edit template data' link; opens the Template data editor (why is it not 'TemplateData editor'? I don't know)
- in the Template data editor, scroll down to
URL access level
(with my browser, chrome on win10, ctrl+f will find it); click that to open the data entry form - do more-or-less the same thing in another window or tab for
{{cite tweet}}
(this link will open the Template data editor at{{cite tweet}}
) - at the bottom of the Template data editor window, click '+ Add parameter'
- enter
URL access level
as the parameter name - click Add parameter then fill in the blank form with the same data that you see in the
{{cite web}}
parameter data form - when done adding stuff to the parameter form, click Apply and then click Publish changes
- If you are comfortable with visual editor, this should be no problem for you. You can escape the Template data editor without saving and if worse comes to worst you can always revert your edit.
- —Trappist the monk (talk) 20:10, 8 August 2024 (UTC)
- That's why I started this discussion, so as not to unilaterally make any change without hearing for better suggestions or to know it already existed. ExclusiveEditor Notify Me! 19:04, 8 August 2024 (UTC)
- This parameter doesn't show up in 'visual mode'. ExclusiveEditor Notify Me! 20:07, 7 August 2024 (UTC)
"user" parameter is not necessary
[edit]The |user=
parameter is not necessary because we can find any tweet just from it's number. suppose whole url is https://x.com/Wikipedia/status/1843233092145701274
, now this tweet can be accessed without knowing the username like this: https://x.com/anyuser/status/1843233092145701274
. but this template always says |user
is required and without that it returns error. see here[31 number reference].––kemel49(connect)(contri) 13:28, 10 October 2024 (UTC)
- Is there a way to determine a tweet's author from its number without following the link? Rjjiii (talk) 13:50, 10 October 2024 (UTC)
- Username is not necessary at all, if we omit the user parameter, it could reach to destined tweet by following the number parameter. and we can fill out author parameter only if we wish and it's not necessary that's what i mean.––kemel49(connect)(contri) 14:05, 10 October 2024 (UTC)
- Consensus is for including the author in a citation if possible (Wikipedia:Bare URLs & Why Bare URLs are a problem]). Rjjiii (talk) 22:00, 10 October 2024 (UTC)
- Username is not necessary at all, if we omit the user parameter, it could reach to destined tweet by following the number parameter. and we can fill out author parameter only if we wish and it's not necessary that's what i mean.––kemel49(connect)(contri) 14:05, 10 October 2024 (UTC)