Vorlage:Tweet/Doku: Unterschied zwischen den Versionen

K
Xineohp1506 verschob die Seite Vorlage:Tweet/doc nach Vorlage:Tweet/Doku, ohne dabei eine Weiterleitung anzulegen
(use dummy reference)
K (Xineohp1506 verschob die Seite Vorlage:Tweet/doc nach Vorlage:Tweet/Doku, ohne dabei eine Weiterleitung anzulegen)
 
(43 dazwischenliegende Versionen von 18 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{tweet|name=Example|username=example|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.|date=12 Jul 2017|reference={{dummy reference}} }}
{{Documentation subpage}}
This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using {{tlx|cite tweet}}.
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Tweet|name=Example|username=example|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.|date=12 Jul 2017|reference={{dummy reference}}}}


Using this template is better than a screen-shot of a tweet because the text is [[WP:ACCESSIBLE|accessible]] to screen readers.
This template allows relevant tweets to be easily quoted within articles with a citation automatically generated, using {{tlx|cite tweet}}.


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.
Using this template is better than a screen-shot of a tweet because the text is [[Wikipedia:Manual of Style/Accessibility|accessible]] to screen readers.


== Full blank syntax ==
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 {{tl|quote tweet}}; alternatively, simply pass the quoted tweet, as a second Tweet template, to the <code>|reference=</code> parameter in this template.
<pre>
 
