الگو:Cite tweet: تفاوت میان نسخه‌ها

از ویکی‌پدیا، دانشنامهٔ آزاد
محتوای حذف‌شده محتوای افزوده‌شده
ایجادشده به کمک به ویکی‌فا، از https://en.wikipedia.org/w/index.php?title=Template:Cite_tweet&oldid=672668988
 
4nn1l2 (بحث | مشارکت‌ها)
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
{{cite web
{{cite web
| url = {{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }}
| url = {{#ifeq: {{{number|}}}{{{user|}}} | {{{number}}}{{{user}}} | https://twitter.com/{{{user}}}/status/{{{number}}} | https://twitter.com/ }}
| title = {{{title|<noinclude><nowiki>{{{title}}}</nowiki></noinclude>}}}
| title = {{#invoke:String|replace|source={{{title|<noinclude>&#123;&#123;&#123;title&#125;&#125;&#125;</noinclude>}}} |pattern=https*:// |replace=|plain=false}}
| script-title = {{{script-title|}}}
| author = {{#if: {{{author|}}} | {{{author}}} {{#if:{{{user|}}}|[{{{user}}}]}} | {{{user|<noinclude><nowiki>{{{user}}} ({{{date}}})</nowiki></noinclude>}}} }}
| trans-title = {{{trans-title|}}}
| language = {{{language|}}}
| author = {{#if: {{{last|}}} |
{{#if: {{{first|}}} |
{{{last}}}, {{{first}}} [@{{{user|}}}] |
{{{last}}} [@{{{user|}}}]
}} |
{{#if: {{{author|}}} |
{{{author}}} [@{{{user|}}}] |
{{#if: {{{author-link|}}} |
{{{author-link}}} [@{{{user|}}}] |
@{{{user|<noinclude>{{{user}}} ({{{date}}})</noinclude>}}}
}}
}}
}}
| author-link = {{{author-link|{{{authorlink|}}} }}}
| author-link = {{{author-link|{{{authorlink|}}} }}}
| others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}}
| others = {{#if:{{{retweet|}}}|Retweeted by {{{retweet}}}}}
| date = {{{date|}}}
| date = {{{date|}}}
| via = {{#ifeq:{{{link|}}}|no|Twitter|[[Twitter]]}}
| type = Tweet
| type = Tweet
| location = {{{location|}}}
| access-date = {{{access-date|{{{accessdate|}}} }}}
| access-date = {{{access-date|{{{accessdate|}}} }}}
| language = {{{language|}}}
| archive-date = {{{archive-date|{{{archivedate|}}} }}}
| archive-url = {{{archive-url|{{{archiveurl|}}} }}}
| dead-url = {{{dead-url|{{{deadurl|}}} }}}
| ref = {{{ref|}}}
}}<includeonly><!--
}}<includeonly><!--

====== Error checking ======
== Error checking ==
No title -->{{#if:{{{title|}}}||{{#ifeq: {{{user|}}}{{{number|}}}{{{date|}}} | {{{user}}}{{{number}}}{{{date}}}||<span style="font-size:100%" class="error citation-comment">&#59;</span>}}{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
No title -->{{#if:{{{title|}}}{{{script-title|}}}||{{#ifeq: {{{user|}}}{{{number|}}}{{{date|}}} | {{{user}}}{{{number}}}{{{date}}}||<span style="font-size:100%" class="error citation-comment">&#59;</span>}}{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
(Note: error message is provided by CS1 module)
(Note: error message is provided by CS1 module)


No user --> {{#if:{{{user|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;user=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#ifeq: {{{number|}}}{{{date|}}} | {{{number}}}{{{date}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
No user --> {{#if:{{{user|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;user=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#ifeq: {{{number|}}}{{{date|}}} | {{{number}}}{{{date}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--


No number --> {{#if:{{{number|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;number=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
ref=harv instead of harvid --> {{#ifeq:{{{ref|}}}|harv|<span style="font-size:100%" class="error citation-comment">Harvid template must be used with <kbd>&#124;ref=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--


No date --> {{#if:{{{date|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;date=</kbd> ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--
No number --> {{#if:{{{number|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;number=</kbd> ([[Template:Cite_tweet#Error_detection|help]]){{#if:{{{date|}}}||&#59;}}</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}<!--


No date --> {{#if:{{{date|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>&#124;date=</kbd> ([[Template:Cite_tweet#Error_detection|help]])</span>{{main other|[[Category:Cite tweet templates with errors]]}} }}</includeonly><noinclude>{{documentation}}</noinclude>
=========================--></includeonly><noinclude>{{documentation}}</noinclude>

نسخهٔ ‏۹ نوامبر ۲۰۱۸، ساعت ۱۱:۰۵

@{{{user}}} ({{{date}}}). "{{{title}}}" (Tweet) – via Twitter. {{cite web}}: |author= has generic name (help)

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

A template for citing tweets posted on Twitter.

Usage

Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Delete unused parameters to avoid clutter in the edit window. Some samples may include the current date. If the date is not current, then purge the page.

Required parameters only, in horizontal format
{{cite tweet |user= |number= |date= |title= }}
Full parameter set in horizontal format
{{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= |url-status=}}

نکته: 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 ویکی‌پدیا:تأییدپذیری.

Using {{sfn}} and {{harvid}}

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

{{cite tweet | ref = {{SfnRef|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 }}

This reference would be cited as {{Sfn|Porck|2017}}.

Examples

{{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!" (Tweet) – via Twitter.

{{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!" (Tweet) – via Twitter.

{{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!" (Tweet). Retweeted by Wikimedia Foundation [Wikimedia] – via Twitter.

If the author has a Wikipedia article, use of |author-link= is recommended:
{{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.}}

Elon Musk [@elonmusk] (June 15, 2016). "Looks like thrust was low on 1 of 3 landing engines. High g landings v sensitive to all engines operating at max" (Tweet) – via Twitter.

Note that if |last= is used, |author= is ignored:
{{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]}}

Mabbett, Andy [@Pigsonthewing] (7 February 2015). "This is an example tweet. Hello, Wikipedians!" (Tweet). Retweeted by Wikimedia Foundation [Wikimedia] – via Twitter.

Error detection

  • 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!" (Tweet) – via Twitter.{{cite web}}: CS1 maint: numeric names: فهرست نویسندگان (link) Missing or empty |user= (help); Missing or empty |number= (help); Missing or empty |date= (help)
  • The tweet URL depends on |user= and |number=; if either or both are missing, the URL defaults to https://twitter.com/
  • Templates are checked for |ref=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 رده:الگو:یادکرد توئیت حاوی خطاها

TemplateData

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Cite tweet

A template for citing tweets posted on Twitter

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
numbernumber

Numerical ID of the tweet

شمارهضروری
usernameuser

Twitter account name, without the @

رشتهضروری
tweettitle

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.

رشتهضروری
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 [[ویکی‌پدیا:تأییدپذیری]])

ناشناختهپیشنهادشده
author's articleauthor-link authorlink

Title of existing Wikipedia article about the author

ناشناختهاختیاری
retweeted byretweet

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

ناشناختهاختیاری
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.

ناشناختهضروری
access dateaccess-date accessdate

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

ناشناختهاختیاری
languagelanguage

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

مثال
fr
رشتهاختیاری
locationlocation

The location from which a tweet was sent.

مثال
London
رشتهاختیاری
archive URLarchive-url archiveurl

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

رشتهاختیاری
archive datearchive-date archivedate

Date when the original URL was archived; do not wikilink

رشتهاختیاری
URL statusurl-status

If set to 'live', the title displays as the live link; if set to dead, the title displays as the archive link

رشتهاختیاری
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:...

مثال
ja:東京タワー
ناشناختهاختیاری
translated tweettrans-title

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

ناشناختهاختیاری
Link to Twitter article?link

Set to "no" to not link to the Wikipedia article for Twitter. Useful for preventing overlinking when more than one tweet is cited.

ناشناختهاختیاری
Date formatdf

Valid values: dmy, dmy-all, mdy, mdy-all

ناشناختهاختیاری

Redirects

  1. {{Cite twitter}}

See also

  1. {{tweet}}