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
(test -- replacing PAGENAMEBASE with PAGENAME for now until we have Scribunto)
(cat)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.imdb.com/{{#if:{{{1|{{{id|}}}}}}|title/{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|tt|{{Trim|{{{1|{{{id}}}}}}}}|tt{{#if:{{str len|{{{1|{{{id}}}}}}}}<7|{{str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}}}}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?{{urlencode:{{PAGENAME}}}}}}}}/{{#switch:{{lc:{{{section|}}} }}
[http://www.imdb.com/{{#if:{{{1|{{{id|}}}}}}|title/{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|tt|{{Trim|{{{1|{{{id}}}}}}}}|tt{{#if:{{str len|{{{1|{{{id}}}}}}}}<7|000000{{Trim|{{{1|{{{id}}}}}}}}}}}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?{{urlencode:{{PAGENAME}}}}}}}}/{{#switch:{{lc:{{{section|}}} }}
|award|awards=awards Awards for
|award|awards=awards Awards for
}} ''{{{2|{{{title|{{PAGENAME}}}}}}}}'' {{{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|{{BASEPAGENAME}}}}}}}}{{{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>
{{templateinfo|1=
{{templateinfo|1=
;Purpose
;Purpose
Line 58: Line 58:


;Example
;Example
What to write?
<nowiki>{{IMDb title|6214468|The Russian Bride}}</nowiki> gives {{IMDb title|6214468|The Russian Bride}}
}}
}}
[[Category:Wikisage:Template:Link]]
</noinclude>
</noinclude>

Latest revision as of 22:46, 1 February 2017

IMDb title 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 IMDb title 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

{{IMDb title|6214468|The Russian Bride}} gives The Russian Bride at the Internet Movie Database