साँचा:ट्विट
date parameter should be to look like:
1 Jan 1970 or Jan 1, 1970
or removed.
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 metadata related to 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 second 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
संपादित करें{{ट्विट}}
{{ट्विट/sandbox}}
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.
{{ट्विट}}
{{ट्विट/sandbox}}
It's also possible to translate the tweet.
{{ट्विट}}
{{ट्विट/sandbox}}
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 | कोई विवरण नहीं | अज्ञात | वैकल्पिक |
style | style | कोई विवरण नहीं | अज्ञात | वैकल्पिक |
See also
संपादित करें- {{Cite tweet}} – for citing tweets
- {{Quote tweet}} – for tweets that quote another tweet
References
संपादित करें ऊपर दिए गए निर्देश साँचा:ट्विट/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (edit | diff) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |