Template:IMDb title/doc: Difference between revisions
No edit summary |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{#ifeq:{{SUBPAGENAME}}|sandbox| | {{#ifeq:{{SUBPAGENAME}}|sandbox|}} | ||
This template is used to generate an external link to a web page at [[IMDb]]. It should be used exclusively for TITLES, movies, TV series, games, etc., and is intended for use in the | This template is used to generate an external link to a web page at [[w:IMDb|IMDb]]. It should be used exclusively for TITLES, movies, TV series, games, etc., and is intended for use in the external links section of an article. | ||
* For a person (actor, actress, etc.), use {{tl|IMDb name}}. | * For a person (actor, actress, etc.), use {{tl|IMDb name}}. | ||
Line 14: | Line 14: | ||
* {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }} | * {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> }} | * {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var> }} | * {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var> | qid{{=}} <var>QID</var>}} | * {{tlx|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> | <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var> | qid{{Magic word|1==}} <var>QID</var>}} | ||
Named parameters: | Named parameters: | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> }} | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> | title{{Magic word|1==}} <var>TITLE</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var>}} | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var>}} | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var> | qid{{=}} <var>QID</var>}} | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var> | qid{{Magic word|1==}} <var>QID</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | quotes{{=}} yes }} – for short films | * {{tlx|{{BASEPAGENAME}} | id{{Magic word|1==}} <var>ID</var> | quotes{{Magic word|1==}} yes }} – for short films | ||
Using [[Wikidata]] property {{Property|345}}: | Using [[w:Wikidata|Wikidata]] property {{Property|345}}: | ||
* {{tlx|{{BASEPAGENAME}} }} | * {{tlx|{{BASEPAGENAME}} }} | ||
* {{tlx|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }} | * {{tlx|{{BASEPAGENAME}} | title{{Magic word|1==}} <var>TITLE</var> }} | ||
* {{tlx|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var>}} | * {{tlx|{{BASEPAGENAME}} | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var>}} | * {{tlx|{{BASEPAGENAME}} | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> | description{{=}} <var>DESCRIPTION</var> | section{{=}} <var>SECTION</var> | qid{{=}} <var>QID</var>}} | * {{tlx|{{BASEPAGENAME}} | title{{Magic word|1==}} <var>TITLE</var> | description{{Magic word|1==}} <var>DESCRIPTION</var> | section{{Magic word|1==}} <var>SECTION</var> | qid{{Magic word|1==}} <var>QID</var>}} | ||
* {{tlx|{{BASEPAGENAME}} | quotes{{=}} yes }} – for short films | * {{tlx|{{BASEPAGENAME}} | quotes{{Magic word|1==}} yes }} – for short films | ||
== Instructions == | == Instructions == | ||
# Search on [https://www.imdb.com IMDb.com] for the title you want. On the | # Search on [https://www.imdb.com IMDb.com] for the title you want. On the wiki page of the film concerned this can often be done with the link produced by previewing <code><nowiki>{{IMDb title}}</nowiki></code> (this may not work if the page title is more than just the film title). | ||
# Click on the correct link to go to the movie's page (or whatever you're looking for). Be sure you're getting on the correct title page. | # Click on the correct link to go to the movie's page (or whatever you're looking for). Be sure you're getting on the correct title page. | ||
# The page [[Uniform resource locator|URL]] should look like this: | # The page [[w:Uniform resource locator|URL]] should look like this: | ||
#: <code><nowiki>https://www.imdb.com/title/tt</nowiki>{{Hilite|######}}/</code> | #: <code><nowiki>https://www.imdb.com/title/tt</nowiki>{{Hilite|######}}/</code> | ||
#: where <code>######</code> indicates a number. | #: where <code>######</code> indicates a number. | ||
# Copy the 7- or 8-digit ID number that appears after <code>tt</code> in the URL. The leading "tt" is not required, but the template will still work if it is included. The leading zeros in the number are recommended for [[#Linksearch|Linksearch]] uniformity. | # Copy the 7- or 8-digit ID number that appears after <code>tt</code> in the URL. The leading "tt" is not required, but the template will still work if it is included. The leading zeros in the number are recommended for [[#Linksearch|Linksearch]] uniformity. | ||
# Add the following to the external links section of the article: | # Add the following to the external links section of the article: | ||
#: {{tlx|IMDb title|{{Hilite|######}}|''Film Name''}} or {{tlx|IMDb title|id{{=}}{{Hilite|######}}|title{{=}}''Film Name''}} | #: {{tlx|IMDb title|{{Hilite|######}}|''Film Name''}} or {{tlx|IMDb title|id{{Magic word|1==}}{{Hilite|######}}|title{{Magic word|1==}}''Film Name''}} | ||
#: where <code>######</code> is the number you've copied, and <code>''Film Name''</code> is the title of the movie or show. | #: where <code>######</code> is the number you've copied, and <code>''Film Name''</code> is the title of the movie or show. | ||
# (Optional) If you want to add an additional description to distinguish this film/show from another that may be on the same page with the same name, use the following text: | # (Optional) If you want to add an additional description to distinguish this film/show from another that may be on the same page with the same name, use the following text: | ||
Line 52: | Line 52: | ||
=== Parameter: id (1) === | === Parameter: id (1) === | ||
# Search on [https://www.imdb.com IMDb.com] for the title ''[[Alpha Dog]]''. This can also be done on the Wikipedia page by previewing {{tlx|IMDb title}} and clicking that link (https://www.imdb.com/find?q=Alpha+Dog&s=tt). | # Search on [https://www.imdb.com IMDb.com] for the title ''[[w:Alpha Dog|Alpha Dog]]''. This can also be done on the Wikipedia page by previewing {{tlx|IMDb title}} and clicking that link (https://www.imdb.com/find?q=Alpha+Dog&s=tt). | ||
# On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is: | # On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is: | ||
#: <code>[https://www.imdb.com/title/tt0426883/ https://www.imdb.com/title/tt{{Hilite|0426883}}/]</code> or <code>[http://www.imdb.com/title/tt0426883/ http://www.imdb.com/title/tt{{Hilite|0426883}}/]</code> | #: <code>[https://www.imdb.com/title/tt0426883/ https://www.imdb.com/title/tt{{Hilite|0426883}}/]</code> or <code>[http://www.imdb.com/title/tt0426883/ http://www.imdb.com/title/tt{{Hilite|0426883}}/]</code> | ||
# Copy <code>0426883</code> and add it to the template: | # Copy <code>0426883</code> and add it to the template: | ||
#* {{tlx|IMDb title|0426883|_show_result=y}} | #* {{tlx|IMDb title|0426883|_show_result=y}} | ||
#* {{tlx|IMDb title|id{{=}}0426883}} | #* {{tlx|IMDb title|id{{Magic word|1==}}0426883}} | ||
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front. | Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front. | ||
Line 63: | Line 63: | ||
=== Parameter: title (2) === | === Parameter: title (2) === | ||
* {{tlx|IMDb title|0426883|Alpha Dog|_show_result=y}} | * {{tlx|IMDb title|0426883|Alpha Dog|_show_result=y}} | ||
* {{tlx|IMDb title|id{{=}}0426883|title{{=}}Alpha Dog|_show_result=y}} | * {{tlx|IMDb title|id{{Magic word|1==}}0426883|title{{Magic word|1==}}Alpha Dog|_show_result=y}} | ||
=== Parameter: description (3) === | === Parameter: description (3) === | ||
* {{tlx|IMDb title|0106117|Route 66|(1993 TV series)|_show_result=y}} | * {{tlx|IMDb title|0106117|Route 66|(1993 TV series)|_show_result=y}} | ||
* {{tlx|IMDb title|id{{=}}0106117|title{{=}}Route 66|description{{=}}(1993 TV series)|_show_result=y}} | * {{tlx|IMDb title|id{{Magic word|1==}}0106117|title{{Magic word|1==}}Route 66|description{{Magic word|1==}}(1993 TV series)|_show_result=y}} | ||
=== Parameter: section === | === Parameter: section === | ||
* {{tlx|IMDb title|0111282|Stargate|section= awards|_show_result=y}} | * {{tlx|IMDb title|0111282|Stargate|section= awards|_show_result=y}} | ||
* {{tlx|IMDb title|id{{=}}0111282|title{{=}}Stargate|description{{=}}(1994 film)|section{{=}}awards|_show_result=y}} | * {{tlx|IMDb title|id{{Magic word|1==}}0111282|title{{Magic word|1==}}Stargate|description{{Magic word|1==}}(1994 film)|section{{Magic word|1==}}awards|_show_result=y}} | ||
=== Parameter: qid === | === Parameter: qid === | ||
* {{tlx|IMDb title|qid{{=}}Q105801|title{{=}}Stargate|_show_result=y}} | * {{tlx|IMDb title|qid{{Magic word|1==}}Q105801|title{{Magic word|1==}}Stargate|_show_result=y}} | ||
* {{tlx|IMDb title|qid{{=}}Q105801|title{{=}}Stargate|description{{=}}(1994 film)|section{{=}}awards|_show_result=y}} | * {{tlx|IMDb title|qid{{Magic word|1==}}Q105801|title{{Magic word|1==}}Stargate|description{{Magic word|1==}}(1994 film)|section{{Magic word|1==}}awards|_show_result=y}} | ||
=== Parameter: quotes === | === Parameter: quotes === | ||
Used for short films, which take quotation marks instead of the default italics. | Used for short films, which take quotation marks instead of the default italics. | ||
* {{tlx|IMDb title|id{{=}}42360|title{{=}}Cue Ball Cat|quotes{{=}}y}} | * {{tlx|IMDb title|id{{Magic word|1==}}42360|title{{Magic word|1==}}Cue Ball Cat|quotes{{Magic word|1==}}y}} | ||
==TemplateData== | ==TemplateData== | ||
Line 122: | Line 122: | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
"link_hide": { | "link_hide": { | ||
Line 155: | Line 152: | ||
* {{Category link with count|Pages using IMDb title instead of IMDb episode}} | * {{Category link with count|Pages using IMDb title instead of IMDb episode}} | ||
* {{Category link with count|Pages using IMDb title instead of IMDb episodes}} | * {{Category link with count|Pages using IMDb title instead of IMDb episodes}} | ||
Similar television title template: | Similar television title template: | ||
Line 177: | Line 171: | ||
[[Category:Film external link templates]] | [[Category:Film external link templates]] | ||
[[Category:Television external link templates]] | [[Category:Television external link templates]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
[[Category:IMDb templates]] | [[Category:IMDb templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 17:08, 8 April 2023
This is a documentation subpage for Template:IMDb title It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to generate an external link to a web page at IMDb. It should be used exclusively for TITLES, movies, TV series, games, etc., and is intended for use in the external links section of an article.
- For a person (actor, actress, etc.), use {{IMDb name}}.
- For a specific TV episode or Web series episode, use {{IMDb episode}}.
- For an episode list, use {{IMDb episodes}}.
Usage
Unnamed parameters:
- {{IMDb title | ID}}
- {{IMDb title | ID| TITLE}}
- {{IMDb title | ID| TITLE| DESCRIPTION}}
- {{IMDb title | ID| TITLE| DESCRIPTION| section{{=}} SECTION}}
- {{IMDb title | ID| TITLE| DESCRIPTION| section{{=}} SECTION| qid{{=}} QID}}
Named parameters:
- {{IMDb title | id{{=}} ID}}
- {{IMDb title | id{{=}} ID| title{{=}} TITLE}}
- {{IMDb title | id{{=}} ID| title{{=}} TITLE| description{{=}} DESCRIPTION}}
- {{IMDb title | id{{=}} ID| title{{=}} TITLE| description{{=}} DESCRIPTION| section{{=}} SECTION}}
- {{IMDb title | id{{=}} ID| title{{=}} TITLE| description{{=}} DESCRIPTION| section{{=}} SECTION| qid{{=}} QID}}
- {{IMDb title | id{{=}} ID| quotes{{=}} yes}} – for short films
Using Wikidata property (P345):
- {{IMDb title }}
- {{IMDb title | title{{=}} TITLE}}
- {{IMDb title | title{{=}} TITLE| description{{=}} DESCRIPTION}}
- {{IMDb title | title{{=}} TITLE| description{{=}} DESCRIPTION| section{{=}} SECTION}}
- {{IMDb title | title{{=}} TITLE| description{{=}} DESCRIPTION| section{{=}} SECTION| qid{{=}} QID}}
- {{IMDb title | quotes{{=}} yes}} – for short films
Instructions
- Search on IMDb.com for the title you want. On the wiki page of the film concerned this can often be done with the link produced by previewing
{{IMDb title}}
(this may not work if the page title is more than just the film title). - Click on the correct link to go to the movie's page (or whatever you're looking for). Be sure you're getting on the correct title page.
- The page URL should look like this:
https://www.imdb.com/title/tt######/
- where
######
indicates a number.
- Copy the 7- or 8-digit ID number that appears after
tt
in the URL. The leading "tt" is not required, but the template will still work if it is included. The leading zeros in the number are recommended for Linksearch uniformity. - Add the following to the external links section of the article:
- {{IMDb title|######|Film Name}} or {{IMDb title|id{{=}}######|title{{=}}Film Name}}
- where
######
is the number you've copied, andFilm Name
is the title of the movie or show.
- (Optional) If you want to add an additional description to distinguish this film/show from another that may be on the same page with the same name, use the following text:
- {{IMDb title|#######|Title|Description}}
- where
#######
is the number you've copied,Title
is the title of the movie or show, andDescription
is the description of the show, in parentheses.
- (Optional) There is also the
section
parameter which can be set toawards
to link to the Awards section of the site. - If the IMDb page is about a short film, add
|quotes=yes
to display with quotation marks (per MOS:TITLES rather than the template's default italics; any value for this parameter will work, e.g.|quotes=y
or|quotes=true
. Note: For an episode of a TV series, use {{IMDb episode}} instead of this template.
Examples
Parameter: id (1)
- Search on IMDb.com for the title Alpha Dog. This can also be done on the Wikipedia page by previewing {{IMDb title}} and clicking that link (https://www.imdb.com/find?q=Alpha+Dog&s=tt).
- On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is:
- Copy
0426883
and add it to the template:- {{IMDb title|0426883}}
- {{IMDb title|id{{=}}0426883}}
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.
Parameter: title (2)
- {{IMDb title|0426883|Alpha Dog}}
- {{IMDb title|id{{=}}0426883|title{{=}}Alpha Dog}}
Parameter: description (3)
- {{IMDb title|0106117|Route 66|(1993 TV series)}}
- {{IMDb title|id{{=}}0106117|title{{=}}Route 66|description{{=}}(1993 TV series)}}
Parameter: section
- {{IMDb title|0111282|Stargate}}
- {{IMDb title|id{{=}}0111282|title{{=}}Stargate|description{{=}}(1994 film)|section{{=}}awards}}
Parameter: qid
- {{IMDb title|qid{{=}}Q105801|title{{=}}Stargate}}
- {{IMDb title|qid{{=}}Q105801|title{{=}}Stargate|description{{=}}(1994 film)|section{{=}}awards}}
Parameter: quotes
Used for short films, which take quotation marks instead of the default italics.
- {{IMDb title|id{{=}}42360|title{{=}}Cue Ball Cat|quotes{{=}}y}}
TemplateData
TemplateData for IMDb title
This is a template to generate links to Internet Movie Database.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | Number of the IMDb title, taken from the numbers at the end of its IMDb URL. This parameter is optional if Wikidata property P345 contains an ID starting with tt or the qid paramter is used, but required if not.
| Number | optional |
Title | title 2 | Title of the production. Defaults to the Wikipedia article name, without any disambiguation such as (film).
| String | optional |
Description | description 3 | Description of the production, such as the year made (in parentheses). | String | optional |
Section | section | Can 'award' or 'awards' which makes a link to the awards page. Other values are ignored. | String | optional |
link_hide | link_hide | If parameter is used and has something other than blank, IMDb will not be wikilinked | Unknown | optional |
Wikidata
The Wikidata project provides a central collection of information and parameters for articles for the various Wikimedia Foundation projects. This includes the IMDB title codes for films. For example, the film Space Milkshake has a corresponding Wikidata item (Q7572422), which in turn includes an IMDb identifier. If {{IMDb title}} is invoked in an article without the "id" parameter, and if Wikidata has an IMDb identifier specified for that article's corresponding item, the IMDb link with its title code will be included automatically.
For new film articles, the IMDb identifier property (and the film title item itself) may need to be added at Wikidata first, so that the default IMDb link can be available for use on Wikipedia and other Wikimedia projects.
This Wikidata capability was implemented on the English Wikipedia as of April 2013.
Note that the title code (first parameter) can still be specified as before and this will override the Wikidata default e.g. where this template is used to link to a film whose title does not correspond to the subject of the article (for example, in the case of a single article about a film and its sequels).
The second parameter for the film title override is still available to handle differences between article titles and film titles (e.g. due to disambiguation wording in the title). The first parameter may be left blank to default from Wikidata - for example {{IMDb title||Film title}}.
Linksearch
For a given link target (or first part of that) the pages from where there are links are found by a link such as this:
- https://en.wikipedia.org/w/index.php?title=Special:Linksearch&target=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0426 (for http links)
- https://en.wikipedia.org/w/index.php?title=Special:Linksearch&target=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0426 (for https links)
Tracking categories
- Category:IMDb template with no id set (0)
- Category:IMDb template with invalid id set (1)
- Category:Pages using IMDb title instead of IMDb episode (0)
- Category:Pages using IMDb title instead of IMDb episodes (0)
Similar television title template:
- {{BBC Programmes}}
- {{TheTVDB}}
- {{Screenonline TV title}} - which focuses on British television series
Similar film title templates:
- {{AllMovie title}}
- {{TCMDb title}}
- {{AFI film}}
- {{BFI}}
- {{Screenonline title}}
- {{Rotten Tomatoes}}
- {{Metacritic film}}
- {{Mojo title}}