Wikisage, the free encyclopedia of the second generation, is digital heritage

Template:IMDb title: Difference between revisions

From Wikisage
Jump to navigation Jump to search
(https://en.wikipedia.org/w/index.php?title=Template:IMDb_title&oldid=757984335)
 
(Templateinfo instead of Documentation)
Line 2: Line 2:
|award|awards=awards Awards for
|award|awards=awards Awards for
}} ''{{{2|{{{title|{{PAGENAMEBASE}}}}}}}}'' {{{3|{{{description|}}}}}}] at the [[IMDb|Internet Movie Database]]<includeonly>{{#if:{{{1|{{{id|}}}}}}{{#property:P345}}||{{main other|[[Category:IMDb template with no id set]]}}}}{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|tt|{{#ifeq:{{str len|{{{1|{{{id}}}}}}}}|9||{{main other|[[Category:IMDb template with invalid id set]]}}}}}}</includeonly><noinclude>
}} ''{{{2|{{{title|{{PAGENAMEBASE}}}}}}}}'' {{{3|{{{description|}}}}}}] at the [[IMDb|Internet Movie Database]]<includeonly>{{#if:{{{1|{{{id|}}}}}}{{#property:P345}}||{{main other|[[Category:IMDb template with no id set]]}}}}{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|tt|{{#ifeq:{{str len|{{{1|{{{id}}}}}}}}|9||{{main other|[[Category:IMDb template with invalid id set]]}}}}}}</includeonly><noinclude>
{{documentation}}
{{templateinfo|1=
;Purpose
This template is used to generate an external link to a web page at the Internet Movie Database. It should be used exclusively for TITLES (movies, TV series, games, etc.).
 
For a person (actor, actress, etc.), use <nowiki>{{IMDb name}}</nowiki>.
For a specific TV episode or Web series episode, use <nowiki>{{IMDb episode}}</nowiki>.
For an episode list, use <nowiki>{{IMDb episodes}}</nowiki>.
For a company, use <nowiki>{{IMDb company}}</nowiki>.
For a character, use <nowiki>{{IMDb character}}</nowiki>.
 
;Use
The template is typically used in the 'external links' section of an article.
 
==Usage==
===Unnamed parameters===
* <nowiki>{{IMDb title | ID }}</nowiki>
* <nowiki>{{IMDb title | ID | TITLE }}</nowiki>
* <nowiki>{{IMDb title | ID | TITLE | DESCRIPTION }}</nowiki>
* <nowiki>{{IMDb title | ID | TITLE | DESCRIPTION | section= SECTION }}</nowiki>
 
===Named parameters===
* <nowiki>{{IMDb title | id= ID }}</nowiki>
* <nowiki>{{IMDb title | id= ID | title= TITLE }}</nowiki>
* <nowiki>{{IMDb title | id= ID | title= TITLE | description= DESCRIPTION }}</nowiki>
* <nowiki>{{IMDb title | id= ID | title= TITLE | description= DESCRIPTION | section= SECTION }}</nowiki>
 
==Instructions==
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 {{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:
 
http://www.imdb.com/title/tt######/
 
where ###### indicates a number.
 
Copy the 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 not needed, but are recommended for Linksearch uniformity.
 
Add the following to the external links section of the article:
 
<nowiki>{{IMDb title | ###### | Film Name }}</nowiki>
 
or <nowiki>{{IMDb title | id= ###### | title= Film Name }}</nowiki>
 
where ###### is the number you've copied, and Film 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:
 
<nowiki>{{IMDb title | ####### | Title | Description }}</nowiki>
 
where ####### is the number you've copied, Title is the title of the movie or show, and Description is the description of the show, in parentheses.
 
(Optional) There is also the section parameter which can be set to awards to link to the Awards section of the site.
 
 
;Example
What to write?
}}
</noinclude>
</noinclude>

Revision as of 14:23, 31 January 2017

{{safesubst:#Invoke:String|replace|IMDb title|%s+%b()$||1|false}} at the Internet Movie Database

Template description
Purpose

This template is used to generate an external link to a web page at the Internet Movie Database. It should be used exclusively for TITLES (movies, TV series, games, etc.).

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}}. For a company, use {{IMDb company}}. For a character, use {{IMDb character}}.

Use

The template is typically used in the 'external links' section of an article.

Usage

Unnamed parameters

  • {{IMDb title | ID }}
  • {{IMDb title | ID | TITLE }}
  • {{IMDb title | ID | TITLE | DESCRIPTION }}
  • {{IMDb title | ID | TITLE | DESCRIPTION | section= SECTION }}

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

Instructions

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 {{safesubst:#Invoke:String|replace|IMDb title|%s+%b()$||1|false}} at the Internet Movie Database (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:

http://www.imdb.com/title/tt######/

where ###### indicates a number.

Copy the 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 not needed, but 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, and Film 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, and Description is the description of the show, in parentheses.

(Optional) There is also the section parameter which can be set to awards to link to the Awards section of the site.


Example

What to write?