Template:IMDb episode

From Hârn
Jump to navigation Jump to search

"{{{episode}}}" on IMDb

Template documentation[view] [edit] [history] [purge]

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.

To link an episode list, use {{IMDb episodes}} instead.
To link a work (film/movie, TV or Web program/series, video game, etc.), use {{IMDb title}} instead.
To link a person (actor, actress, etc.), use {{IMDb name}} instead.
To link a company, use {{IMDb company}} instead.

Usage[edit source]

Unnamed parameters:

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

Named parameters:

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

Using Wikidata property Lua error in Module:Wikidata_label at line 62: attempt to index field 'wikibase' (a nil value). (P345):

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

Options[edit source]

The required parameter is just the ID number (for backward compatibility, the parameter can be named id) 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, it can be named Episode):

* {{IMDb episode | ID | Episode }}

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

Detailed instructions[edit source]

  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:
      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:

Examples[edit source]

ID in Wikidata[edit source]

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

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

Output:

No ID in template or Wikidata[edit source]

Usage:

* {{IMDb episode}}

Output:

  • "IMDb episode" on IMDbLua error in Module:EditAtWikidata at line 36: attempt to index field 'wikibase' (a nil value).

See also[edit source]

External links[edit source]