Vorlage:Tweet/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(→‎Parameters: update)
(document verified and cl)
Zeile 1: Zeile 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{tweet|name=Example|username=example|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.|date=12 Jul 2017|reference={{dummy reference}}}}
{{Tweet|name=Example|username=example|text=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.|date=12 Jul 2017|reference={{dummy reference}}}}


This template allows relevant tweets to be easily quoted within articles with a citation automatically generated, using {{tlx|cite tweet}}.
This template allows relevant tweets to be easily quoted within articles with a citation automatically generated, using {{tlx|cite tweet}}.
Zeile 12: Zeile 12:
=== Full blank syntax ===
=== Full blank syntax ===
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{tweet
{{Tweet
|name =  
| name =  
|username =  
| username =  
|replyto =  
| replyto =  
|lang =  
| lang =  
|text =  
| text =  
|translation =  
| translation =  
|date =  
| date =  
|ID =  
| ID =  
|reference =  
| reference =  
|archive-url =  
| archive-url =  
|archive-date =  
| archive-date =  
|url-status =  
| url-status =  
|image =  
| image =  
|block =  
| block =  
|left =  
| left =  
|width =  
| width =  
}}
}}
</pre>
</pre>
Zeile 34: Zeile 34:
===Parameters===
===Parameters===
* {{para|name}} user's name as it appears at the top of the tweet
* {{para|name}} user's name as it appears at the top of the tweet
* {{para|verified}} show a verified icon next to the user's name
* {{para|username}} user's @ handle (without the @)
* {{para|username}} user's @ handle (without the @)
* {{para|replyto}} optional: username tweet is replying to
* {{para|replyto}} optional: username tweet is replying to
Zeile 51: Zeile 52:


== Examples ==
== Examples ==
{{nowiki template demo|code=<nowiki>{{tweet
{{nowiki template demo|code=<nowiki>{{Tweet
|name=NASA
| name = NASA
|username=NASA
| verified = yes
|replyto=WilliamShatner
| username = NASA
|text=@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!
| replyto = WilliamShatner
|date=Aug 2, 2014
| text = @WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!
|ID=495719809695621121
| date = Aug 2, 2014
|image=NASA logo.svg
| ID = 495719809695621121
|left=yes
| image = NASA logo.svg
| left = yes
}}</nowiki>}}
}}</nowiki>}}
{{clear}}
{{clear}}


{{nowiki template demo|code=<nowiki>{{tweet
{{nowiki template demo|code=<nowiki>{{Tweet
|name=René Descartes
| name = René Descartes
|username=descartes
| username = descartes
|lang=la
| lang = la
|text=Dubito, ergo cogito, ergo sum
| text = Dubito, ergo cogito, ergo sum
|translation=I doubt, therefore I think, therefore I am
| translation = I doubt, therefore I think, therefore I am
|date=1 January 1637
| date = 1 January 1637
|ref={{dummy reference|2}}
| ref = {{dummy reference|2}}
|block=yes
| block = yes
}}</nowiki>}}
}}</nowiki>}}
{{clear}}
{{clear}}
Zeile 100: Zeile 102:
"type": "string",
"type": "string",
"required": true
"required": true
},
"verified": {
"label": "verified",
"description": "Show a verified icon next to the user's name",
"type": "string"
},
},
"username": {
"username": {
Zeile 164: Zeile 171:
"url-status": {}
"url-status": {}
},
},
"description": "This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using the template, \"cite tweet\".\n\nUsing this template is better than a screen-shot of a tweet because the text is accessible to screen readers.\n\nIt 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."
"description": "This template allows relevant tweets to be easily quoted within articles, with a citation automatically generated using the template, \"cite tweet\".\n\nUsing this template is better than a screen-shot of a tweet because the text is accessible to screen readers.\n\nIt 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.",
"format": "block"
}
}
</templatedata>
</templatedata>


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


== Refs ==
== References ==
{{reflist}}
{{Reflist}}


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Version vom 9. März 2021, 12:54 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
  • |verified= show a verified icon next to the user's name
  • |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 with 500px width as default (text above and below, doesn't flow around).
  • |left= optional: any value makes tweet aligned left
  • |width= optional: custom tweet width, default is 220px

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

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterBeschreibungTypStatus
blockblock

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

Zeichenfolgeoptional
widthwidth

Custom tweet width

Beispiel
300px
Zeichenfolgeoptional
leftleft

Any value makes tweet aligned left

Zeichenfolgeoptional
namename

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

Zeichenfolgeerforderlich
verifiedverified

Show a verified icon next to the user's name

Zeichenfolgeoptional
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

Zeichenfolgeerforderlich
IDID id

The number at the end of the tweet URL

Nummervorgeschlagen
referencereference ref

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

Beispiel
<ref>custom reference</ref>
Zeichenfolgeoptional
imageimage

Image or logo associated with twitter account

Dateioptional
replytoreplyto

Username the tweet is replying to

Zeichenfolgeoptional
langlang language

language code of original tweet

Beispiel
de
Zeichenfolgeoptional
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

References

  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)