Template:Cite tweet/doc: Difference between revisions

Apparently we support |first= and |last=
m (1 revision imported)
imported>SWinxy
(Apparently we support |first= and |last=)
 
Line 2: Line 2:
<!-- 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=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.}}
{{High-use|10349}}
{{High-use}}
{{CS1 wrapper |type= |base=Cite web}}
{{CS1 wrapper |type= |base=Cite web}}
{{Template redirect|Cite twitter}}
{{Lua|Module:Cite tweet}}
{{Lua|Module:Cite tweet}}
{{csdoc|cs1}}


A template for citing tweets posted on Twitter.
A template for citing tweets posted on Twitter.
Line 17: Line 19:
{{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= |location= |access-date= |link= |url-status= |archive-url= |archive-date= |ref=}}</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}} 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]].
Line 60: Line 62:
*:: {{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 given date parameter is off by more than a day from the calculated date, an error is displayed
* 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).
Line 71: Line 73:
"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",
Line 77: Line 79:
},
},
"user": {
"user": {
"label": "username",
"label": "User handle",
"description": "Twitter account name, without the @",
"description": "Twitter account name, without the @",
"type": "string",
"type": "string",
Line 83: Line 85:
},
},
"title": {
"title": {
"label": "tweet",
"label": "Tweet contents",
"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.",
"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",
Line 89: Line 91:
},
},
"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": {
Line 97: Line 100:
"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."
"description": "Date of the tweet; do not wikilink; do not include time.",
"type": "date",
"suggested": true
},
},
"access-date": {
"access-date": {
Line 112: Line 118:
"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",
Line 122: Line 130:
},
},
"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",
Line 128: Line 136:
},
},
"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"
},
},
"url-status": {
"url-status": {
Line 149: Line 157:
},
},
"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"
},
"first": {
"aliases": [
"first1"
],
"label": "First name",
"description": "The first name of the author",
"type": "string"
},
},
                "df": {
"last": {
                        "label": "Date format",
"label": "Last name",
                        "description": "Valid values: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all"
"description": "Last name of the author",
                }
"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",
"first",
"last",
"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}}
# [[WP:TWITTER]]
* {{tlx|Cite Twitter profile}}
* [[WP:TWITTER]]


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
Anonymous user