Template:Imdb name: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m (you need to watch out for those white spaces) |
Tag: apiedit |
||
(41 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{id|}}}|* {{imdb|name|{{{id}}}{{!}}{{{name|{{da smw|{{PAGENAME}}}}}}}}}|<div id=tech>'''Warning''': You must enter a valid IMDb ID number for {{PAGENAME}}. [[:template:Imdb name|Click here for further instructions]].</div>{{cat|Pages with missing IMDb IDs}}}}</includeonly><noinclude>{{documentation}}[[Category:External links templates|{{PAGENAME}}]][[Category:Templates that add a tracking category]]</noinclude> | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 02:01, 11 June 2017
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=}}
- ↑ 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 lettersnm
in an imdb.com URL, such as:
- 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
- Imdb name at the Internet Movie Database
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}}
Warning: You must enter a valid IMDb ID number for Imdb name. Click here for further instructions.