Template:Tweet
Notes[edit source]
Using this template is better than a screenshot of a tweet because the text is accessible to screen readers and searchable.
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).
This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using {{cite tweet}}
.
Example[edit source]
{{tweet | last = Smith | first = Frank | authorlink = Frank Smith | user = fsmith152 | text = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus. | date = Jul 12, 2022 | url = https://twitter.com/fsmith152/1234567890123456 }} {{clear|both}}
{{#if: |
Frank Smith via Twitter @fsmith152 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.
Jul 12, 2022 |[1]
Full blank syntax[edit source]
{{tweet | title = [content of the tweet] |last = [user's last name as it appears at the top of the tweet] |first = [user's first name] |user = [user's @ handle, without the @] |date = [date of the tweet formatted as mm d, yyy] |id = [optional: number at the end of the tweet URL if no URL was given] |replyto = [optional: username tweet is replying to] |image = [optional: image or logo associated with twitter account] |left = [optional: any value makes tweet aligned left] |block = [optional: any value displays tweet as block (text above and below, doesn't flow around).] |width = [optional: custom tweet width] |reference = [optional: {{tweet}} automatically creates a reference, but one can be provided to use instead. See 2nd example.] |lang = [optional: language code of the tweet if non-English] |translation = [optional: English translation of tweet if original tweet non-English] }}
Example usage:[edit source]
{{tweet
|text=It's #MotivationalMondayOMF! Today's quote is from Dr. Anthony Komaroff, who shared his optimistic views on the current state Of ME/CFS research at OMF'S recent Inaugural Harvard Science Public Symposium.
|author=Open Medicine Foundation
|user=OpenMedF
|date=Jun 17, 2019
|id=1140639854071603200
|image=OMF.png
}}
{{#if: OMF.png |
{{{first1}}} Open Medicine Foundation via Twitter @OpenMedF It's #MotivationalMondayOMF! Today's quote is from Dr. Anthony Komaroff, who shared his optimistic views on the current state Of ME/CFS research at OMF'S recent Inaugural Harvard Science Public Symposium.
Jun 17, 2019 |[2]
{{tweet
|text=Longitudinal metabolomics study reveals significant variations between ME/CFS patients with Chris Armstrong, Stanford, USA #mecfs #research #MEConferenceWeek2019
|author=Invest in ME Research
|user=Invest_in_ME
|date=May 29, 2019
|id=1133766902013136896
|left=yes
|reference={{dummy reference}}
}}
{{#if: |
{{{first1}}} Invest in ME Research via Twitter @Invest_in_ME Longitudinal metabolomics study reveals significant variations between ME/CFS patients with Chris Armstrong, Stanford, USA #mecfs #research #MEConferenceWeek2019
May 29, 2019 |[3]
{{tweet
|last=UK ME/CFS Biobank
|user=mecfsbiobank
|date=Apr 12, 2019
|text=A brilliant article, from our friend Dr Nina Muirhead, on being a doctor with #MECFS. Thanks to @RCPLondon for sharing. #pwME
| url = https://twitter.com/mecfsbiobank/1234567890123456 }}
{{tweet |last=UK ME/CFS Biobank |user=mecfsbiobank |date=Apr 12, 2019 |text=A brilliant article, from our friend Dr Nina Muirhead, on being a doctor with #MECFS. Thanks to @RCPLondon for sharing. #pwME | url = https://twitter.com/mecfsbiobank/1234567890123456
{{tweet |text=Dubito, ergo cogito, ergo sum |lang= |translation=I doubt, therefore I think, therefore I am |user=descartes |author=René Descartes |ref=<ref>https://tinyurl.com/test</ref> |date=1637 }}
{{#if: |
{{{first1}}} René Descartes via Twitter @descartes Dubito, ergo cogito, ergo sum
I doubt, therefore I think, therefore I am
1637 |[4]
References[edit source]
- ↑ Frank Smith [@fsmith152] (July 12, 2022). "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus" (Tweet) – via Twitter. Missing or empty
|url=
(help) Missing or empty |id or url= (help) - ↑ {{{first1}}} Open Medicine Foundation [@OpenMedF] (June 17, 2019). "It's #MotivationalMondayOMF! Today's quote is from Dr. Anthony Komaroff, who shared his optimistic views on the current state Of ME/CFS research at OMF'S recent Inaugural Harvard Science Public Symposium" (Tweet) – via Twitter. Missing or empty
|url=
(help) Missing or empty |id or url= (help) - ↑ {{{first1}}} Invest in ME Research [@Invest_in_ME] (May 29, 2019). "Longitudinal metabolomics study reveals significant variations between ME/CFS patients with Chris Armstrong, Stanford, USA #mecfs #research #MEConferenceWeek2019" (Tweet) – via Twitter. Missing or empty
|url=
(help) Missing or empty |id or url= (help) - ↑ {{{first1}}} René Descartes [@descartes] (1637). "Dubito, ergo cogito, ergo sum" (Tweet) – via Twitter. Missing or empty
|url=
(help) Missing or empty |id or url= (help)
TemplateData[edit source]
Quote tweet within article, 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
block | block | Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter | String | optional |
width | width | Custom tweet width
| String | optional |
left | left | Any value makes tweet aligned left | String | optional |
last name or organization name | last last1 author name | User's name as it appears at the top of the tweet | String | required |
first name | first first1 | User's name as it appears at the top of the tweet | String | suggested |
twitter user, without @ | user username | User's Twitter handle. Do not include the @ symbol. | Unknown | required |
date | date | Date of the tweet formatted according to MOS:DATE | Date | required |
text | title text | Content of the tweet | String | required |
ID | id ID | The number at the end of the tweet URL | Number | suggested |
reference | reference ref | A custom reference can be provided to use instead of the automatically generated one
| String | optional |
image | image | Image or logo associated with twitter account | File | optional |
replyto | replyto | Username the tweet is replying to | String | optional |
lang | lang language | language code of original tweet
| String | optional |
translation | translation | English translation of the tweet
| String | optional |
The above documentation is transcluded from Template:Tweet/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |