Vorlage:Quote tweet: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 71: | Zeile 71: | ||
}} max-width: {{{width|220px}}}; | }} max-width: {{{width|220px}}}; | ||
}}"> | }}"> | ||
{{#if: {{{ | {{#if: {{{name2|}}}||{{Formatting error|Missing <u>name</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{username2|}}}||{{Formatting error|Missing <u>username</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{date2|}}}||{{Formatting error|Missing <u>date</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{text2|}}}||{{Formatting error|Missing <u>text</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!-- | ||
-->{{#ifeq: {{extract|{{{ | -->{{#ifeq: {{extract|{{{date2|}}}|show=format}} | dmy | ||
||{{#ifeq: {{extract|{{{ | ||{{#ifeq: {{extract|{{{date2|}}}|show=format}} | mdy | ||
||{{Formatting error|<u>date</u> parameter should be [[MOS:DATE|reformatted]] to look like:<br>''1 Jan 1970'' or ''Jan 1, 1970''.<br>|nocategory={{{nocategory|}}}}} | ||{{Formatting error|<u>date</u> parameter should be [[MOS:DATE|reformatted]] to look like:<br>''1 Jan 1970'' or ''Jan 1, 1970''.<br>|nocategory={{{nocategory|}}}}} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{ID2|{{{id2|{{{reference2|{{{ref2|}}}}}}}}}}}} | ||
||{{Formatting error|<u>reference</u> or <u>ID</u> parameter required.<br>|nocategory={{{nocategory|}}}}} | ||{{Formatting error|<u>reference</u> or <u>ID</u> parameter required.<br>|nocategory={{{nocategory|}}}}} | ||
}} | }} | ||
| Zeile 99: | Zeile 99: | ||
</tr> | </tr> | ||
</table> | </table> | ||
{{#if: {{{ | {{#if: {{{replyto2|}}}| | ||
<div style="color: #4C545C; font-size: 85%;"> | <div style="color: #4C545C; font-size: 85%;"> | ||
Replying to @{{{ | Replying to @{{{replyto2|}}} | ||
</div> | </div> | ||
|}} | |}} | ||
{{#if: {{{ | {{#if: {{{lang2|{{{language2|}}}}}} | ||
|<div style='font-size: 90%; color: #1c2022; text-align: left'> | |<div style='font-size: 90%; color: #1c2022; text-align: left'> | ||
{{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}} | {{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}} | ||
| Zeile 112: | Zeile 112: | ||
</div> | </div> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{translation2|}}}| | ||
<hr style="height: 0; border: 0; border-top: 1px solid #aaa; margin: 10px 0 10px 0;"> | <hr style="height: 0; border: 0; border-top: 1px solid #aaa; margin: 10px 0 10px 0;"> | ||
<div style="font-size: 90%;"> | <div style="font-size: 90%;"> | ||
{{{ | {{{translation2|}}} | ||
</div> | </div> | ||
|}} | |}} | ||
<div style="color: #4C545C; font-size: 90%;"> | <div style="color: #4C545C; font-size: 90%;"> | ||
{{{ | {{{date2|}}}<!-- | ||
-->{{{ | -->{{{reference2|{{{ref | ||
|{{#tag: | |{{#tag:ref2|{{cite tweet|user= {{{username2}}} |author= {{{name2|}}} |number= {{{ID2|{{{id2|}}}}}} |date= {{{date2}}} |title= {{#invoke:String|replace|{{{text2}}}|%s+| |plain=false}} }} }} | ||
}}}}}} | }}}}}} | ||
</div> | </div> | ||
Version vom 9. Oktober 2020, 01:26 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.
17 Feb. 2026[1]
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.
17 Feb. 2026<ref2>Tweeter 2 [@tweeter2] (17 Feb. 2026). "Vote Very Spotty Party or risk a Stripy government" (Tweet) – via Twitter. </ref2>
{{Quote tweet
|date=17 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=17 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] (17 Feb. 2026). "I totally disagree! Only the Mildly Spotty Party is a serious contender in this election" (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