Template:Tweet/doc

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

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: |

[[File:|left|2em]]

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 |
2em
{{{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: |

[[File:|left|2em]]

{{{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: |

[[File:|left|2em]]

{{{first1}}} René Descartes via Twitter
@descartes

Dubito, ergo cogito, ergo sum


I doubt, therefore I think, therefore I am

1637 |[4]

References[edit source]

  1. 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)
  2. {{{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)
  3. {{{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)
  4. {{{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.

Template 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
last name or organization namelast last1 author name

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

Stringrequired
first namefirst first1

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

Stringsuggested
twitter user, without @user username

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

Unknownrequired
datedate

Date of the tweet formatted according to MOS:DATE

Daterequired
texttitle text

Content of the tweet

Stringrequired
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

Example
I think, therefore I am
Stringoptional