Template talk:IMDb title
![]() | Template:IMDb title is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the IMDb title template. |
|
Archives: 1, 2Auto-archiving period: 180 days ![]() |
{{WikiProject banner shell}}
to this page and add the quality rating to that template instead of this project banner. See WP:PIQA for details.![]() | Film Template‑class | ||||||
|
{{WikiProject banner shell}}
to this page and add the quality rating to that template instead of this project banner. See WP:PIQA for details.![]() | Television Template‑class | ||||||
|
Template-protected edit request on 16 April 2022
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hey, have added a check for same Wikidata to sandbox, copied from Template:Metacritic television and changed values, please add to live. Should populate Category:IMDb ID same as Wikidata. — Preceding unsigned comment added by Indagate (talk • contribs) 08:03, 16 April 2022 (UTC)
Not done for now – To editor Indagate: is it just me? or is the text at the top of the sandbox page, and the texts on the test cases page as well, really screwed up? Seems we ? need more info on this edit, because until we're happy with the sandbox and test cases, there can be no change. P.I. Ellsworth - ed. put'r there 12:28, 23 April 2022 (UTC)
- Hey @Paine Ellsworth, thank you for responding, think it looks better now, can you take a look please? The live and sandbox look same as they should, difference should be adding to categories Indagate (talk) 14:33, 23 April 2022 (UTC)
- Thank you, Indagate, very much – and
done. P.I. Ellsworth - ed. put'r there 22:52, 23 April 2022 (UTC)
- I have reverted. The code is badly broken and incorrectly added thousands of articles to Category:IMDb ID different from Wikidata. The category should be created first if this is the right name. It shouldn't be added when no ID is even specified in the template call and the Wikidata default is used, and it shouldn't be added when the same ID as Wikidata is specified. PrimeHunter (talk) 00:37, 24 April 2022 (UTC)
- For example, Kill Switch (2017 film) was added and it just says
{{IMDb title}}
. Alien 3 was added and it says{{IMDb title|0103644|Alien 3}}
which matches wikidata:Q108543#P345 and makes the same link to https://www.imdb.com/title/tt0103644/. PrimeHunter (talk) 00:44, 24 April 2022 (UTC)- Thanks for implementing @Paine Ellsworth, and thanks for seeing issue @PrimeHunter. Thought should create categories when they have content as someone might delete if no content but will create first next time then. Not sure why it says different when pulling from same place it's checking. Issue with some is probably they have tt in front of ID there but not here so can setup ignore those letters. Will try and fix today. Indagate (talk) 06:55, 24 April 2022 (UTC)
- The check inserted a slash in
value=tt/{{{1|{{{id|}}}}}}
. I don't think a slash should ever be there. There should be no check at all if{{{1|{{{id|}}}}}}
is unspecified. PrimeHunter (talk) 12:58, 24 April 2022 (UTC)- Thanks @PrimeHunter, removed the slash and moved it up so part of the first if function so only called when ID entered, hope that looks better. Indagate (talk) 14:06, 24 April 2022 (UTC)
- The check inserted a slash in
- Thanks for implementing @Paine Ellsworth, and thanks for seeing issue @PrimeHunter. Thought should create categories when they have content as someone might delete if no content but will create first next time then. Not sure why it says different when pulling from same place it's checking. Issue with some is probably they have tt in front of ID there but not here so can setup ignore those letters. Will try and fix today. Indagate (talk) 06:55, 24 April 2022 (UTC)
- For example, Kill Switch (2017 film) was added and it just says
- I have reverted. The code is badly broken and incorrectly added thousands of articles to Category:IMDb ID different from Wikidata. The category should be created first if this is the right name. It shouldn't be added when no ID is even specified in the template call and the Wikidata default is used, and it shouldn't be added when the same ID as Wikidata is specified. PrimeHunter (talk) 00:37, 24 April 2022 (UTC)
- To editor Indagate:
reverted – thoughts? P.I. Ellsworth - ed. put'r there 00:47, 24 April 2022 (UTC)
Done I created a new sandbox doing it differently. This should avoid any errors mentioned above and a few I noticed with the implementation that were not noted. This will not categorise templates with the same value as wikidata at the moment, as mentioned above. Terasail[✉️] 20:15, 10 May 2022 (UTC)
- Thank you for sorting that Terasail, is same ID tracking possible like it is for other external link templates? Maybe with an if rule so only track if it has content to avoid issue PrimeHunter mentioned with Kill Switch (2017 film), issue they found with Alien 3 maybe possible to check for the ID with or without the tt? Indagate (talk) 20:38, 10 May 2022 (UTC)
- @Indagate Adding the "same" tracking wouldn't affect Kill Switch (2017 film) or cause unwated tracking. The main issue with Alien 3 was that it was tracked as different, which it would no longer be. But I decided to be safe and just not track it at all for the moment, it is an easy change to turn it back on, in the future if no problems with the current implementation are found. (Just change
|nocatsame=1
to|nocatsame={{{qid|}}}
for both tracking templates). Thanks, Terasail[✉️] 20:59, 10 May 2022 (UTC)Note: I have now added categorization to "same" id's Terasail[✉️] 13:37, 16 June 2022 (UTC)
- @Indagate Adding the "same" tracking wouldn't affect Kill Switch (2017 film) or cause unwated tracking. The main issue with Alien 3 was that it was tracked as different, which it would no longer be. But I decided to be safe and just not track it at all for the moment, it is an easy change to turn it back on, in the future if no problems with the current implementation are found. (Just change
- Thank you for sorting that Terasail, is same ID tracking possible like it is for other external link templates? Maybe with an if rule so only track if it has content to avoid issue PrimeHunter mentioned with Kill Switch (2017 film), issue they found with Alien 3 maybe possible to check for the ID with or without the tt? Indagate (talk) 20:38, 10 May 2022 (UTC)
- Thank you, Indagate, very much – and
- Hey @Paine Ellsworth, thank you for responding, think it looks better now, can you take a look please? The live and sandbox look same as they should, difference should be adding to categories Indagate (talk) 14:33, 23 April 2022 (UTC)
Link hide
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hey, please copy change from sandbox. Have added an if function to the wikilink so that it can be hidden. Use cases would be articles with multiple uses of the template such as List of accolades received by Marvel Cinematic Universe films#External links where it only needs to be linked at first mention in section. No change to current results per Template:IMDb title/testcases so guess uncontroversial enough for above template. I can add to doc if accepted.
{{IMDb title|section=awards|title=The Incredible Hulk|id=0800080}}
{{IMDb title/sandbox|section=awards|title=The Incredible Hulk|id=0800080|link_hide=anything except blank}}
- The Incredible Hulk at IMDb
— Preceding unsigned comment added by Indagate (talk • contribs) 13:30, 12 June 2022 (UTC)
Done — Martin (MSGJ · talk) 07:41, 16 June 2022 (UTC)
- Thank you Martin Indagate (talk) 14:12, 16 June 2022 (UTC)
Episodes list category
Have also added new tracking category to sandbox, please copy to main with above. Adapt existing tracking category for uses of this template on episode articles, for episode list articles. Adding to category if WikiData P360 (is a list of) matches Q21191270 (television series episode). Thanks, Indagate (talk) 17:17, 14 June 2022 (UTC)
Credits
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hey, please copy changes from sandbox, have copied the current switch function for the awards section for the credits section, example:
{{IMDb title|section=cast|title=The Incredible Hulk|id=0800080}}
{{IMDb title/sandbox|section=cast|title=The Incredible Hulk|id=0800080}}
Use cases would be entries in Category:Lists of actors by series, some of which already have similar, e.g. one, two
Thanks, Indagate (talk) 21:19, 3 July 2022 (UTC)
- I don't understand why it needs to point to #cast. Directors and writers are of course part of "full cast and crew". Nardog (talk) 03:39, 4 July 2022 (UTC)
- As I understand the proposal, it will save reader who click on an IMDb link the hassle of finding, and clicking, the "All cast & crew" link on IMDb's newly designed pages, where that link is now not in a prominent position. I think it would an improvement; in fact, this behaviour, although without the #cast part in the URL, could be considered as the default for this template. -- Michael Bednarek (talk) 06:50, 4 July 2022 (UTC)
- The #cast part of url is because the use cases are just cast lists so thought better to link directly to that section. Current non-template links seem to favour #cast.
- Don't think it should be default behaviour as there's lots of other information than cast & crew on main page for a title Indagate (talk) 06:59, 4 July 2022 (UTC)
- Creating a new template is another option, like Template:IMDb episodes, less code on article but another template. Thanks, Indagate (talk) 07:01, 4 July 2022 (UTC)
- (FWIW I highly recommend turning on the "reference view" at https://www.imdb.com/preferences/general if you have an IMDb account and haven't done so already. It saves you "the hassle of finding, and clicking, the 'All cast & crew'".) Nardog (talk) 15:35, 4 July 2022 (UTC)
- As I understand the proposal, it will save reader who click on an IMDb link the hassle of finding, and clicking, the "All cast & crew" link on IMDb's newly designed pages, where that link is now not in a prominent position. I think it would an improvement; in fact, this behaviour, although without the #cast part in the URL, could be considered as the default for this template. -- Michael Bednarek (talk) 06:50, 4 July 2022 (UTC)
- I don't think that having it point at #cast is a benefit just to hide writing and directing credits? It is a negative in my opinion and should be added as just "/fullcredits" rather than "/fullcredits#cast". Side note: I updated the sandbox so that there wasn't a duplicate switch. Terasail[✉️] 13:11, 4 July 2022 (UTC)
- The writing and directing credits aren't hidden, just page scrolled down a bit to focus on the part that's relevant to article, the cast. Articles where this would be used don't focus on the crew so don't need the link to focus on that part. Thanks, thought safer to just copy the switch. Thanks, Indagate (talk) 14:27, 4 July 2022 (UTC)
QID for ID retrieval
Hey, please copy changes from sandbox, fix for [1] by @Terasail: which seems to have broke the IMDb template, have tried to allign this with Template:Netflix title to hopefully fix. Converted that to sandbox and looks good in preview, and test cases look good. Thanks, Indagate (talk) 19:22, 6 July 2022 (UTC)
- @Indagate I have just added the option use just the wikidata item without an id parameter. It wasn't so much that I broke the template but that my script just assumed that it worked the same way as the netflix template. Terasail[✉️] 10:55, 7 July 2022 (UTC)
- Thanks, other changes I made were alligned with Netflix title and wasn't sure if needed here Indagate (talk) 11:20, 7 July 2022 (UTC)
- Ah yes, I did forget to remove
|nocatsame=
, however the extra parameters of {{EditAtWikidata}} should be kept for this template since they serve a different purpose than the Netflix template. Terasail[✉️] 11:55, 7 July 2022 (UTC)
- Ah yes, I did forget to remove
- Thanks, other changes I made were alligned with Netflix title and wasn't sure if needed here Indagate (talk) 11:20, 7 July 2022 (UTC)
Section: soundtrack?
Would be nice to be able to link directly to the soundtrack, just like linking to the awards. Seems to be working in the sandbox. Especially useful when linking from songs used in a film or TV series; those articles often have a "used in media" section. SQB (talk) 09:10, 15 August 2022 (UTC)
- Looks good. Don't think it would be useful for "used in media" section as IMDb should only be linked in external link section, not in main body of an article. Potential use cases in Category:2020s film soundtrack albums, and preceding decades. Have added music as an alias as seems common alternative word. Thanks, Indagate (talk) 11:21, 15 August 2022 (UTC)
Proposal to support links to the IMDb reference subpage
Cf. https://www.imdb.com/title/tt6217926/reference vs. https://www.imdb.com/title/tt6217926/
Unlike the main page for the movie, the reference subpage is not full of ads and contains the sort of information that Wikipedia users might actually be looking for. Right now the template doesn't support linking to the reference subpage.
There are two possible implementations:
- Make the reference page the default
- Support the reference subpage as a section parameter, giving editors the option of linking to the IMDb main page or the reference subpage
Brought here from Wikipedia:Village_pump_(proposals)#Change_URLs_of_IMDb_links, where the idea was put forward by Otto von B. Andreas JN466 15:26, 7 October 2022 (UTC)
- Oppose 1, provides less information overall, similar number of ads.
- Oppose 2, not something that needs to be an option as isn't an article that needs it specifically, so would create inconsistency
- Thanks, Indagate (talk) 16:36, 7 October 2022 (UTC)
- Support at least number 2 (adding "reference" as a section parameter like "award"). The information on the reference page is the sort I am looking for from an IMDB link. I feel unqualified to support it as the default option, but I would not oppose this. 68.189.242.116 (talk) 19:20, 15 October 2022 (UTC)