Vorlage:Tweet/Doku: Unterschied zwischen den Versionen

K
Xineohp1506 verschob die Seite Vorlage:Tweet/doc nach Vorlage:Tweet/Doku, ohne dabei eine Weiterleitung anzulegen
(→‎Parameters: stated the values for the parameter)
K (Xineohp1506 verschob die Seite Vorlage:Tweet/doc nach Vorlage:Tweet/Doku, ohne dabei eine Weiterleitung anzulegen)
 
(11 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 7: Zeile 7:
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.
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.


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


==Usage==
==Usage==
Zeile 14: Zeile 14:
{{Tweet
{{Tweet
| name =  
| name =  
| verified =     
| username =  
| username =  
| replyto =  
| replyto =  
Zeile 35: Zeile 34:
===Parameters===
===Parameters===
* {{para|name}} user's name as it appears at the top of the tweet
* {{para|name}} user's name as it appears at the top of the tweet
* {{Para|verified}} optional: yes or no if a blue icon appeared on the right of name
* {{para|username}} user's @ handle (without the @)
* {{para|username}} user's @ handle (without the @)
* {{para|replyto}} optional: username tweet is replying to
* {{para|replyto}} optional: username tweet is replying to
Zeile 53: Zeile 51:


== Examples ==
== Examples ==
===Tweets in english===
{{nowiki template demo|code=<nowiki>{{Tweet
{{nowiki template demo|code=<nowiki>{{Tweet
| name = NASA
| name = NASA
| verified = yes
| username = NASA
| username = NASA
| replyto = WilliamShatner
| replyto = WilliamShatner
Zeile 76: Zeile 74:
| block = yes
| block = yes
}}</nowiki>}}
}}</nowiki>}}
{{clear}}
===Tweets in another language===
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.
{{nowiki template demo|code=<nowiki>{{Tweet
| name = Wikipédia em português
| username = wikipt
| 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
| date = 8 February 2022
| ID = 1491109619363729410
| image = Wikipedia-logo-v2-pt.svg
| left = yes
| width= 240px
| language = pt
}}
</nowiki>}}
{{clear}}
It's also possible to translate the tweet.
{{nowiki template demo|code=<nowiki>{{Tweet
| name = Wikipédia em português
| username = wikipt
| 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
| 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}}