Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24dfdc8fe75b5b3

Jump to content

Template talk:Tweet

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 1 month ago by Trappist the monk in topic CS1 error

Recent changes caused missing ending p tag in some cases

[edit]
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)Reply

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)Reply

Provision for TruthSocial?

[edit]

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)Reply

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

Time

[edit]

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.

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)Reply

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)Reply

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

[edit]

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.

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

{{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)Reply