Vorlage:Cite tweet/Doku: Unterschied zwischen den Versionen

K
Xineohp1506 verschob die Seite Vorlage:Cite tweet/doc nach Vorlage:Cite tweet/Doku, ohne dabei eine Weiterleitung anzulegen
K (→‎TemplateData: +param)
K (Xineohp1506 verschob die Seite Vorlage:Cite tweet/doc nach Vorlage:Cite tweet/Doku, ohne dabei eine Weiterleitung anzulegen)
 
(45 dazwischenliegende Versionen von 31 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Notice |image=Ambox important.svg |heading={{big|Tweets are usually unacceptable as sources.}} | Tweets and other self-published material may be acceptable if the conditions specified at [[WP:SPS]] or [[WP:TWITTER]] are met. For further information, see the [[Wikipedia:Verifiability]] policy and the [[Wikipedia:Identifying reliable sources]] guideline.}}
{{Notice |image=Stop hand nuvola.svg |heading={{big|Tweets are largely ''not acceptable'' as sources.}} | Tweets and other self-published material may sometimes be acceptable, if the conditions specified at [[WP:SPS]] or [[WP:TWITTER]] are met. For further information, see the [[Wikipedia:Verifiability]] policy and the [[Wikipedia:Identifying reliable sources]] guideline.}}
{{High-use}}
{{CS1 wrapper |type= |base=Cite web}}
{{Template redirect|Cite twitter}}
{{Lua|Module:Cite tweet}}


A template for citing tweets posted on Twitter.
A template for citing tweets posted on Twitter.
Zeile 12: Zeile 15:
|- style="vertical-align:top;"
|- style="vertical-align:top;"
|
|
: <code><nowiki>{{cite tweet |user= |number= |date= |title= }}</nowiki></code>
: <code><nowiki>{{Cite tweet |user= |number= |title=}}</nowiki></code>
{{end}}
{{end}}
{{csdoc|usage full}}
{{csdoc|usage full}}
: <code><nowiki>{{cite tweet |author= (or |last= and |first=) |author-link= |user= |number= |date= |title= |script-title= |trans-title= |language= |retweet= |link= |access-date= |archive-url= |archive-date= |dead-url=}}</nowiki></code>
: <code><nowiki>{{Cite tweet |author= (or |last= |first= ) |author-link= |user= |number= |date= |title= |script-title= |trans-title= |language= |retweet= |location= |access-date= |link= |url-status= |archive-url= |archive-date= |quote= |ref=}}</nowiki></code>
{{end}}
{{end}}
{{A note|1=}} When known, the author's real name should be specified in the {{para|author}} parameter (or {{para|last}} and {{para|first}}). If their real name is not known, then the tweet is probably not an [[WP:SPS|acceptable usage of a self-published source]].
{{A note}} When known, the author's real name should be specified in the {{para|author}} parameter (or {{para|last}} and {{para|first}}). If their real name is not known, then the tweet is probably not an [[WP:SPS|acceptable usage of a self-published source]].


===Using {{tl|sfn}} and {{tl|harvid}} ===
=== Using {{tl|sfn}} and {{tl|harvid}} ===
To use this template with shortened footnotes (e.g. the {{tl|sfn}} template), add {{para|ref}} with {{tl|harvid}} in the parameter value, like this:
To use this template with shortened footnotes (e.g. the {{tl|sfn}} template), add {{para|ref}} with {{tl|harvid}} in the parameter value, like this:


:<code><nowiki>{{cite tweet | ref = {{harvid|Porck|2017}} | last = Porck | first = Thijs | user = thijsporck | number = 889205416596471811 | date = 23 July 2017 | title = Spotted in Marvel's Doctor Strange: Sutton Hoo Helmet replica! | access-date = 5 December 2017 }}</nowiki></code>
:<code><nowiki>{{Cite tweet |ref={{harvid|Porck|2017}} |last=Porck |first=Thijs |user=thijsporck |number=889205416596471811 |date=23 July 2017 |title=Spotted in Marvel's Doctor Strange: Sutton Hoo Helmet replica! |access-date=5 December 2017}}</nowiki></code>


This reference would be cited as <code><nowiki>{{sfn|Porck|2017}}</nowiki></code>.
This reference would be cited as <code><nowiki>{{sfn|Porck|2017}}</nowiki></code>.
=== Optional {{para|date}} parameter ===
Unlike most citation templates, the {{para|date}} parameter is optional. This is because the date can be calculated directly from the Tweet's ID using [[Module:TwitterSnowflake]] (wrapped with [[Template:TwitterSnowflake]]).
If the {{para|date}} parameter is off by more than one day from what the calculated date is, the template will output an error. This can be fixed by removing or correcting the date parameter.
If the Tweet was posted before November 4, 2010, the date cannot be calculated from the ID {{--}} the template will output an error if no date is provided.


== Examples ==
== Examples ==
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians!}}</nowiki></code>'''
: {{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}
: {{Cite tweet |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians!}}
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |author=Andy Mabbett |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians!}}</nowiki></code>'''
: {{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}
: {{Cite tweet |author=Andy Mabbett |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians!}}
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |author=Andy Mabbett |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}</nowiki></code>'''
: {{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}
: {{Cite tweet |author=Andy Mabbett |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}


If the author has a Wikipedia article, use of {{para|author-link}} is recommended:<br/>
If the author has a Wikipedia article, use of {{para|author-link}} is recommended:<br/>
'''<code><nowiki>{{cite tweet |user=elonmusk |author-link=Elon Musk |number=743097337782763521 |date=June 15, 2016 |title=Looks like thrust was low on 1 of 3 landing engines. High g landings v sensitive to all engines operating at max.}}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |author=Elon Musk |author-link=Elon Musk |user=elonmusk |number=743097337782763521 |title=Looks like thrust was low on 1 of 3 landing engines. High g landings v sensitive to all engines operating at max.}}</nowiki></code>'''
: {{cite tweet |user=elonmusk |author-link=Elon Musk |number=743097337782763521 |date=June 15, 2016 |title=Looks like thrust was low on 1 of 3 landing engines. High g landings v sensitive to all engines operating at max.}}
: {{Cite tweet |author=Elon Musk |author-link=Elon Musk |user=elonmusk |number=743097337782763521 |title=Looks like thrust was low on 1 of 3 landing engines. High g landings v sensitive to all engines operating at max.}}


Note that if {{para|last}} is used, {{para|author}} is ignored:<br/>
Note that if {{para|last}} is used, {{para|author}} is ignored:<br/>
'''<code><nowiki>{{Cite tweet |user=Pigsonthewing |last=Mabbett |first=Andy |author=Redundant Author Name Ignored |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}</nowiki></code>'''
'''<code><nowiki>{{Cite tweet |last=Mabbett |first=Andy |author=Redundant Author Name Ignored |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}</nowiki></code>'''
: {{Cite tweet |user=Pigsonthewing |last=Mabbett |first=Andy |author=Redundant Author Name |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}
: {{Cite tweet |last=Mabbett |first=Andy |author=Redundant Author Name Ignored |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}
 
This tweet was posted before November 4, 2010, so {{para|date}} is necessary:<br/>
'''<code><nowiki>{{Cite tweet |user=jack |number=20 |title=just setting up my twttr |date=Mar 21, 2006 }}</nowiki></code>'''
: {{Cite tweet |user=jack |number=20 |title=just setting up my twttr |date=Mar 21, 2006 |author-link=Jack Dorsey }}


== Error detection ==
== Error detection ==
* The parameters {{para|user}}, {{para|number}}, {{para|date}}, and {{para|title}} are '''{{red|required}}'''. If omitted or left blank, errors will be reported. For example:
* The parameters {{para|user}}, {{para|number}}, and {{para|title}} are '''{{red|required}}'''. If omitted or left blank, errors will be reported. For example:
*: '''<code><nowiki>{{Cite tweet|title=I'm an incomplete citation!}}</nowiki></code>'''
*: '''<code><nowiki>{{Cite tweet |title=I'm an incomplete citation!}}</nowiki></code>'''
*:: {{Cite tweet|title=I'm an incomplete citation!}}
*:: {{Cite tweet |title=I'm an incomplete citation!}}
* The tweet URL depends on {{para|user}} and {{para|number}}; if either or both are missing, the URL defaults to <nowiki>https://twitter.com/</nowiki>
* The tweet URL depends on {{para|user}} and {{para|number}}; if either or both are missing, the URL defaults to <nowiki>https://twitter.com/</nowiki>
* The tweet date depends on {{para|number}} for tweets posted after November 4, 2010; if the optional {{para|date}} parameter is used, and the date is off by more than a day from the calculated date, an error is displayed.
* Templates are checked for {{para|ref|harv}}, which is an error. The {{para|ref}} parameter must use {{tl|harvid}} in the value.  
* Templates are checked for {{para|ref|harv}}, which is an error. The {{para|ref}} parameter must use {{tl|harvid}} in the value.  
* The template also checks for parameters that are unsupported (e.g. misspellings of parameter names).
* The template also checks for parameters that are unsupported (e.g. misspellings of parameter names).
Zeile 57: Zeile 72:
"params": {
"params": {
"number": {
"number": {
"label": "number",
"label": "Tweet number",
"description": "Numerical ID of the tweet",
"description": "Numerical ID of the tweet",
"type": "number",
"type": "number",
Zeile 63: Zeile 78:
},
},
"user": {
"user": {
"label": "username",
"label": "User handle",
"description": "Twitter account name, without the @",
"description": "Twitter account name, without the @",
"type": "string",
"type": "string",
Zeile 69: Zeile 84:
},
},
"title": {
"title": {
"label": "tweet",
"label": "Tweet contents",
"description": "Partial or entire content of the tweet, optionally including hashtags (#), at signs (@), and links",
"description": "Partial or entire content of the tweet, optionally including hashtags (#), at signs (@), and links. Note: double quote marks (\") should be replaced with single quote marks (') because the entire title will display surrounded by double quotes.",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"author": {
"author": {
"label": "author",
"label": "Tweet author",
"description": "Author's real name, if known. If not known, then the tweet is probably not an acceptable usage of a self-published source (see [[WP:SPS]])",
"description": "Author's real name, if known. If not known, then the tweet is probably not an acceptable usage of a self-published source (see [[WP:SPS]])",
"suggested": true
"suggested": true,
"type": "string"
},
},
"author-link": {
"author-link": {
Zeile 83: Zeile 99:
"authorlink"
"authorlink"
],
],
"label": "author's article",
"label": "Author's article",
"description": "Title of existing Wikipedia article about the author"
"description": "Title of existing Wikipedia article about the author",
"type": "wiki-page-name"
},
},
"retweet": {
"retweet": {
"label": "retweeted by",
"label": "Retweeted by",
"description": "The reliable source who retweeted the tweet, if the original tweeter is not anyone particularly notable. May be wikilinked."
"description": "The reliable source who retweeted the tweet, if the original tweeter is not anyone particularly notable. May be wikilinked."
},
},
"date": {
"date": {
"label": "date",
"label": "Date",
"description": "date of the tweet; do not wikilink; do not include time. Note: a tweet's timestamp is in your local timezone, and may need to be adjusted to UTC.",
"description": "Date of the tweet; do not wikilink; do not include time.",
"required": true
"type": "date",
"suggested": true
},
},
"access-date": {
"access-date": {
Zeile 99: Zeile 117:
"accessdate"
"accessdate"
],
],
"label": "access date",
"label": "Access date",
"description": "The full date when the tweet was accessed; do not wikilink"
"description": "The full date when the tweet was accessed; do not wikilink",
"type": "date",
"suggested": true
},
},
"language": {
"language": {
"label": "language",
"label": "Language",
"description": "The language in which the tweet is written, if not in English.",
"description": "The language in which the tweet is written, if not in English.",
"example": "fr",
"example": "fr",
Zeile 109: Zeile 129:
},
},
"location": {
"location": {
"label": "location",
"label": "Tweet location",
"description": "The location from which a tweet was sent.",
"description": "The location from which a tweet was sent.",
"example": "London",
"example": "London",
Zeile 115: Zeile 135:
},
},
"archive-url": {
"archive-url": {
"label": "archive URL",
"label": "Archive URL",
"aliases": [
"aliases": [
"archiveurl"
"archiveurl"
],
],
"description": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
"description": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
"type": "string"
"type": "url"
},
},
"archive-date": {
"archive-date": {
"label": "archive date",
"label": "Archive date",
"aliases": [
"aliases": [
"archivedate"
"archivedate"
],
],
"description": "Date when the original URL was archived; do not wikilink",
"description": "Date when the original URL was archived; do not wikilink",
"type": "string"
"type": "date"
},
},
"dead-url": {
"url-status": {
"label": "dead URL",
"label": "URL status",
"aliases": [
"description": "If set to 'live', the title displays as the live link; if set to dead, the title displays as the archive link",
"deadurl"
],
"description": "If set to 'no', the title display is adjusted; useful for when the URL is archived preemptively but still live",
"type": "string"
"type": "string"
},
},
"script-title": {
"script-title": {
"label": "script tweet",
"label": "Tweet script",
"description": "For tweets in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon, e.g. for Japanese use: ja:...",
"description": "For tweets in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc). Prefix with two-character ISO639-1 language code followed by a colon, e.g. for Japanese use: ja:...",
"example": "ja:東京タワー"
"example": "ja:東京タワー",
"type": "string"
},
},
"trans-title": {
"trans-title": {
"label": "translated tweet",
"label": "Translated tweet",
"description": "An English language translation, if the tweet cited is in a foreign language; use of 'language' parameter is recommended"
"description": "An English language translation, if the tweet cited is in a foreign language; use of 'language' parameter is recommended",
"type": "string"
},
},
"link": {
"link": {
"label": "Link to Twitter article?",
"label": "Link to Twitter article?",
"description": "Set to \"no\" to not link to the Wikipedia article for Twitter. Useful for preventing overlinking when more than one tweet is cited."
"description": "Set to \"no\" to not link to the Wikipedia article for Twitter. Useful for preventing overlinking when more than one tweet is cited.",
"type": "boolean"
},
"df": {
"label": "Date format",
"description": "Valid values: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all",
"type": "string"
},
"ref": {
"label": "Ref anchor",
"description": "An anchor identifier; can be made the target of wikilinks to full references",
"type": "string"
},
"quote": {
"label": "Quote",
"description": "Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation",
"type": "string"
}
}
},
},
"description": "A template for citing tweets posted on Twitter"
"description": "A template for citing tweets posted on Twitter",
"paramOrder": [
"number",
"user",
"title",
"author",
"author-link",
"retweet",
"date",
"access-date",
"language",
"location",
"archive-url",
"archive-date",
"url-status",
"script-title",
"trans-title",
"link",
"df",
"quote",
"ref"
],
"format": "inline"
}
}
</templatedata>
</templatedata>
== Redirects ==
# {{tlx|Cite twitter}}


== See also ==
== See also ==
# {{tlx|tweet}}
* {{tlx|Tweet}}
* {{tlx|Cite Twitter profile}}
* [[WP:TWITTER]]


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Citation Style 1 meta-templates|T]]
[[Category:Citation Style 1 specific-source templates‎]]
}}</includeonly>
}}</includeonly>