Jump to content

Template talk:Tweet

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Tweet/doc)

Automatically calculate `date` from `id`

[edit]

Module:TwitterSnowflake can automatically determine the date for a tweet from its snowflake id, {{cite tweet}} already uses that functionality (I'm aware of the edge cases, I don't think they apply here).

Can this template be made to automatically fill in the `date` parameter, if not included, with the same logic? Additionally, the snowflake date calculation logic is useful in {{cite tweet}} because it'll error out if you manually provide a date that isn't within some offset of the calculated date (implying an error in transcription, invalid date, or potential misinformation).

As an almost complete aside, I would like to propose that `|number` be used as an alias for `|id` so that it is compatible with `{{cite tweet}}` which supports the former but not the latter. Mahmoud (talk) 17:56, 23 November 2023 (UTC)[reply]

|context parameter

[edit]

I created this topic in cite tweet talk, but seems that this would be the more appropriate place to propose, given the template claims to display "all relevant information about the tweet". Unfortunately, given popularisation of Community Notes, this is no longer the case for tweets with notes attached, hence suggestion to include a context parameter that can include a note attached, to include all relevant information.

For reference sake, I mean like this with the Readers added context part, given tweets with notes attached aren't displayed without them. I otherwise think it's only fair to describe this template as displaying "most" of the relevant information, rather than "all" at this point. CommunityNotesContributor (talk) 12:18, 27 November 2023 (UTC)[reply]

anachronism

[edit]

For tweets before Twitter was changed, isn't using the new "X" logo anachronistic? For example, at Lea Salonga#Voice, that tweet is dated 2013, a good decade before the "X" logo was used. Shouldn't it instead display File:Logo of Twitter.svg? — Fourthords | =Λ= | 01:00, 18 February 2024 (UTC)[reply]

Following up, given the anachronism, and that this undiscussed change constitutes 17.7% of all the instigating editor's contributions, does anybody object to the undoing of these changes pending discussion (WP:BRD)? — Fourthords | =Λ= | 02:06, 19 February 2024 (UTC)[reply]

I have reverted the undiscussed addition of the new logo (done without an edit summary even) pending further discussion. – Jonesey95 (talk) 19:52, 19 February 2024 (UTC)[reply]
I've restored the Twitter logo as no consensus has emerged here to use the X logo. This fits with the emerging consensus at Talk:Twitter that X will be considered a separate service. Rendering tweets posted prior to 2023 with this logo preserves historical accuracy. An option here for post-2023 posts (so to speak) is adding a parameter to display the X logo instead, and creating a convenience shortcut with that pre-set as {{X post}}.  — Scott talk 12:08, 5 June 2024 (UTC)[reply]
We could have the image and link automatically set based on the date param, which would mean all the posts from after the change would update without any manual intervention. Something like the following:
{{#switch:{{After| {{{date}}} | 23 July 2023}} |1=[[File:X logo 2023.svg|18px|link=X (social network)|alt=X logo, a stylized letter X]] |[[File:Logo of Twitter.svg|18px|link=Twitter|alt=Twitter logo, a stylized blue bird]]}}
Cakelot1 ☞️ talk 21:11, 5 June 2024 (UTC)[reply]
After doing some test I've implemented the above. See X (social network)#Other changes for two before and after tweets as an example. Cakelot1 ☞️ talk 06:52, 6 June 2024 (UTC)[reply]
Snappy!! Great work.  — Scott talk 08:30, 6 June 2024 (UTC)[reply]
P.S. Could you please update Template:Tweet/doc to note this new behavior?  — Scott talk 13:47, 6 June 2024 (UTC)[reply]
I already added it to the description for the date param, but I'll see about adding an example demonstrating it. Cakelot1 ☞️ talk 18:55, 6 June 2024 (UTC)[reply]

Post template

[edit]

I am currently creating an article and I sought to include a quote box from Truth Social. However, it does not appear as though this template supports changing the image or otherwise removing any of the Twitter or X branding. I suggest that a post template be created that this template may invoke with Twitter-specific parameters in order to support non-Twitter posts. It is not inconceivable that an article is created in which a non-Twitter post would be the topic of discussion; for instance, if president-elect Donald Trump were to dismiss a cabinet member in a post on Truth Social, or if he were to create a post that received similar traction as Covfefe. elijahpepe@wikipedia (he/him) 01:17, 19 November 2024 (UTC)[reply]

I've noticed @Tantomile, was drafting something in July at {{User:Tantomile/SocialMediaPostTemplate}} (I like checking where files are used), but I think what it shows is that if we're going to advance the {{Tweet}} template into we need to think about automating any parameters that are different for each. Cakelot1 ☞️ talk 07:56, 19 November 2024 (UTC)[reply]
hey, thanks for pinging me on this. i forgot about that because i was away from the wiki for a while. It's basically a copy of the tweet template that allows for people to select a custom site. I also made it so you can override the "@" in front of the name to cite something like Bluesky or Reddit where usernames don't start with @. If nobody minds, i think i'm going to move it over to Template:SocialMediaPost. Tantomile (talk) 08:13, 19 November 2024 (UTC)[reply]
I'm not sure about that, I might hold off if I we're you, As I said above there's a lot of manual entry that's going on here which may be confusing. Ideally, you'd have a parameter for social network and then it would pull all the necessary data for that site in. For example the current tweet template automatically formats a {{cite tweet}} reference, and a new template would preferably do a similar thing. Having it automatic also makes it easier to change when needed, instead of trying to change it on all the transcended articles. I think when you've got this many variables we need to start thinking about using a WP:MODULE, but that's not something I have any knowledge about how to get going. Cakelot1 ☞️ talk 09:18, 19 November 2024 (UTC)[reply]
I've made a post over on VPT about this Cakelot1 ☞️ talk 09:51, 19 November 2024 (UTC)[reply]