{{tweet
==Usage==
|text =           [content of the tweet]
=== Full blank syntax ===
|name =           [user's name as it appears at the top of the tweet]
<pre style="overflow:auto;">
|username =       [user's @ handle]
{{Tweet
|date =           [date of the tweet formatted according to MOS:DATE]
| name =
|ID =             [number at the end of the tweet URL]
| username =
|replyto =       [optional: username tweet is replying to]
| replyto =
|image =         [optional: image or logo associated with twitter account]
| lang =  
|unverified =     [optional: any value results in removal of verified check mark]
| text =  
|left =           [optional: any value makes tweet aligned left]
| translation =  
|block =         [optional: any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter]
| date =  
|width =         [optional: custom tweet width]
| ID =  
|reference =     [optional: {{tweet}} automatically creates a reference, but one can be provided to use instead. See 2nd example.]
| reference =
| archive-url =  
| archive-date =  
| url-status =  
| image =  
| block =  
| left =  
| width =  
}}
}}
</pre>
</pre>


== Example usage: ==
===Parameters===
<pre><nowiki>
* {{para|name}} user's name as it appears at the top of the tweet
{{tweet
* {{para|username}} user's @ handle (without the @)
|text=@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
* {{para|replyto}} optional: username tweet is replying to
|name=NASA
* {{para|lang}} optional: language code of the tweet if non-English
|username=NASA
* {{para|text}} content of the tweet
|date=Aug 2, 2014
* {{para|translation}} optional: English translation of tweet if original tweet non-English
|ID=495719809695621121
* {{para|date}} date of the tweet formatted according to MOS:DATE, should be used with tweets posted before November 4, 2010
|replyto=WilliamShatner
* {{para|ID}} number at the end of the tweet URL
|image=NASA logo.svg
* {{para|reference}} optional: the template automatically creates a reference, but one can be provided to use instead. See 2nd example.
}}
* {{para|archive-url}} optional: URL of an archived copy of the tweet. Ignored if {{para|reference}} is used.
</nowiki></pre>
* {{para|archive-date}} optional: date of the archived copy. Ignored if {{para|reference}} is used.
* {{para|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 {{para|reference}} is used.
* {{para|image}} optional: image or logo associated with Twitter account
* {{para|block}} optional: any value displays tweet as block with 500px width as default (text above and below, doesn't flow around).
* {{para|left}} optional: any value makes tweet aligned left
* {{para|width}} optional: custom tweet width, default is 220px
 
== Examples ==
===Tweets in english===
{{nowiki template demo|code=<nowiki>{{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
}}</nowiki>}}
{{clear}}
{{clear}}
{{tweet
 
|text=@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
{{nowiki template demo|code=<nowiki>{{Tweet
|name=NASA
| name = René Descartes
|username=NASA
| username = descartes
|date=Aug 2, 2014
| lang = la
|ID=495719809695621121
| text = Dubito, ergo cogito, ergo sum
|replyto=WilliamShatner
| translation = I doubt, therefore I think, therefore I am
|image=NASA logo.svg
| date = 1 January 1637
}}
| ref = {{dummy reference|2}}
| block = yes
}}</nowiki>}}
{{clear}}
{{clear}}
<pre><nowiki>
 
{{tweet
===Tweets in another language===
|text=Despite the constant negative press covfefe
It is possible to include tweets written in another language other than English by adding the <code>language</code> parameter and including the [[List of ISO 639-1 codes]] of the language.
|name=Donald J. Trump
 
|username=realDonaldTrump
{{nowiki template demo|code=<nowiki>{{Tweet
|date=30 May 2017
| name = Wikipédia em português
|ID=869766994899468288
| username = wikipt
|left=yes
| text = Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite
|reference={{dummy reference}}
| date = 8 February 2022
| ID = 1491109619363729410
| image = Wikipedia-logo-v2-pt.svg
| left = yes
| width= 240px
| language = pt
}}
}}
</nowiki></pre>
</nowiki>}}
{{clear}}
{{clear}}
{{tweet
 
|text=Despite the constant negative press covfefe
It's also possible to translate the tweet.
|name=Donald J. Trump
 
|username=realDonaldTrump
{{nowiki template demo|code=<nowiki>{{Tweet
|date=30 May 2017
| name = Wikipédia em português
|ID=869766994899468288
| username = wikipt
|left=yes
| text = Você sabia que... ...são necessárias de 1300 a 2000 azeitonas para produzir apenas 250 mililitros de azeite? Leia mais na Wikipédia: https://pt.wikipedia.org/wiki/Azeite
|reference=<ref>custom reference</ref>
| translation = Did you know... that it is necessary to have 1300 to 2000 olives to produce only 250 mililiters of olive oil? Read more about it on Wikipedia: https://pt.wikipedia.org/wiki/Azeite
| date = 8 February 2022
| ID = 1491109619363729410
| image = Wikipedia-logo-v2-pt.svg
| left = yes
| width= 240px
| language = pt
}}
}}
</nowiki>}}
{{clear}}
{{clear}}
<pre><nowiki>
{{tweet
|name=Donald J. Trump
|username=realDonaldTrump
|date=Jan 5 2018
|text=I authorized Zero access to White House (actually turned him down many times) for author of phony book! I never spoke to him for book. Full of lies, misrepresentations and sources that don't exist. Look at this guy's past and watch what happens to him and Sloppy Steve [Bannon]!
|reference=<ref name="zero">{{cite web |url=http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |first=Ryan |last=Gaydos |title=Trump tweets explosive White House tell-all 'full of lies'|date=January 5, 2018 |website=Fox News |accessdate=January 5, 2018 |deadurl=no|archiveurl=https://web.archive.org/web/20180105122005/http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |archivedate=January 5, 2018 |df=mdy-all}}</ref>
|block=yes
|width=600px
}}
</nowiki></pre>
{{clear}}
{{tweet|name=Donald J. Trump|username=realDonaldTrump|date=Jan 5 2018|text=I authorized Zero access to White House (actually turned him down many times) for author of phony book! I never spoke to him for book. Full of lies, misrepresentations and sources that don't exist. Look at this guy's past and watch what happens to him and Sloppy Steve [Bannon]!|reference=<ref name="zero">{{cite web |url=http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |first=Ryan |last=Gaydos |title=Trump tweets explosive White House tell-all 'full of lies'|date=January 5, 2018 |website=Fox News |accessdate=January 5, 2018 |deadurl=no|archiveurl=https://web.archive.org/web/20180105122005/http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |archivedate=January 5, 2018 |df=mdy-all}}</ref>|block=yes|width=600px}}


==TemplateData==
==TemplateData==
Zeile 148: Zeile 175:
"description": "Image or logo associated with twitter account",
"description": "Image or logo associated with twitter account",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
"unverified": {
"label": "unverified",
"description": "Any value results in removal of verified check mark",
"type": "string"
},
},
"replyto": {
"replyto": {
Zeile 158: Zeile 180:
"description": "Username the tweet is replying to",
"description": "Username the tweet is replying to",
"type": "string"
"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."
"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"
}
}
</templatedata>
</templatedata>


== Refs ==
==See also==
{{reflist}}
* {{tl|Cite tweet}} – for citing tweets
* {{tl|Quote tweet}} – for tweets that quote another tweet
 
== References ==
{{Reflist}}


<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Quotation templates]]
[[Category:Quotation templates]]
}}</includeonly>