Template:Tweet/doc

From Bharatpedia, an open encyclopedia

Error: no shortcuts were specified and the |msg= parameter was not set.

Example 𝕏
@example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.

12 Jul 2017[1]

Example 𝕏
@example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.

24 Jul 2023[1]

This template allows easy quoting within articles of tweets from Twitter (now X). A citation is automatically generated using {{cite tweet}}. This template should be used instead of a screenshot of a tweet or post per MOS:TEXTASIMAGES:

Textual information should always be transmitted as text, rather than in an image, so that it can be easily searched, selected, copied, and manipulated by readers. These tasks are generally difficult or impossible with text presented in an image: images are slower to download and generally cannot be searched or processed by screen readers used by the visually impaired. Any important textual information in an image should be provided somewhere as text, generally either in the image's caption or alt text.

It is an alternative to standard quotation templates because it displays metadata related to the tweet (date of posting, user's name, user's handle, etc.). For quote tweets, use {{quote tweet}}.

Usage

Full blank syntax

{{Tweet
| name = 
| username = 
| replyto = 
| lang = 
| text = 
| embed =
| translation = 
| date = 
| ID = 
| reference = 
| archive-url = 
| archive-date = 
| url-status = 
| image = 
| block = 
| left = 
| width = 
| style =
}}

