Template:Imdb name: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{id|}}}|* {{imdb|name|{{{id}}}|{{{name|{{PAGENAME}}}}}|<span id=tech>'''Warning''': You must enter a valid IMDb number for {{{name|{{PAGENAME}}}}}. Please see {{tlx|imdb name}} for further instructions.</span>[[category:Pages with missing IMDb IDs]]}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>
<includeonly>{{#if:{{{id|}}}|* {{imdb|name|{{{id}}}|{{{name|{{PAGENAME}}}}}|<div id=tech>'''Warning''': You must enter a valid IMDb number for {{{name|{{PAGENAME}}}}}. Please see {{tlx|imdb name}} for further instructions.</div>[[category:Pages with missing IMDb IDs]]}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>

Revision as of 21:59, 3 December 2013

Instructions for {{Imdb name}}
{{imdb name}} is a specialised form of {{imdb}}. It is the preferred template for use with people, be they actors or crew members. If you want to make a link to any other type of IMDb record — company, title, whatever — you will need to use the base {{imdb}} template.

Usage

Usage could not be simpler.

Just cut and paste the following[1] onto pages:
== External links ==
{{imdb name|id=}}
  1. This assumes there is no external link section already on the page. If there is, just cut and paste only the second line of this example.

Then, insert the IMDB number after id= but before }} and you're done!

Just to explain the fields

  • The id number is the purely numerical string which follows the letters nm in an imdb.com URL, such as:
http://www.imdb.com/name/nm1112940/
You should include any leading zeros. For instance, David Tennant's is 0855039. Only by putting the whole string, including the initial 0, into id= will you have a working link to DT.

Example

ID required

This template requires that you fill in the id variable. If you don't, it will squawk at you and put the page into a special category.

{{imdb name|name=David Tennant}}