Template:Cite tweet/doc

From ChewWiki
Revision as of 02:26, 28 December 2024 by Wikipedia>DavidBrooks (URLs use /)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9".Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9".

A template for citing tweets posted on Twitter.

Usage

Lua error: Internal error: The interpreter has terminated with signal "9".

Required parameters only, in horizontal format
<syntaxhighlight lang="wikitext" copy="1">Lua error: Internal error: The interpreter has terminated with signal "9".</syntaxhighlight>

Lua error: Internal error: The interpreter has terminated with signal "9".

Lua error: Internal error: The interpreter has terminated with signal "9".

<syntaxhighlight lang="wikitext" copy="1">Lua error: Internal error: The interpreter has terminated with signal "9".</syntaxhighlight>

|}Lua error: Internal error: The interpreter has terminated with signal "9". information Note: 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.

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

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

Optional |date= parameter

Unlike most citation templates, the |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 |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. The template will also provide incorrect dates for tweets posted before November 4, 2010.

Examples

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

Lua error: Internal error: The interpreter has terminated with signal "9".

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

Lua error: Internal error: The interpreter has terminated with signal "9".

{{Cite tweet |author=Andy Mabbett |user=Pigsonthewing |number=564068436633214977 |title=This is an example tweet. Hello, Wikipedians! |retweet=Wikimedia Foundation [Wikimedia]}}

Lua error: Internal error: The interpreter has terminated with signal "9".

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

Lua error: Internal error: The interpreter has terminated with signal "9".

This tweet was posted before November 4, 2010, so |date= is necessary:
{{Cite tweet |user=jack |number=20 |title=just setting up my twttr |date=March 21, 2006 }}

Lua error: Internal error: The interpreter has terminated with signal "9".

Error detection

  • The parameters |user=, |number=, and |title= are required. If omitted or left blank, errors will be reported. For example:
    {{Cite tweet |title=I'm an incomplete citation!}}
    Lua error: Internal error: The interpreter has terminated with signal "9".

Missing or empty |user=

The |user= parameter is required. The tweet URL is derived from the |user= and |number= parameters. If |user= or |number= are missing, the URL defaults to https://twitter.com/ Copy the twitter handle (minus the "@" symbol) into this parameter.

Missing or empty |number=

The |number= parameter is required. The tweet URL and date are derived from |number=. If |user= or |number= are missing, the URL defaults to https://twitter.com/ Copy the long number behind the final / of the tweet's URL into this parameter. For example, if the Tweet URL is https://twitter.com/pigsonthewing/status/564068436633214977, the template requires |number=564068436633214977

Invalid |number=

This error indicates that the required |number= parameter does not match a tweet's URL. Copy the long number behind the final \ of the tweet's URL into this parameter. For example, if the Tweet URL is https://twitter.com/pigsonthewing/status/564068436633214977, the template requires |number=564068436633214977

|date= required

The |date= parameter is required for tweets posted before November 4, 2010. The |date= parameter is optional for tweets posted after November 4, 2010, as the date is determined from the |number= parameter. For earlier tweets, manually type the date into |date=.

|date= / |number= mismatch

The tweet date is derived from the |number= parameter for tweets posted after November 4, 2010. If the optional |date= parameter is used and off by more than a day from the calculated date, an error is displayed. If the |number= is correct, remove or correct the |date=.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cite tweet in articles based on its TemplateData.

TemplateData for Cite tweet

Lua error: Internal error: The interpreter has terminated with signal "9".

A template for citing tweets posted on Twitter.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Tweet numbernumber

Numerical ID of the tweet

Numberrequired
User handleuser

Twitter account name, without the @

Stringrequired
Tweet contentstitle

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.

Stringrequired
First namefirst first1

The first name of the author, if known. If not known, then the tweet is probably not an acceptable usage of a self-published source (see WP:SPS).

Stringsuggested
Last namelast

The last name of the author.

Stringsuggested
Tweet authorauthor

Author's real name, if known. Will not change to the last name, first name format.

Stringoptional
Author's articleauthor-link authorlink

Title of existing Wikipedia article about the author

Page nameoptional
Retweeted byretweet

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

Stringoptional
Datedate

Date of the tweet; do not wikilink; do not include time.

Datesuggested
Access dateaccess-date accessdate

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

Datesuggested
Languagelanguage

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

Example
fr
Stringoptional
Tweet locationlocation

The location from which a tweet was sent.

Example
London
Stringoptional
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'

URLoptional
Archive datearchive-date archivedate

Date when the original URL was archived; do not wikilink

Dateoptional
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

Stringoptional
Tweet scriptscript-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:...

Example
ja:東京タワー
Stringoptional
Translated tweettrans-title

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

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

Booleanoptional
Date formatdf

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

Stringoptional
Quotequote

Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation

Stringoptional
Ref anchorref

An anchor identifier; can be made the target of wikilinks to full references

Stringoptional

See also

  • Lua error: Internal error: The interpreter has terminated with signal "9".
  • Lua error: Internal error: The interpreter has terminated with signal "9".
  • WP:TWITTER

Tracking category

  • [[:Category:Lua error: Internal error: The interpreter has terminated with signal "9".|Category:Lua error: Internal error: The interpreter has terminated with signal "9".]] (0)