Bản mẫu:Chú thích tweet/doc

Một bản mẫu chú thích các tweet được đăng trên Twitter.

**Cách sử dụng**
+ Chỉ các tham số bắt buộc, trong định dạng ngang
 
 
When known, the author's real name should be specified in the author parameter (or last and first). If their real name is not known, then the tweet is probably not an acceptable usage of a self-published source.

**Cách sử dụng sfn và harvid**
To use this template with shortened footnotes (e.g. the sfn template), add ref with harvid in the parameter value, like this:

This reference would be cited as .

**Tham số date tùy chọn**
Unlike most citation templates, the date parameter is optional. This is because the date can be calculated directly from the Tweet's ID using Mô đun:TwitterSnowflake (wrapped with Bản mẫu:TwitterSnowflake).
If the 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.

**Các ví dụ**
 title=This is an example tweet. Hello, Wikipedians!
 title=This is an example tweet. Hello, Wikipedians!
 Chú thích 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 author-link is recommended:
 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 last is used, author is ignored:
 Chú thích 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 date is necessary:
 author-link=Jack Dorsey 

**Phát hiện lỗi**
 The parameters user, number, and title are required. If omitted or left blank, errors will be reported. For example:
*: 
*:: title=I'm an incomplete citation!- The tweet URL depends on user and number; if either or both are missing, the URL defaults to - The tweet date depends on 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- Templates are checked for harv, which is an error. The ref parameter must use harvid in the value. - The template also checks for parameters that are unsupported (e.g. misspellings of parameter names).- Errors are tracked in :Thể loại:Bản mẫu chú thích tweet có lỗi

**Dữ liệu bản mẫu**
{
	"params": {
		"number": {
			"label": "number",
			"description": "Numerical ID of the tweet",
			"type": "number",
			"required": true
		},
		"user": {
			"label": "username",
			"description": "Twitter account name, without the @",
			"type": "string",
			"required": true
		},
		"title": {
			"label": "tweet",
			"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",
			"required": true
		},
		"author": {
			"label": "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)",
			"suggested": true
		},
		"author-link": {
			"aliases": 
				"authorlink"
			,
			"label": "author's article",
			"description": "Title of existing Wikipedia article about the author"
		},
		"retweet": {
			"label": "retweeted by",
			"description": "The reliable source who retweeted the tweet, if the original tweeter is not anyone particularly notable. May be wikilinked."
		},
		"date": {
			"label": "date",
			"description": "date of the tweet; do not wikilink; do not include time."
		},
		"access-date": {
			"aliases": 
				"accessdate"
			,
			"label": "access date",
			"description": "The full date when the tweet was accessed; do not wikilink"
		},
		"language": {
			"label": "language",
			"description": "The language in which the tweet is written, if not in English.",
			"example": "fr",
			"type": "string"
		},
		"location": {
			"label": "location",
			"description": "The location from which a tweet was sent.",
			"example": "London",
			"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"
		},
		"url-status": {
			"label": "URL status",
			"description": "If set to 'live', the title displays as the live link; if set to dead, the title displays as the archive link",
			"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"
		},
		"link": {
			"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."
		},
"df": {
"label": "Date format",
"description": "Valid values: dmy, dmy-all, mdy, mdy-all, ymd, ymd-all"
}
	},
	"description": "A template for citing tweets posted on Twitter"
}

**Trang đổi hướng**
# Cite twitter
# Cite tweet

**Xem thêm**
# Tweet
# WP:TWITTER