Vorlage:Tweet/Doku
Dies ist eine nachgeordnete Seite der Dokumentation von Vorlage:Tweet. Sie enthält Informationen zur Verwendung, Kategorisierung und zu anderem Inhalt, der nicht Bestandteil der originalen Vorlage-Seite ist. |
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 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 |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 |ID=495719809695621121 |replyto=WilliamShatner |image=NASA logo.svg }}
NASA @NASA Replying to @WilliamShatner
@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you’re having a great weekend!
Aug 2, 2014[1]
{{tweet |text=Despite the constant negative press covfefe |name=Donald J. Trump |username=realDonaldTrump |date=30 May 2017 |ID=869766994899468288 |left=yes |reference={{dummy reference}} }}
Donald J. Trump @realDonaldTrump Despite the constant negative press covfefe
30 May 2017[1]
{{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 }}
Donald J. Trump @realDonaldTrump 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]!
Jan 5 2018[1]
{{tweet |text=Dubito, ergo cogito, ergo sum |lang=la |translation=I doubt, therefore I think, therefore I am |username=descartes |name=René Descartes |ref=example |date=1637 }}
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.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
block | block | Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter | Mehrzeiliger Text | optional |
width | width | Custom tweet width
| Mehrzeiliger Text | optional |
left | left | Any value makes tweet aligned left | Mehrzeiliger Text | optional |
name | name | User's name as it appears at the top of the tweet | Mehrzeiliger Text | erforderlich |
username | username | User's Twitter handle. Do not include the @ symbol. | Unbekannt | erforderlich |
date | date | Date of the tweet formatted according to MOS:DATE | Datum | erforderlich |
text | text | Content of the tweet | Mehrzeiliger Text | erforderlich |
ID | ID id | The number at the end of the tweet URL | Zahlenwert | vorgeschlagen |
reference | reference ref | A custom reference can be provided to use instead of the automatically generated one
| Mehrzeiliger Text | optional |
image | image | Image or logo associated with twitter account | Datei | optional |
replyto | replyto | Username the tweet is replying to | Mehrzeiliger Text | optional |
lang | lang language | language code of original tweet
| Mehrzeiliger Text | optional |
translation | translation | english translation of the tweet | Unbekannt | optional |
See also
- {{Quote tweet}} – for tweets that quote another tweet
- {{Cite tweet}} – for citing tweets
Refs
- ↑ NASA [@NASA] (Aug 2, 2014). "@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!" (Tweet) – via Twitter.
- ↑ example