Vorlage:Tweet/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(update TD)
(simplify examples)
Zeile 51: Zeile 51:


== Examples ==
== Examples ==
<pre><nowiki>
{{nowiki template demo|code=<nowiki>{{tweet
{{tweet
|text=@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
|name=NASA
|name=NASA
|username=NASA
|username=NASA
|date=Aug 2, 2014
|ID=495719809695621121
|replyto=WilliamShatner
|replyto=WilliamShatner
|image=NASA logo.svg
|text=@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!
}}
</nowiki></pre>
{{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!
|name=NASA
|username=NASA
|date=Aug 2, 2014
|date=Aug 2, 2014
|ID=495719809695621121
|ID=495719809695621121
|replyto=WilliamShatner
|image=NASA logo.svg
|image=NASA logo.svg
}}
{{clear}}
<pre><nowiki>
{{tweet
|text=Despite the constant negative press covfefe
|name=Donald J. Trump
|username=realDonaldTrump
|date=30 May 2017
|ID=869766994899468288
|left=yes
|left=yes
|reference={{dummy reference}}
}}</nowiki>}}
}}
</nowiki></pre>
{{clear}}
{{clear}}
{{tweet
 
|text=Despite the constant negative press covfefe
{{nowiki template demo|code=<nowiki>{{tweet
|name=Donald J. Trump
|name=René Descartes
|username=realDonaldTrump
|username=descartes
|date=30 May 2017
|ID=869766994899468288
|left=yes
|reference={{dummy reference}}
}}
{{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={{dummy reference}}
|block=yes
}}
</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={{dummy reference}}|block=yes}}
{{clear}}
<pre><nowiki>
{{tweet
|text=Dubito, ergo cogito, ergo sum
|lang=la
|lang=la
|translation=I doubt, therefore I think, therefore I am
|username=descartes
|name=René Descartes
|ref=example
|date=1637
}}
</nowiki></pre>
{{tweet
|text=Dubito, ergo cogito, ergo sum
|text=Dubito, ergo cogito, ergo sum
|lang=la
|translation=I doubt, therefore I think, therefore I am
|translation=I doubt, therefore I think, therefore I am
|username=descartes
|date=1 January 1637
|name=René Descartes
|ref={{dummy reference|2}}
|ref=<ref>example</ref>
}}</nowiki>}}
|date=Jan 1 1637
}}
{{clear}}
{{clear}}


Zeile 224: Zeile 168:


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


== Refs ==
== Refs ==
Zeile 233: Zeile 177:
<!-- Categories below this line; interwikis at Wikidata -->
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Quotation templates]]
[[Category:Quotation templates]]
}}</includeonly>
}}</includeonly>

Version vom 6. Februar 2021, 18:38 Uhr

Example Twitter
@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 = 
|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
  • |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 (text above and below, doesn't flow around).
  • |left= optional: any value makes tweet aligned left
  • |width= optional: custom tweet width

Examples

{{Tweet}}

Missing name parameter.
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.

Twitter
@

[1]

{{Tweet/sandbox}}

[2]

{{Tweet}}

Missing name parameter.
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.

Twitter
@

[1]

{{Tweet/sandbox}}

[3]

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.

Vorlagenparameter

ParameterBeschreibungTypStatus
blockblock

Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter

Mehrzeiliger Textoptional
widthwidth

Custom tweet width

Beispiel
300px
Mehrzeiliger Textoptional
leftleft

Any value makes tweet aligned left

Mehrzeiliger Textoptional
namename

User's name as it appears at the top of the tweet

Mehrzeiliger Texterforderlich
usernameusername

User's Twitter handle. Do not include the @ symbol.

Unbekannterforderlich
datedate

Date of the tweet formatted according to MOS:DATE

Datumerforderlich
texttext

Content of the tweet

Mehrzeiliger Texterforderlich
IDID id

The number at the end of the tweet URL

Zahlenwertvorgeschlagen
referencereference ref

A custom reference can be provided to use instead of the automatically generated one

Beispiel
<ref>custom reference</ref>
Mehrzeiliger Textoptional
imageimage

Image or logo associated with twitter account

Dateioptional
replytoreplyto

Username the tweet is replying to

Mehrzeiliger Textoptional
langlang language

language code of original tweet

Beispiel
de
Mehrzeiliger Textoptional
translationtranslation

english translation of the tweet

Unbekanntoptional
nocategorynocategory

keine Beschreibung

Unbekanntoptional
archive-urlarchive-url

keine Beschreibung

Unbekanntoptional
archive-datearchive-date

keine Beschreibung

Unbekanntoptional
url-statusurl-status

keine Beschreibung

Unbekanntoptional

See also

Refs

  1. 1,0 1,1 @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter. Missing or empty |number= (help)
  2. @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter. Missing or empty |number= (help)
  3. @{{{username}}}. "{{{text}}}" (Tweet) – via Twitter. Missing or empty |number= (help)