Template:Rotten Tomatoes data/doc

 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.

Usage
Command options are described in. The optional parameter  should be the Q-identifier of the Wikidata item to be accessed, e.g.  . Alternatively, one can use the parameter   which should be the title of the Wikipedia article whose connected Wikidata item is to be accessed, e.g.  . By default, when neither   nor   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 for how to access the Wikidata item connected to an article.

Examples
In the following examples we use the film Hitch which has a corresponding Wikidata item.
 * The  command produces the Tomatometer score.
 * The  of a Wikipedia article can be given instead of.
 * The  command produces the number of critic reviews. The parameter   can be used to apply Spellnum per MOS to the count.
 * The  command produces the average rating.
 * The  command is convenient for use in tables to provide a quick overview of a score and reviews.
 * The  (or   or  ) command produces the  date from the reference if it exists, and otherwise produces the  if it exists.
 * The  command produces the  if it exists, and otherwise produces the  date from the reference if it exists. Use the   command for citations. The   command exists mostly in case the  differs from the  date for some reason.
 * The  (or  ) 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   command.
 * The  command produces the result of the template Rotten Tomatoes prose with autofilled parameters.
 * The  command produces the item's  value.
 * The  command produces the full Rotten Tomatoes URL using the item's  value and the property's formatter URL.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  command produces the  if it exists, and otherwise produces the  date from the reference if it exists. Use the   command for citations. The   command exists mostly in case the  differs from the  date for some reason.
 * The  (or  ) 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   command.
 * The  command produces the result of the template Rotten Tomatoes prose with autofilled parameters.
 * The  command produces the item's  value.
 * The  command produces the full Rotten Tomatoes URL using the item's  value and the property's formatter URL.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  (or  ) 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   command.
 * The  command produces the result of the template Rotten Tomatoes prose with autofilled parameters.
 * The  command produces the item's  value.
 * The  command produces the full Rotten Tomatoes URL using the item's  value and the property's formatter URL.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  command produces the item's  value.
 * The  command produces the full Rotten Tomatoes URL using the item's  value and the property's formatter URL.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  command produces the full Rotten Tomatoes URL using the item's  value and the property's formatter URL.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  command wraps the template EditAtWikidata, linking to.
 * The  command wraps the template EditAtWikidata, linking to.

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