Template:Tweet/doc

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 with a citation automatically generated, using.

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). For quote tweets, use quote tweet.

Full blank syntax


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 2nd 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

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

It's also possible to translate the tweet.

TemplateData
{	"params": { "block": { "label": "block", "description": "Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter", "type": "string" },		"width": { "label": "width", "description": "Custom tweet width", "example": "300px", "type": "string" },		"left": { "label": "left", "description": "Any value makes tweet aligned left", "type": "string" },		"name": { "label": "name", "description": "User's name as it appears at the top of the tweet", "type": "string", "required": true },		"username": { "label": "username", "description": "User's Twitter handle. Do not include the @ symbol.", "required": true },		"date": { "label": "date", "description": "Date of the tweet formatted according to MOS:DATE", "type": "date", "required": true },		"text": { "label": "text", "description": "Content of the tweet", "type": "string", "required": true },		"ID": { "aliases": [ "id" ],			"label": "ID", "description": "The number at the end of the tweet URL", "type": "number", "suggested": true },		"reference": { "label": "reference", "description": "A custom reference can be provided to use instead of the automatically generated one", "example": " ", "aliases": [ "ref" ],			"type": "string" },		"image": { "label": "image", "description": "Image or logo associated with twitter account", "type": "wiki-file-name" },		"replyto": { "label": "replyto", "description": "Username the tweet is replying to", "type": "string" },		"lang": { "label": "lang", "description": "language code of original tweet", "example": "de", "type": "string", "aliases": [ "language" ]		},		"translation": { "label": "translation", "description": "english translation of the tweet" },		"nocategory": {}, "archive-url": {}, "archive-date": {}, "url-status": {} },	"description": "This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using the template, \"cite tweet\".\n\nUsing this template is better than a screen-shot of a tweet because the text is accessible to screen readers.\n\nIt 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.", "format": "block" }