Vorlage:Tweet/Doku: Unterschied zwischen den Versionen
(mention {{quote tweet}}) |
(update instructions) |
||
Zeile 1: | Zeile 1: | ||
{{ | {{Documentation subpage}} | ||
{{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}} }} | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
This template allows relevant tweets to be easily quoted within articles | {{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}}}} | ||
This template allows relevant tweets to be easily quoted within articles with a citation automatically generated, using {{tlx|cite tweet}}. | |||
Using this template is better than a screen-shot of a tweet because the text is [[WP:ACCESSIBLE|accessible]] to screen readers. | Using this template is better than a screen-shot of a tweet because the text is [[WP:ACCESSIBLE|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}}. | ||
== Full blank syntax == | ==Usage== | ||
<pre> | === Full blank syntax === | ||
<pre style="overflow:auto;"> | |||
{{tweet | {{tweet | ||
|name = | |||
|name = | |username = | ||
|username = | |replyto = | ||
|lang = | |||
|text = | |||
|replyto = | |translation = | ||
| | |date = | ||
| | |ID = | ||
| | |reference = | ||
| | |archive-url = | ||
| | |archive-date = | ||
|url-status = | |||
|reference = | |image = | ||
|archive-url = | |block = | ||
|archive-date = | |left = | ||
|url-status = | |width = | ||
}} | }} | ||
</pre> | </pre> | ||
== | ===Parameters=== | ||
* {{para|name}} user's name as it appears at the top of the tweet | |||
* {{para|username}} user's @ handle (without the @) | |||
* {{para|replyto}} optional: username tweet is replying to | |||
* {{para|lang}} optional: language code of the tweet if non-English | |||
* {{para|text}} content of the tweet | |||
* {{para|translation}} optional: English translation of tweet if original tweet non-English | |||
* {{para|date}} date of the tweet formatted according to MOS:DATE, should be used with tweets posted before November 4, 2010 | |||
* {{para|ID}} number at the end of the tweet URL | |||
* {{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. | |||
* {{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 (text above and below, doesn't flow around). | |||
* {{para|left}} optional: any value makes tweet aligned left | |||
* {{para|width}} optional: custom tweet width | |||
== Examples == | |||
<pre><nowiki> | <pre><nowiki> | ||
{{tweet | {{tweet | ||
Zeile 108: | Zeile 129: | ||
}} | }} | ||
{{clear}} | {{clear}} | ||
==TemplateData== | ==TemplateData== | ||
<templatedata> | <templatedata> | ||
Zeile 204: | Zeile 226: | ||
{{reflist}} | {{reflist}} | ||
<includeonly>{{ | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Quotation templates]] | [[Category:Quotation templates]] | ||
}}</includeonly> | }}</includeonly> |