Template talk:Rotten Tomatoes data

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconFilm Template‑class
WikiProject iconThis template is within the scope of WikiProject Film. If you would like to participate, please visit the project page, where you can join the discussion and see lists of open tasks and regional and topical task forces. To use this banner, please refer to the documentation. To improve this article, please refer to the guidelines.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Table command[edit]

Notsniwiast Can you make a command "table" (or something named similarly) which would be a predetermined format to use the data in tables? The thought is calling {{RT data|table|qid/title=X}} would produce "XX% (YYY reviews)" in one return, which would be helpful on articles that use overview tables for film (for example, Marvel Cinematic Universe: Phase One or Fast & Furious). So {{RT data|table|title=Iron Man (2008 film)}} would, currently, produce "94% (281 reviews)". Thanks. - Favre1fan93 (talk) 20:55, 8 November 2021 (UTC)[reply]

@Favre1fan93 Added it. {{RT data|table|title=Hitch (film)}} outputs 69% (188 reviews). Winston (talk) 21:13, 8 November 2021 (UTC)[reply]
Wonderful, thank you! I'm trying to work through the MCU Phase articles to convert over, so I'll report back if any issues I see. - Favre1fan93 (talk) 21:42, 8 November 2021 (UTC)[reply]

 You are invited to join the discussion at Wikipedia:Templates for discussion/Log/2022 March 23 § Review aggregator prose templates. Notifying because if that template were deleted, the prose command of this one would no longer function. {{u|Sdkb}}talk 18:26, 25 March 2022 (UTC)[reply]

Couple issues[edit]

First time I'm using this template, forgive me if there's anything I'm missing. But I just added RT scores to Hellraiser (franchise) and have two issues. First, I'm getting "Module:Rotten_Tomatoes_data at line 384: attempt to concatenate a nil value" for the following code:

{{RT data|table||title=Hellraiser: Revelations}}<ref>{{Cite Rotten Tomatoes |id=hellraiser_revelations |title=Hellraiser: Revelations |type=m |access-date={{RT data|access date|title=Hellraiser: Revelations}}}}{{cbignore}}</ref>

I triple-checked the id to make sure it was correct, a page does exist at https://www.rottentomatoes.com/m/hellraiser_revelations I ended up just manually adding the data for now.

Also, Hellraiser seems to be getting old data, as it shows 50 reviews and an access date of October 6, 2021, even though there have been three more reviews since then. Why would that be?

Thanks for any help! -Joltman (talk) 17:10, 23 September 2022 (UTC)[reply]

This template relies on Wikidata, and there isn't the necessary parameter at https://www.wikidata.org/wiki/Q745522, compare that to https://www.wikidata.org/wiki/Q1162728#P444. October 2021 was the last time bot ran to update values at Wikidata and convert values here on Wikipedia. Thanks, Indagate (talk) 17:16, 23 September 2022 (UTC)[reply]
@Indagate, I'd hope we could run the bot a little more regularly than that. {{u|Sdkb}}talk 22:13, 24 September 2022 (UTC)[reply]
@Sdkb Sure, the bot does seem necessary for the template to be used longer-term, as they are hard to update manually. The bot operator doesn't plan to use it again but code is open-source per Wikipedia_talk:WikiProject_Film/Archive_79#Rotten_Tomatoes_Wikidata_and_current_releases. Thanks, Indagate (talk) 08:16, 25 September 2022 (UTC)[reply]

Functionality when data not found[edit]

@Wbm1058, @Indagate, @Notacardoor, could we address the error raised here? Having an autovalue for some fields but not others is not ideal, as it may lead novice editors to mistakenly claim that data was retrieved the day of the edit, rather than when it was actually retrieved. And given how RT scores can change over time, that can sometimes be a meaningful error. {{u|Sdkb}}talk 16:46, 21 November 2023 (UTC)[reply]

I patrol for pages transcluding Template:Error and most of the ~dozen items there at the moment are due to this issue. No data in Wikidata should never be a Wikipedia error. – wbm1058 (talk) 23:09, 21 November 2023 (UTC)[reply]
I've been solving this by removing the template that's failing to return a date, but that task gets tedious after a while, when editors repeatedly keep doing this. Trying to keep Wikipedia from turning into another "Frankenstein", like other Internet properties ("X"), LOL – wbm1058 (talk) 23:19, 21 November 2023 (UTC)[reply]

Referencing improvements[edit]

@Wbm1058@Indagate@Notacardoor, when {{Rotten Tomatoes data|prose}} is invoked, it'd be nice for it to provide a full reference. This is currently possible at {{Rotten Tomatoes prose}} when |ref=yes is set, and there's also {{Cite Rotten Tomatoes}}.

To be usable on featured-class articles, we'll want archiving capability as well. For that, we'll want to introduce archive-url and archive-date commands to this template. Those should be pretty simple to code, as they can be modelled off of the existing access-date and url parameters, but as I don't yet know Lua I'd appreciate help so that I don't botch anything up. Cheers, Sdkbtalk 07:38, 25 February 2024 (UTC)[reply]

Or you could just stop using Wikidata as a source for Wikipedia. Wikidata is not a reliable source, as it is crowdsourced. This just makes it very difficult for regular Wikipedia editors to supervise and maintain the Rotten Tomatoes stuff on Wikipedia. – wbm1058 (talk) 10:40, 25 February 2024 (UTC)[reply]
The merits/costs of sourcing info via Wikidata is a debate we've had (at extreme length) elsewhere, and that won't be helpful to rehash here. You're free to not use this template. Sdkbtalk 15:47, 25 February 2024 (UTC)[reply]