• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:IMDb episode

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template is about a single episode link. For a list of episodes, see Template:IMDb episodes.
WarningThis template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template tracks and uses Wikidata property:
  • IMDb ID (P345) (see uses)
This template uses Lua:
  • Module:EditAtWikidata (sandbox)
  • Module:Infobox television episode (sandbox)

Template:IMDb episode displays an external link to a television episode page at the Internet Movie Database (IMDb). It is used exclusively for episodes. This template is intended for use in the external links section of an article.

Usage

Unnamed parameters:

  • {{IMDb episode|ID}}
  • {{IMDb episode|ID|EPISODE}}

Named parameters:

  • {{IMDb episode|id=ID}}
  • {{IMDb episode|id=ID|episode=EPISODE}}

Using Wikidata property IMDb ID (P345):

  • {{IMDb episode}}
  • {{IMDb episode|episode=EPISODE}}

Parameters

See also: Wikipedia:External links/Perennial websites § IMDb

The required parameter is just the ID number (for backward compatibility, |id= can be used) and the template then uses the article title as the anchor text:

  • {{IMDb episode|ID}}

To have the link text be other than the article name, use second parameter (for backward compatibility, |episode= can be used):

  • {{IMDb episode|ID|EPISODE}}

Note that the examples include the * for a bulleted list since this should be used in an "External links" section.

TemplateData

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:IMDb episode in articles based on its TemplateData.

TemplateData for IMDb episode

An external link template that links to an IMDb television episode page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
ID1 id

The ID number of the IMDb episode.

Numberoptional
Title2 episode

The episode's title if different than the Wikipedia article.

Lineoptional
Description3 description

An optional description.

Lineoptional

Detailed instructions

  1. Copy and paste one of the options above into the article.
  2. Go to https://www.imdb.com, select TV episode in the search drop down menu and search for the episode you want (say, One for the Road; you'll reach https://www.imdb.com/find?s=ep&q=One+for+the+Road&x=13&y=10).
  3. Click on the correct "One for the Road" in the list:
    1. "Cheers: One for the Road (#11.25)" (1993).
  4. You then reach the page with URL looking like https://www.imdb.com/title/tt0539826/ (or other 7-digit number)
  5. Copy only that number (here, 0539826), omitting the tt part, but keep any leading zeros (though IMDb currently seems to be able to add them as needed)
  6. Replace ID in the template code with the number
    1. For the first option above, you'll then have
      * {{IMDb episode|0539826}} resulting in:
      • "IMDb episode" at IMDb
      Note that the link text is the same as the title of the page the template is used on; outside the page "One for the Road", use the second option:
    2. Replace ID with the number and Episode with One for the Road
      * {{IMDb episode|0539826|One for the Road}} results in:
      • "One for the Road" at IMDb

Examples

ID in template

Usage in the article Perchance to Dream (The Twilight Zone):

* {{IMDb episode|0734612}}
* {{IMDb episode|0734612|Perchance to Dream}}

Output:

  • "Perchance to Dream" at IMDb

ID in Wikidata

Usage in the article Perchance to Dream (The Twilight Zone):

* {{IMDb episode}}
* {{IMDb episode|episode=Perchance to Dream}}

Output:

  • "Perchance to Dream" at IMDb Edit this at Wikidata

No ID in template or Wikidata

Usage:

* {{IMDb episode}}

Output:

  • {{IMDb episode}} template missing ID and not present in Wikidata.

Tracking categories

  • Category:Pages using IMDb episode with a different name (57)
  • Category:Pages using IMDb episode with unknown parameters (0)
  • Category:IMDb episode ID different from Wikidata (39)
  • Category:IMDb episode ID not in Wikidata (91)

See also

  • {{IMDb title|quotes=yes}} for non-episodes which need quotes
  • Category:Pages using IMDb title instead of IMDb episode (9)
  • Wikipedia:IMDB
The above documentation is transcluded from Template:IMDb episode/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:IMDb_episode&oldid=1338674989"