Example ทวิตเตอร์
@example

12 Jul 2017[1]

This template allows relevant tweets to be easily quoted within articles with a citation automatically generated, using {{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 metadata related to the tweet (date of posting, user's name, user's handle, etc.). For quote tweets, use {{quote tweet}}; alternatively, simply pass the quoted tweet, as a second Tweet template, to the |reference= parameter in this template.

Usage แก้

Full blank syntax แก้

{{Tweet
| name = 
| username = 
| replyto = 
| lang = 
| text = 
| 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
  • |translation= optional: English translation of tweet if original tweet non-English
  • |date= date of the tweet formatted according to MOS:DATE, should be used with tweets posted before November 4, 2010
  • |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 ทวิตเตอร์
@NASA

Replying to @WilliamShatner

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 = Wikipédia em português
| username = wikipt
| text = Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite
| date = 8 February 2022
| ID = 1491109619363729410
| image = Wikipedia-logo-v2-pt.svg
| left = yes
| width= 240px
| language = pt
}}
Wikipédia em português ทวิตเตอร์
@wikipt

โปรตุเกส: Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite

8 February 2022[2]

It's also possible to translate the tweet.

{{Tweet
| name = Wikipédia em português
| username = wikipt
| text = Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite
| translation = Did you know... that it is necessary to have 1300 to 2000 olives to produce only 250 mililiters of olive oil? Read more about it on Wikipedia: https://pt.wikipedia.org/wiki/Azeite
| date = 8 February 2022
| ID = 1491109619363729410
| image = Wikipedia-logo-v2-pt.svg
| left = yes
| width= 240px
| language = pt
}}
Wikipédia em português ทวิตเตอร์
@wikipt

โปรตุเกส: Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite


Did you know... that it is necessary to have 1300 to 2000 olives to produce only 250 mililiters of olive oil? Read more about it on Wikipedia: https://pt.wikipedia.org/wiki/Azeite

8 February 2022[3]

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.

พารามิเตอร์แม่แบบ

This template prefers block formatting of parameters.

พารามิเตอร์คำอธิบายชนิดสถานะ
blockblock

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

สตริงเลือกได้
widthwidth

Custom tweet width

ตัวอย่าง
300px
สตริงเลือกได้
leftleft

Any value makes tweet aligned left

สตริงเลือกได้
namename

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

สตริงจำเป็น
usernameusername

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

ไม่ทราบชนิดจำเป็น
datedate

Date of the tweet formatted according to MOS:DATE

วันที่จำเป็น
texttext

Content of the tweet

สตริงจำเป็น
IDID id

The number at the end of the tweet URL

จำนวนแนะนำ
referencereference ref

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

ตัวอย่าง
<ref>custom reference</ref>
สตริงเลือกได้
imageimage

Image or logo associated with twitter account

ไฟล์เลือกได้
replytoreplyto

Username the tweet is replying to

สตริงเลือกได้
langlang language

language code of original tweet

ตัวอย่าง
de
สตริงเลือกได้
translationtranslation

English translation of the tweet

ไม่ทราบชนิดเลือกได้
nocategorynocategory

ไม่มีคำอธิบาย

ไม่ทราบชนิดเลือกได้
archive-urlarchive-url

ไม่มีคำอธิบาย

ไม่ทราบชนิดเลือกได้
archive-datearchive-date

ไม่มีคำอธิบาย

ไม่ทราบชนิดเลือกได้
url-statusurl-status

ไม่มีคำอธิบาย

ไม่ทราบชนิดเลือกได้
stylestyle

ไม่มีคำอธิบาย

ไม่ทราบชนิดเลือกได้

ดูเพิ่ม แก้

  • {{Cite tweet}} – สำหรับการอ้างถึงทวีต
  • {{Quote tweet}} – สำหรับทวีตที่อ้างอิงถึงทวีตอื่น

อ้างอิง แก้

  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!" (ทวีต) – โดยทาง ทวิตเตอร์.
  2. Wikipédia em português [@wikipt] (8 February 2022). "Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: pt.wikipedia.org/wiki/Azeite" (ทวีต) – โดยทาง ทวิตเตอร์.
  3. Wikipédia em português [@wikipt] (8 February 2022). "Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: pt.wikipedia.org/wiki/Azeite" (ทวีต) – โดยทาง ทวิตเตอร์.