Vorlage:Quote tweet: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
K (32 Versionen von wpen:Template:Quote_tweet importiert) |
||
| (20 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<includeonly><blockquote class="{{#if:{{{left|}}}|floatleft|floatright}}" style="max-width: 100%; width: 500px; min-width: 220px; background-color: #F9F9F9; padding: 10px 10px 5px 10px; border-radius: 4px; border: 1px solid #dbdbdb; font-size: .9375rem; line-height: 1.3333; | |||
{{#if: {{{block|}}} | {{#if: {{{block|}}} | ||
|display: block; margin: 12.25px 40px; max-width: {{{width|500px}}}; | |display: block; margin: 12.25px 40px; max-width: {{{width|500px}}}; | ||
|{{#if: {{{left|}}} | |{{#if: {{{left|}}} | ||
|clear: left; float: left; margin: 0 | |clear: left; float: left; margin: 0 1.4em 0.8em 0; | ||
|clear: right; float: right; margin: 0 | |clear: right; float: right; margin: 0 0 0.8em 1.4em; | ||
}} max-width: {{{width|250px}}}; | }} max-width: {{{width|250px}}}; | ||
}}"> | }}"> | ||
| Zeile 61: | Zeile 61: | ||
</div> | </div> | ||
<blockquote class="{{#if:{{{left|}}}|floatleft|floatright}}" style="max-width: 100%; width: 500px; min-width: 220px; background-color: # | <blockquote class="{{#if:{{{left|}}}|floatleft|floatright}}" style="max-width: 100%; width: 500px; min-width: 220px; background-color: #F0F0F0; padding: 10px; border-radius: 4px; border: 1px solid #dbdbdb; font-size: .9375rem; line-height: 1.3333; | ||
{{#if: {{{block|}}} | {{#if: {{{block|}}} | ||
|display: block; margin: 12.25px 40px; max-width: {{{width|500px}}}; | |display: block; margin: 12.25px 40px; max-width: {{{width|500px}}}; | ||
|{{#if: {{{left|}}} | |{{#if: {{{left|}}} | ||
|clear: left; float: left; margin: 0 | |clear: left; float: left; margin: 0 1.4em 0 0; | ||
|clear: right; float: right; margin: 0 | |clear: right; float: right; margin: 0 0 0 1.4em; | ||
}} max-width: {{{width|220px}}}; | }} max-width: {{{width|220px}}}; | ||
}}"> | }}"> | ||
| Zeile 78: | Zeile 78: | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ID2|{{{id2|{{{reference2|{{{ | -->{{#if: {{{ID2|{{{id2|{{{reference2|{{{ref2|}}}}}}}}}}}} | ||
||{{Formatting error|<u> | ||{{Formatting error|<u>reference2</u> or <u>ID2</u> parameter required.<br>|nocategory={{{nocategory|}}}}} | ||
}} | }} | ||
<table role="presentation" style="line-height: 1em; width: 100%; font-size: 90%;"> | <table role="presentation" style="line-height: 1em; width: 100%; font-size: 90%;"> | ||
| Zeile 118: | Zeile 118: | ||
<div style="color: #4C545C; font-size: 90%;"> | <div style="color: #4C545C; font-size: 90%;"> | ||
{{{date2|}}}<!-- | {{{date2|}}}<!-- | ||
-->{{{reference2|{{{ | -->{{{reference2|{{{ref2 | ||
|{{#tag:ref|{{cite tweet|user= {{{username2}}} |author= {{{name2|}}} |number= {{{ID2|{{{id2|}}}}}} |date= {{#time: j M Y |{{{date2}}}}} |title= {{#invoke:String|replace|{{{text2}}}|%s+| |plain=false}} }} }} | |{{#tag:ref|{{cite tweet|user= {{{username2}}} |author= {{{name2|}}} |number= {{{ID2|{{{id2|}}}}}} |date= {{#time: j M Y |{{{date2}}}}} |title= {{#invoke:String|replace|{{{text2}}}|%s+| |plain=false}} }} }} | ||
}}}}}} | }}}}}} | ||
</div> | </div> | ||
</blockquote> | </blockquote> | ||
</blockquote | </blockquote></includeonly><noinclude>{{documentation}}</noinclude> | ||
<noinclude> | |||
{{documentation}} | |||
</noinclude> | |||
Aktuelle Version vom 8. Februar 2023, 17:20 Uhr
Usage
Template to display a quote tweet, i.e. a tweet that quotes another tweet. For ordinary tweets use {{tweet}}.
Sample usage:
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970.
Tweeter One @tweeter1 I totally disagree! Only the Mildly Spotty Party is a serious contender in this election.
14 Feb. 2026[1]
date parameter should be reformatted to look like:
1 Jan 1970 or Jan 1, 1970.
Tweeter 2 @tweeter2 Vote Very Spotty Party or risk a Stripy government.
14 Feb. 2026[2]
{{Quote tweet
|date=14 Feb. 2026|name=Tweeter One|username=tweeter1|id=20
|text=I totally disagree! Only the Mildly Spotty Party is a serious contender in this election.
|date2=14 Feb. 2026|name2=Tweeter 2|username2=tweeter2|id2=20
|text2=Vote Very Spotty Party or risk a Stripy government.
|image=User icon 1.svg|image2=User icon 3.svg
}}
References (sample)
- ↑ Tweeter One [@tweeter1] (14 Feb. 2026). "I totally disagree! Only the Mildly Spotty Party is a serious contender in this election" (Tweet) – via Twitter.
- ↑ Tweeter 2 [@tweeter2] (14 Feb. 2026). "Vote Very Spotty Party or risk a Stripy government" (Tweet) – via Twitter.
TemplateData
TemplateData for Quote tweet
Template to display a quote tweet, i.e. a tweet that quotes another tweet. For ordinary tweets use Template:Tweet.
| Parameter | Beschreibung | Typ | Status | |
|---|---|---|---|---|
| Align left | left | If set to any value, align the tweet left. Default is right-alignment. | Unbekannt | optional |
| Display as block | block | Makes the template occupy space across the whole column it is in. | Unbekannt | optional |
| Width | width | The maximum width of the tweet in any CSS units, e.g. 300px.
| Mehrzeiliger Text | optional |
| Display name 1 | name | The display name of the quoting tweeter as it appears on Twitter | Mehrzeiliger Text | erforderlich |
| Prevent categorization | nocategory | Do not use in articles. For documentation pages only. | Unbekannt | optional |
| Username 1 | username | The username of the quoting author. | Mehrzeiliger Text | erforderlich |
| Date 1 | date | The date of the quoting tweet, in the format 1 Jan 1970 or Jan 1, 1970. | Datum | erforderlich |
| Text 1 | text | Text of the quoting tweet | Wikitext | erforderlich |
| ID 1 | ID | The ID number of the quoting tweet; look at the end of its URL. Overridden by Reference 1.
| Zahlenwert | vorgeschlagen |
| Reference 2 | reference ref | A full reference tag (Including <ref>) for the quoted tweet. Alternatively use ID2. | Einzeiliger Text | optional |
| Author image 1 | image | An image filename to represent the profile picture | Datei | optional |
| In reply to 1 | replyto | The username of the person replied to by the quoting tweet, if any | Mehrzeiliger Text | optional |
| Language code 1 | language lang | The two letter language code of the quoting tweet.
| Mehrzeiliger Text | optional |
| Translation 1 | translation | Translation into English of the quoting tweet if required. | Wikitext | optional |
| Display name 2 | name2 | The display name of the quoted tweeter as it appears on Twitter | Mehrzeiliger Text | erforderlich |
| Username 2 | username2 | The username of the quoted author. | Mehrzeiliger Text | erforderlich |
| Date 2 | date2 | The date of the quoted tweet, in the format 1 Jan 1970 or Jan 1, 1970. | Datum | erforderlich |
| Text 2 | text2 | Text of the quoted tweet | Wikitext | erforderlich |
| ID 2 | ID2 | The ID number of the quoted tweet; look at the end of its URL. Overridden by Reference 2.
| Zahlenwert | vorgeschlagen |
| Reference 2 | reference2 ref2 | A full reference tag (Including <ref>) for the quoted tweet. Alternatively use ID2. | Einzeiliger Text | optional |
| Author image 2 | image2 | An image filename to represent the profile picture | Datei | optional |
| In reply to 2 | replyto2 | The username of the person replied to by the quoted tweet, if any | Mehrzeiliger Text | optional |
| Language code 2 | language2 lang2 | The two letter language code of the quoted tweet.
| Mehrzeiliger Text | optional |
| Translation 2 | translation2 | Translation into English of the quoted tweet if required. | Wikitext | optional |
See also
- {{Tweet}}, for tweets which do not quote other tweets
- Die obige Dokumentation wurde aus der Seite Vorlage:Quote tweet/Doku eingefügt. (bearbeiten | Versionsgeschichte) Die Kategorien für diese Vorlage sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.
- Testseite anlegen -Editnotice anlegen -Wartungsseite anlegen
- Liste der Unterseiten