Template talk:Tweet

☆ Save On Wikipedia ↗

Recent changes caused missing ending p tag in some cases

Resolved

Sapphaline: Recent changes to this template appear to have caused Linter errors in some instances. I have copied one example to the test cases page. If it helps narrow down the cause, the problem is also occurring at December 2022 Twitter suspensions, Israel won't exist in 25 years, Joe Biden (The Onion), Libertarian Party of New Hampshire, Political activities of Elon Musk, Public image of Elon Musk, Republican Palace, Khartoum, Trump–Musk feud, and Twitter under Elon Musk. Please fix. – Jonesey95 (talk) 23:31, 19 November 2025 (UTC)

Never mind, I fixed it. Sometimes p tags get unhappy when they are asked to wrap File: instances. I replaced them with div tags, with no change in the display. – Jonesey95 (talk) 23:36, 19 November 2025 (UTC)

Provision for TruthSocial?

Basically just this template but to allow for posts from TS (so, mostly for Trump's stuff post Twitter ban)

For context I'm trying to replace this image: U.S. president Donald Trump posting about the ceasefire on Truth Social, on 26 July, 11:28 p.m.Opecuted (talk) 13:41, 24 December 2025 (UTC)

from 2025 Cambodia-Thailand conflictOpecuted (talk) 13:42, 24 December 2025 (UTC)

Time

User The Example
(@UserTheExample)
tweeted:
This is okay.

1 Jan 1980, 17:17[1]

Currently, the date parameter supports inserting a time as well. The documentation on the date parameter states that this is incorrect use, but the template silently accepts it.

date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
Evil Template Breaker
(@IBreakTemplates)
tweeted:
This is not okay.

1 Jan 1980, 17:17 UTC[2]

Now it could be argued that this is a good feature and should be made official. However, there is still the issue that we cannot specify a time zone, which makes trying to specify a time pointless. So I suggest:

  • Inserting a time in the date parameter should transclude Template:Error.
  • There should be a separate time parameter that supports time zones.

Dieknon (talk) 08:47, 21 May 2026 (UTC) Dieknon (talk) 08:47, 21 May 2026 (UTC)

not sure what you mean by "silently accepts it" because I am seeing a large red error message and only came here because this talk page was flagged as containing aan error. :) SkyLined (talk) 16:15, 21 May 2026 (UTC)

References

  1. User The Example [@UserTheExample] (1 Jan 1980, 17:17). "This is okay" (Tweet) via Twitter. {{cite web}}: |author1= has generic name (help); Check date values in: |date= (help); {{Cite tweet}}: |date= / |number= mismatch (help)
  2. Lua error in Module:TwitterSnowflake at line 48: attempt to index local 'x' (a nil value).

CS1 error

See below. It appears to be triggering the flag on use of Twitter, but that is correct here. The parenthesis fix works, but that doesnt seem ideal.

Avatar of Twitter Safety
Avatar of Twitter Safety
Twitter Safety
(@TwitterSafety)
tweeted:
After close review of recent Tweets from the @realDonaldTrump account and the context around them we have permanently suspended the account due to the risk of further incitement of violence.

January 8, 2021[1]

 Metallurgist (talk) 06:04, 18 June 2026 (UTC)

{{tweet}} wraps {{cite tweet}} which wraps {{cite web}}. Because {{cite web}} can't know that it has been called to render a citation that legitimately includes the word 'Twitter' in an author-name parameter, the author-name must be escaped using the accept-as-written markup. The problem with the current {{tweet}} template is that when the accept-as-written markup is used to suppress the generic name error message, the markup is visible in the heading at the top of the {{tweet}} rendering. That might be remedied by changing:
<td style="text-align: left; white-space: nowrap;">'''{{{name|}}}''' <div style="white-space: nowrap;">{{screen reader-only|(}}@{{{username|}}}{{screen reader-only|)}}</div>{{screen reader-only| tweeted:}}</td>
to this:
<td style="text-align: left; white-space: nowrap;">'''{{#invoke:String|replace|{{{name|}}}|^%(%((.-)%)%)$|%1||false}}''' <div style="white-space: nowrap;">{{screen reader-only|(}}@{{{username|}}}{{screen reader-only|)}}</div>{{screen reader-only| tweeted:}}</td>
(this remedy not extensively tested)
Trappist the monk (talk) 13:21, 18 June 2026 (UTC)