Difference between revisions of "Template:Cite tweet/doc"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (30 revisions from wikipedia:Template:Cite tweet/doc)
 
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Brad
+
{{Documentation subpage}}
#actualTweet
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
#Ha
+
 
#BeatThis
+
{{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.}}
 +
 
 +
A template for citing tweets posted on Twitter.
  
 
== Usage ==
 
== Usage ==
Line 10: Line 12:
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
|
 
|
:<code><nowiki>{{Cite tweet |user= |number= |date= |title= }}</nowiki></code>
+
: <code><nowiki>{{cite tweet |user= |number= |date= |title= }}</nowiki></code>
 
{{end}}
 
{{end}}
 
{{csdoc|usage full}}
 
{{csdoc|usage full}}
:<code><nowiki>{{Cite tweet |author= |author-link= |user= |number= |date= |title= |retweet= |access-date= |language= }}</nowiki></code>
+
: <code><nowiki>{{cite tweet |author= |author-link= |user= |number= |date= |title= |script-title= |trans-title= |language= |retweet= |access-date= |archive-url= |archive-date= |dead-url=}}</nowiki></code>
 
{{end}}
 
{{end}}
 
{{A note|1=}} When known, the author's real name should be specified in the {{para|author}} parameter. 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|1=}} When known, the author's real name should be specified in the {{para|author}} parameter. If their real name is not known, then the tweet is probably not an [[WP:SPS|acceptable usage of a self-published source]].
 +
 
== 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 |date = 7 February 2015 |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 |date = 7 February 2015 |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 |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |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 |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |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 |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>'''
:{{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 |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}
  
 
== 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}}, {{para|date}}, 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>
*Errors are tracked in [[:Category:Cite tweet templates with errors]]
+
* The template also checks for parameters that are unsupported (e.g. misspellings of parameter names).
 +
* Errors are tracked in [[:Category:Cite tweet templates with errors]]
  
 
== Parameters ==
 
== Parameters ==
 
+
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 87: Line 91:
 
"example": "fr",
 
"example": "fr",
 
"type": "string"
 
"type": "string"
 +
},
 +
"archive-url": {
 +
"label": "archive URL",
 +
"aliases": [
 +
"archiveurl"
 +
],
 +
"description": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'",
 +
"type": "string"
 +
},
 +
"archive-date": {
 +
"label": "archive date",
 +
"aliases": [
 +
"archivedate"
 +
],
 +
"description": "Date when the original URL was archived; do not wikilink",
 +
"type": "string"
 +
},
 +
"dead-url": {
 +
"label": "dead URL",
 +
"aliases": [
 +
"deadurl"
 +
],
 +
"description": "If set to 'no', the title display is adjusted; useful for when the URL is archived preemptively but still live",
 +
"type": "string"
 +
},
 +
"script-title": {
 +
"label": "script tweet",
 +
"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:東京タワー"
 +
},
 +
"trans-title": {
 +
"label": "translated tweet",
 +
"description": "An English language translation, if the tweet cited is in a foreign language; use of 'language' parameter is recommended"
 
}
 
}
 
},
 
},
"description": "A template for citing tweets posted on Twitter"
+
"description": "A template for citing tweets posted on Twitter",
 +
"format": null
 
}
 
}
 
</templatedata>
 
</templatedata>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Citation Style 1 meta-templates]]
 
}}</includeonly>
 
  
 
== Redirects ==
 
== Redirects ==
Line 102: Line 136:
 
== See also ==
 
== See also ==
 
* {{tl|Twitter status}}
 
* {{tl|Twitter status}}
 +
 +
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Citation Style 1 meta-templates|T]]
 +
[[Category:Wikipedia:Twitter]]
 +
}}</includeonly>

Latest revision as of 06:37, 14 June 2016

A template for citing tweets posted on Twitter.

Usage[edit]

Template:Citation Style documentation/usage

Required parameters only, in horizontal format
{{cite tweet |user= |number= |date= |title= }}

Template:End Template:Citation Style documentation/usage full

{{cite tweet |author= |author-link= |user= |number= |date= |title= |script-title= |trans-title= |language= |retweet= |access-date= |archive-url= |archive-date= |dead-url=}}

Template:End Pictogram voting info.svg Note: When known, the author's real name should be specified in the |author= parameter. If their real name is not known, then the tweet is probably not an acceptable usage of a self-published source.

Examples[edit]

{{Cite tweet |user=Pigsonthewing |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}

Pigsonthewing (7 February 2015). This is an example tweet. Hello, Wikipedians!.

{{Cite tweet |user=Pigsonthewing |author=Andy Mabbett |number=564068436633214977 |date = 7 February 2015 |title=This is an example tweet. Hello, Wikipedians! }}

Andy Mabbett [Pigsonthewing] (7 February 2015). This is an example tweet. Hello, Wikipedians!.

{{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]}}

Andy Mabbett [Pigsonthewing] (7 February 2015). This is an example tweet. Hello, Wikipedians!.

Error detection[edit]

  • The parameters |user=, |number=, |date=, and |title= are required. If omitted or left blank, errors will be reported. For example:
    {{Cite tweet|title=I'm an incomplete citation!}}
    I'm an incomplete citation!.
  • The tweet URL depends on |user= and |number=; if either or both are missing, the URL defaults to https://twitter.com/
  • The template also checks for parameters that are unsupported (e.g. misspellings of parameter names).
  • Errors are tracked in Category:Cite tweet templates with errors

Parameters[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Cite tweet

A template for citing tweets posted on Twitter

Template parameters

ParameterDescriptionTypeStatus
numbernumber

Numerical ID of the tweet

Default
empty
Example
empty
Auto value
empty
Numberrequired
usernameuser

Twitter account name, without the @

Default
empty
Example
empty
Auto value
empty
Stringrequired
tweettitle

Entire content of the tweet, including hashtags (#), at signs (@), and links

Default
empty
Example
empty
Auto value
empty
Stringrequired
authorauthor

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]])

Default
empty
Example
empty
Auto value
empty
Unknownsuggested
author's articleauthor-linkauthorlink

Title of existing Wikipedia article about the author

Default
empty
Example
empty
Auto value
empty
Unknownoptional
retweeted byretweet

The reliable source who retweeted the tweet, if the original tweeter is not anyone particularly notable. May be wikilinked.

Default
empty
Example
empty
Auto value
empty
Unknownoptional
datedate

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.

Default
empty
Example
empty
Auto value
empty
Unknownrequired
access dateaccess-dateaccessdate

The full date when the tweet was accessed; do not wikilink

Default
empty
Example
empty
Auto value
empty
Unknownoptional
languagelanguage

The language in which the tweet is written, if not in English.

Default
empty
Example
fr
Auto value
empty
Stringoptional
archive URLarchive-urlarchiveurl

The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'

Default
empty
Example
empty
Auto value
empty
Stringoptional
archive datearchive-datearchivedate

Date when the original URL was archived; do not wikilink

Default
empty
Example
empty
Auto value
empty
Stringoptional
dead URLdead-urldeadurl

If set to 'no', the title display is adjusted; useful for when the URL is archived preemptively but still live

Default
empty
Example
empty
Auto value
empty
Stringoptional
script tweetscript-title

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:...

Default
empty
Example
ja:東京タワー
Auto value
empty
Unknownoptional
translated tweettrans-title

An English language translation, if the tweet cited is in a foreign language; use of 'language' parameter is recommended

Default
empty
Example
empty
Auto value
empty
Unknownoptional

Redirects[edit]

  1. {{Cite twitter}}

See also[edit]