Parameters

  • |name= user's name as it appears at the top of the tweet
  • |username= user's @ handle (without the @)
  • |replyto= optional: username tweet is replying to
  • |lang= optional: language code of the tweet if non-English
  • |text= content of the tweet
  • |embed= embeds in the tweet
  • |translation= optional: English translation of tweet if original tweet non-English
  • |date= required: date of the tweet formatted according to MOS:DATE; should be used with tweets posted before November 4, 2010. If the date is after 23 July 2023 the template will mark it as an X post.
  • |ID= number at the end of the tweet URL
  • |reference= optional: the template automatically creates a reference, but one can be provided to use instead. See second example.
  • |archive-url= optional: URL of an archived copy of the tweet. Ignored if |reference= is used.
  • |archive-date= optional: date of the archived copy. Ignored if |reference= is used.
  • |url-status= optional: if set to 'live', the title displays as the live link; if set to 'dead', the title displays as the archive link. Ignored if |reference= is used.
  • |image= optional: image or logo associated with Twitter account
  • |block= optional: any value displays tweet as block with 500px width as default (text above and below, doesn't flow around).
  • |left= optional: any value makes tweet aligned left
  • |width= optional: custom tweet width, default is 220px
  • |style= optional: custom style

Examples

Tweets in English

{{Tweet
| name = NASA
| username = NASA
| replyto = WilliamShatner
| text = @WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!
| date = Aug 2, 2014
| ID = 495719809695621121
| image = NASA logo.svg
| left = yes
}}
NASA logo.svg
NASA 𝕏
@NASA

Replying to @WilliamShatner

@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!

Aug 2, 2014[1]

Tweets in another language

It is possible to include tweets written in another language other than English by adding the language parameter and including the List of ISO 639-1 codes of the language.

{{Tweet
| name = பாரத்ப்பீடியா
| username = ta_bharatpedia
| text = இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! 
படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு ! 
| date = 6 May 2022
| ID = 1522454841171140611
| image = 
| left = yes
| width= 240px
| language = ta
}}
பாரத்ப்பீடியா 𝕏
@ta_bharatpedia

Tamil: இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு !

6 May 2022[2]

It's also possible to translate the tweet.

{{Tweet
| name = பாரத்ப்பீடியா
| username = ta_bharatpedia
| text = இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! 
படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு ! 
| translation = भारत का पहला और एकमात्र निःशुल्क विश्वकोश #பாரத்ப்பீடியா अब तमिल में है ! पढ़ने और सम्पादित करने के लिए अब ta.bharatpedia.org पर जाएँ !

India's first and only free encyclopedia #பாரத்ப்பீடியா is now in Tamil! Go to hta.bharatpedia.org now to read and edit!
| date = 6 May 2022
| ID = 1522454841171140611
| image = 
| left = yes
| width= 240px
| language = pt
}}
பாரத்ப்பீடியா 𝕏
@ta_bharatpedia

Portuguese: இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு !


भारत का पहला और एकमात्र निःशुल्क विश्वकोश #பாரத்ப்பீடியா अब तमिल में है ! पढ़ने और सम्पादित करने के लिए अब ta.bharatpedia.org पर जाएँ !

India's first and only free encyclopedia #பாரத்ப்பீடியா is now in Tamil! Go to hta.bharatpedia.org now to read and edit!

6 May 2022[3]

Additional tweets by the same author require ref-name

{{Tweet
| name = NASA
| username = NASA
| date = Aug 15, 2024
| text = Our @NASAPersevere rover is about to start the next stage of its Mars mission—a monthslong climb up the western rim of Jezero Crater: https://go.nasa.gov/4dJSylR
| ID = 1824159896255816168
| image = NASA logo.svg
| left = yes
| ref-name = TweetNASA_2
}}
NASA logo.svg
NASA 𝕏
@NASA

Our @NASAPersevere rover is about to start the next stage of its Mars mission—a monthslong climb up the western rim of Jezero Crater: https://go.nasa.gov/4dJSylR

Aug 15, 2024[4]

TemplateData

This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using the template, "cite tweet". Using this template is better than a screen-shot of a tweet because the text is accessible to screen readers. It is an alternative to standard quotation templates because it displays all relevant information about the tweet (date of posting, user's name, user's handle, etc) in a way that reflects Twitter's design language. For quote tweets use Template:Quote tweet.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
blockblock

Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter

Stringoptional
widthwidth

Custom tweet width

Example
300px
Stringoptional
leftleft

Any value makes tweet aligned left

Stringoptional
namename

User's name as it appears at the top of the tweet

Stringrequired
usernameusername

User's Twitter handle. Do not include the @ symbol.

Unknownrequired
datedate

Date of the tweet formatted according to MOS:DATE

Daterequired
texttext

Content of the tweet

Stringrequired
embedembed

Embeds in the tweet

Stringoptional
IDID id

The number at the end of the tweet URL

Numbersuggested
referencereference ref

A custom reference can be provided to use instead of the automatically generated one

Example
<ref>custom reference</ref>
Stringoptional
imageimage

Image or logo associated with twitter account

Fileoptional
replytoreplyto

Username the tweet is replying to

Stringoptional
langlang language

language code of original tweet

Example
de
Stringoptional
translationtranslation

English translation of the tweet

Unknownoptional
nocategorynocategory

no description

Unknownoptional
archive-urlarchive-url

no description

Unknownoptional
archive-datearchive-date

no description

Unknownoptional
url-statusurl-status

no description

Unknownoptional
stylestyle

no description

Unknownoptional
Named reference idref-name

Overrides the autogenerated named reference ID. This is useful for fixing errors caused by two tweets by the same author

Default
Tweet{{{username}}}
Example
TweetUsername_2
Stringoptional

See also

References

  1. NASA [@NASA] (Aug 2, 2014). "@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!" (Tweet) – via Twitter.
  2. பாரத்ப்பீடியா [@ta_bharatpedia] (6 May 2022). "இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு !" (Tweet) – via Twitter.
  3. பாரத்ப்பீடியா [@ta_bharatpedia] (6 May 2022). "இந்தியாவின் முதல் மற்றும் ஒரே இலவச கலைக்களஞ்சியம் #பாரத்ப்பீடியா இப்போது தமிழில்! படிக்க , தொகுக்க இப்போதே செல்லுங்கள் ta.bharatpedia.org க்கு !" (Tweet) – via Twitter.
  4. NASA [@NASA] (Aug 15, 2024). "Our @NASAPersevere rover is about to start the next stage of its Mars mission—a monthslong climb up the western rim of Jezero Crater: go.nasa.gov/4dJSylR" (Tweet) – via Twitter.