Example Twitter
@example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.

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 all relevant information about 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 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
  • |style= optional: custom style

Examples සංස්කරණය

Tweets in English සංස්කරණය

{{Tweet}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

{{Tweet/sandbox}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

{{Tweet}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

{{Tweet/sandbox}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[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}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

{{Tweet/sandbox}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

It's also possible to translate the tweet.

{{Tweet}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

{{Tweet/sandbox}}

Missing name parameter.
Missing username parameter.
Invalid date parameter.
Missing text parameter.
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
reference or ID parameter required.

Twitter
@

[1]

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.

Template parameters

This template prefers block formatting of 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
namename

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

Stringrequired
usernameusername

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

Unknownrequired
datedate

Date of the tweet formatted according to MOS:DATE

Daterequired
texttext

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

Unknownoptional
nocategorynocategory

no description

Unknownoptional
archive-urlarchive-url

no description

Unknownoptional
archive-datearchive-date

no description

Unknownoptional
url-statusurl-status

no description

Unknownoptional
stylestyle

no description

Unknownoptional

See also සංස්කරණය

References සංස්කරණය

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter. Missing or empty |number= (help); Missing or empty |date= (help)


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Tweet/doc&oldid=563712" වෙතින් සම්ප්‍රවේශනය කෙරිණි