Template:Tweet
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
Example @example Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.
12 Jul 2017
This template allows relevant tweets to be easily quoted within articles.
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).
Usage
Full blank syntax
{{Tweet | name = | username = | replyto = | text = | translation = | date = | id = | reference = | image = | block = | left = | width = }}
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|text=
content of the tweet|translation=
optional: text content of tweet if original tweet used stylized characters|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|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
Examples
{{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
@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]
{{Tweet | name = René Descartes | username = descartes | text = Dubito, ergo cogito, ergo sum | date = 1 January 1637 | block = yes }}
René Descartes @descartes I doubt, therefore I think, therefore I am
1 January 1637
TemplateData
This template allows relevant tweets to be easily quoted within articles.
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 |
name | name | User's name as it appears at the top of the tweet | String | required |
username | 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 | text | Content of the tweet | String | required |
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 |
translation | translation | english translation of the tweet | Unknown | optional |