قالب:Tweet/sandbox
This is the template sandbox page for قالب:Tweet (diff). |
Example | |
---|---|
@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}}.
Usage
Full blank syntax
{{Tweet | name = | verified = | username = | replyto = | lang = | text = | translation = | date = | ID = | reference = | archive-url = | archive-date = | url-status = | image = | block = | left = | width = }}
Parameters
|name=
user's name as it appears at the top of the tweet|verified=
optional: a blue icon appeared on the right of name|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
Examples
{{Tweet}}
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.
@ |
{{Tweet/sandbox}}
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.
@ |
{{Tweet}}
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.
@ |
{{Tweet/sandbox}}
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.
@ |
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.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
block | block | Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter | نص | اختياري |
width | width | Custom tweet width
| نص | اختياري |
left | left | Any value makes tweet aligned left | نص | اختياري |
name | name | User's name as it appears at the top of the tweet | نص | مطلوب |
username | username | User's Twitter handle. Do not include the @ symbol. | غير معروف | مطلوب |
date | date | Date of the tweet formatted according to MOS:DATE | تاريخ | مطلوب |
text | text | Content of the tweet | نص | مطلوب |
ID | ID id | The number at the end of the tweet URL | رقم | مقترح |
reference | reference ref | A custom reference can be provided to use instead of the automatically generated one
| نص | اختياري |
image | image | Image or logo associated with twitter account | ملف | اختياري |
replyto | replyto | Username the tweet is replying to | نص | اختياري |
lang | lang language | language code of original tweet
| نص | اختياري |
translation | translation | english translation of the tweet | غير معروف | اختياري |
nocategory | nocategory | دون وصف | غير معروف | اختياري |
archive-url | archive-url | دون وصف | غير معروف | اختياري |
archive-date | archive-date | دون وصف | غير معروف | اختياري |
url-status | url-status | دون وصف | غير معروف | اختياري |
See also
- {{Cite tweet}} – for citing tweets
- {{Quote tweet}} – for tweets that quote another tweet
References
- ^ @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter.
{{cite web}}
: Cite has empty unknown parameter:|dead-url=
(help) Missing or empty |number= (help); Missing or empty |date= (help) - ^ @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter.
{{cite web}}
: Cite has empty unknown parameter:|dead-url=
(help) Missing or empty |number= (help); Missing or empty |date= (help) - ^ @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter.
{{cite web}}
: Cite has empty unknown parameter:|dead-url=
(help) Missing or empty |number= (help); Missing or empty |date= (help) - ^ @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter.
{{cite web}}
: Cite has empty unknown parameter:|dead-url=
(help) Missing or empty |number= (help); Missing or empty |date= (help)
The above documentation is transcluded from قالب:Tweet/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |