Template:IMDb title/doc

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:

Named parameters:
 * – for short films
 * – for short films
 * – for short films
 * – for short films
 * – for short films

Using Wikidata property :
 * – for short films
 * – for short films
 * – for short films
 * – for short films
 * – for short films

Instructions

 * 1) Search on IMDb.com for the title you want. On the Wikipedia page of the film concerned this can often be done with the link produced by previewing   (this may not work if the page title is more than just the film title).
 * 2) 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.
 * 3) The page URL should look like this:
 * where  indicates a number.
 * 1) Copy the 7- or 8-digit ID number that appears after   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.
 * 2) Add the following to the external links section of the article:
 * or
 * where  is the number you've copied, and   is the title of the movie or show.
 * 1) (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:
 * where  is the number you've copied,   is the title of the movie or show, and   is the description of the show, in parentheses.
 * 1) (Optional) There is also the   parameter which can be set to   to link to the Awards section of the site.
 * 2) If the IMDb page is about a short film, add 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. y or true. Note: For an episode of a TV series, use  instead of this template.
 * where  is the number you've copied,   is the title of the movie or show, and   is the description of the show, in parentheses.
 * 1) (Optional) There is also the   parameter which can be set to   to link to the Awards section of the site.
 * 2) If the IMDb page is about a short film, add 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. y or true. Note: For an episode of a TV series, use  instead of this template.

Parameter: id (1)

 * 1) Search on IMDb.com for the title Alpha Dog. This can also be done on the Wikipedia page by previewing   and clicking that link (https://www.imdb.com/find?q=Alpha+Dog&s=tt).
 * 2) On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is:
 * or
 * 1) Copy   and add it to the template.

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)




Parameter: description (3)




Parameter: section




Parameter: quotes
Used for short films, which take quotation marks instead of the default italics.



TemplateData
{       "description": "This is a template to generate links to Internet Movie Database.", "params": { "id": { "label": "ID", "aliases" : [ "1" ], "description": "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, but required if not.", "type": "number", "required": false, "default": "Wikidata property P345 or IMDb search URL" },               "title": { "label": "Title", "aliases" : [ "2" ], "description": "Title of the production. Defaults to the Wikipedia article name, without any disambiguation such as (film).", "type": "string", "required": false, "default": "" },               "description": { "label": "Description", "aliases" : [ "3" ], "description": "Description of the production, such as the year made (in parentheses).", "type": "string", "required": false },               "section": { "label": "Section", "description": "Can 'award' or 'awards' which makes a link to the awards page. Other values are ignored.", "type": "string", "required": false }       } }

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.

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)