Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Examples  





1.2  Error detection  







2 TemplateData  





3 Tracking category  





4 See also  














Template:Rotten Tomatoes data






Bosanski
فارسی

Bahasa Indonesia

Português
Română


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


  • {{Rt data}}
  • {{Rotten tomatoes data}}
  • 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.

    Usage

    {{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 (film). 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

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

    Error detection

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

    TemplateData

    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

    Retrieves 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.
    Command1

    Command which tells this template what value to return. For usage examples and explanations, see the full documentation at "Template:Rotten Tomatoes data/doc". The "score" command returns the Tomatometer score, e.g. 99%. The "count" command returns the number of reviews, e.g. 112. The "average" command returns the average rating, e.g. 5.5/10. The "table" command returns the score and count in the format "XX% (YYY reviews)". The "rtid" command returns the Rotten Tomatoes ID, e.g. m/titanic. The "url" command returns the url, e.g. https://www.rottentomatoes.com/m/titanic. The "date" command returns the date on which the Tomatometer score was accurate, e.g. October 1, 2021. The "access date" command returns the date on which the Tomatometer score was retrieved and added to Wikidata, e.g. October 1, 2021. The "as of" command turns the rest of this template into a wrapper for "Template:As of" and returns the result of that template, except that any values given for the year, month, or day are converted to the corresponding value from the "date" command. The "prose" command returns the result of "Template:Rotten Tomatoes prose" with autofilled parameters. The "edit" command returns the result of "Template:EditAtWikidata", linked to property P444.

    Suggested values
    • score
    • count
    • average
    • rtid
    • url
    • date
    • access date
    • as of
    • prose
    • edit
    Example
    score
    Date formatdf

    Date format for the "date" and "access date" commands. Options are "mdy" (May 4, 2021), "dmy" (4 May 2021), "iso" (2021-05-04), and "ymd" (2021 May 4). If omitted, the "mdy" format is used.

    Suggested values
    • mdy
    • dmy
    • iso
    • ymd
    Default
    mdy
    Example
    dmy
    No prefix for rtidnoprefix

    Removes the Rotten Tomatoes ID prefix (e.g. "m/") when used with the "rtid" command. Give this parameter any value to remove the prefix.

    Suggested values
    • y
    • yes
    • true
    Example
    y
    Spell out the countspell

    Wraps the count with "Template:Spellnum per MOS" when used with the "count" command. Give this parameter any value to activate the wrapping.

    Suggested values
    • y
    • yes
    • true
    Example
    y
    Wikidata Q-identifierqid

    Q-identifier of the Wikidata item to be accessed. If both "qid" and "title" are omitted, the item connect to the current page is accessed. Only one of the parameters "qid" and "title" should be used.

    Example
    Q943338
    Title of articletitle

    Title of the Wikipedia article whose connected Wikidata item is to be accessed. If both "qid" and "title" are omitted, the item connect to the current page is accessed. Only one of the parameters "qid" and "title" should be used.

    Example
    Black Widow (2021 film)

    Tracking category

    See also

    Other templates:

    FAQ for Rotten Tomatoes:


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Rotten_Tomatoes_data&oldid=1086622657"

    Categories: 
    Lua-based templates
    Film templates
    Hidden categories: 
    Wikipedia extended-confirmed-protected templates
    Templates using TemplateData
     



    This page was last edited on 7 May 2022, at 09:23 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki