Rotten Tomatoes data retrieves (the most recent) Rotten Tomatoes data from Wikidata. Currently available only for movies.

For this template to work properly, the Wikidata item to be accessed should have Rotten Tomatoes data available, e.g. as shown here.

{{Rotten Tomatoes data|command|qid=...}}
{{Rotten Tomatoes data|command|title=...}}

Command options are described in § Examples. The optional parameter qid should be the Q-identifier of the Wikidata item to be accessed, e.g. Q943338. Alternatively, one can use the parameter title which should be the title of the Wikipedia article whose connected Wikidata item is to be accessed, e.g. American Psycho (movie). By default, when neither qid nor title are provided, the item connected to the current article is accessed.

For this template to work properly, the Wikidata item to be accessed should have Rotten Tomatoes data available, e.g. as shown here. An error message is produced for missing data. See Wikipedia:Wikidata § Access from Wikipedia for how to access the Wikidata item connected to an article.

Examples

change

In the following examples we use the movie Hitch which has a corresponding Wikidata item Hitch (Q943338).

  • The score command produces the Tomatometer score.
    • {{Rotten Tomatoes data|score|qid=Q943338}} ⇒ 69%
  • The title of a Wikipedia article can be given instead of qid.
    • {{Rotten Tomatoes data|score|title=Hitch (movie)}} ⇒ 69%
  • The count command produces the number of critic reviews. The parameter spell can be used to apply {{Spellnum per MOS}} to the count.
    • {{Rotten Tomatoes data|count|qid=Q943338}} ⇒ 188
    • {{Rotten Tomatoes data|count|spell=y|title=Meadowland (movie)}}Article "Meadowland (movie)" does not exist or has no Wikidata item.
  • The average command produces the average rating.
    • {{Rotten Tomatoes data|average|qid=Q943338}} ⇒ 6.3/10
  • The table command is convenient for use in tables to provide a quick overview of a score and reviews.
    • {{Rotten Tomatoes data|table|qid=Q943338}} ⇒ 69% (188 reviews)
  • The access date (or accessdate or access-date) command produces the retrieved (P813) date from the reference if it exists, and otherwise produces the point in time (P585) if it exists.
    • {{Rotten Tomatoes data|access date|qid=Q943338}} ⇒ June 24, 2024
    • {{Rotten Tomatoes data|access date|df=dmy|qid=Q943338}} ⇒ 24 June 2024
    • {{Rotten Tomatoes data|access date|df=ymd|qid=Q943338}} ⇒ 2024 June 24
    • {{Rotten Tomatoes data|access date|df=iso|qid=Q943338}} ⇒ 2024-06-24
  • The date command produces the point in time (P585) if it exists, and otherwise produces the retrieved (P813) date from the reference if it exists. Use the access date command for citations. The date command exists mostly in case the point in time (P585) differs from the retrieved (P813) date for some reason.
    • {{Rotten Tomatoes data|date|qid=Q943338}} ⇒ June 24, 2024
  • The as of (or asof) command wraps the template {{As of}}, except that any values given for the year, month, and day parameters are converted to the corresponding value from the date command.
    • {{Rotten Tomatoes data|as of|year|month|day|qid=Q943338}} ⇒ As of 24 June 2024
    • {{Rotten Tomatoes data|as of|y|m|d|lc=y|df=us|qid=Q943338}} ⇒ as of June 24, 2024
    • {{Rotten Tomatoes data|as of|a|b|lc=y|df=us|qid=Q943338}} ⇒ as of June 2024
  • The prose command produces the result of the template {{Rotten Tomatoes prose}} with autofilled parameters.
    • {{Rotten Tomatoes data|prose|qid=Q943338}}Lua error: expandTemplate: template "Rotten Tomatoes prose" does not exist.
  • The rtid command produces the item's Rotten Tomatoes ID (P1258) value.
    • {{Rotten Tomatoes data|rtid|qid=Q943338}} ⇒ m/hitch
    • {{Rotten Tomatoes data|rtid|noprefix=y|qid=Q943338}} ⇒ hitch
  • The url command produces the full Rotten Tomatoes URL using the item's Rotten Tomatoes ID (P1258) value and the property's formatter URL.
  • The edit command wraps the template {{EditAtWikidata}}, linking to pid=P444.
    • {{Rotten Tomatoes data|edit|qid=Q943338}}Edit this at Wikidata

Error detection

change

Certain errors are reported for missing/faulty parameters and data. For example:

  • {{Rotten Tomatoes data|count}}No Wikidata item connected to current page. Need qid or title argument.
  • {{Rotten Tomatoes data|count|title=Apple Apple Apple}}Article "Apple Apple Apple" does not exist or has no Wikidata item.
  • {{Rotten Tomatoes data|score|qid=Q2}}RT data for "score" unavailable.

TemplateData

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

TemplateData for Rotten Tomatoes data

INTERNAL: Module:Format_TemplateData:568: assign to undeclared variable 'dt'

Tracking category

change

See also

change

Other templates:

FAQ for Rotten Tomatoes: