Vorlage:Tweet/Doku: Unterschied zwischen den Versionen

add translation
KKeine Bearbeitungszusammenfassung
(add translation)
Zeile 21: Zeile 21:
|width =          [optional: custom tweet width]
|width =          [optional: custom tweet width]
|reference =      [optional: {{tweet}} automatically creates a reference, but one can be provided to use instead. See 2nd example.]
|reference =      [optional: {{tweet}} automatically creates a reference, but one can be provided to use instead. See 2nd example.]
|lang =          [optional: language of the tweet if non-English]
|translation =    [optional: English translation of tweet if original tweet non-English]
}}
}}
</pre>
</pre>
Zeile 82: Zeile 84:
{{clear}}
{{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=<ref name="zero">{{cite web |url=http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |first=Ryan |last=Gaydos |title=Trump tweets explosive White House tell-all 'full of lies'|date=January 5, 2018 |website=Fox News |accessdate=January 5, 2018 |deadurl=no|archiveurl=https://web.archive.org/web/20180105122005/http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |archivedate=January 5, 2018 |df=mdy-all}}</ref>|block=yes|width=600px}}
{{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=<ref name="zero">{{cite web |url=http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |first=Ryan |last=Gaydos |title=Trump tweets explosive White House tell-all 'full of lies'|date=January 5, 2018 |website=Fox News |accessdate=January 5, 2018 |deadurl=no|archiveurl=https://web.archive.org/web/20180105122005/http://www.foxnews.com/politics/2018/01/05/trump-tweets-explosive-white-house-tell-all-full-lies.html |archivedate=January 5, 2018 |df=mdy-all}}</ref>|block=yes|width=600px}}
 
{{clear}}
<pre><nowiki>
{{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
}}
</nowiki></pre>
{{tweet
|text=Dubito, ergo cogito, ergo sum
|lang=la
|translation=I doubt, therefore I think, therefore I am
|username=descartes
|name=René Descartes
|ref=<ref>example</ref>
|date=1637
}}
{{clear}}
==TemplateData==
==TemplateData==
<templatedata>
<templatedata>
Zeile 158: Zeile 181:
"description": "Username the tweet is replying to",
"description": "Username the tweet is replying to",
"type": "string"
"type": "string"
},
"lang": {
"label": "lang",
"description": "language code of original tweet",
"example": "de",
"type": "string"
},
"translation": {
"label": "translation",
"description": "english translation of the tweet"
}
}
},
},