Template:IMDb name/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Slarre
m (+sv)
meta>Malyctenar
(cs:Šablona:Imdb osoba; instructions combined with example (even wikipedians writing about movies don't need that much dumbing down, do they?))
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This is a template to generate links to [[Internet Movie Database]]. This template '''should be used exclusively for ''PEOPLE'''''.
This is a template to generate links to [[Internet Movie Database]], '''used exclusively for ''PEOPLE'''''.


If you need to link a movie, use [[Template:imdb title]] instead.
To link a movie, use {{tl|imdb title}} instead.
 
== Instructions ==
# Copy and paste one of the options below into the article
# Go to http://www.imdb.com and search for the person you want
# Click on the correct link to go to the person's page; be sure you're getting the right person
# The page [[URL]] should look like <tt><nowiki>http://www.imdb.com/name/nm#######/</nowiki></tt>, where "<tt>#######</tt>" indicates a number
# Copy '''only''' that number—be sure to remove the "<tt>nm</tt>" and to keep all the zeros
# Double-click "<tt>ID</tt>" in the string you pasted earlie and replace it with that number
# As needed, double-click "<tt>Name</tt>" and replace it with the person's name as you want it to appear in the link


=== Options ===
=== Options ===
This option needs just the ID number, it uses the article title as the link text:
The required parameter is just the ID number (for backward compatibility, the parameter can be named <code>id</code>) and the template then uses the article title as the [[anchor text]]:
<pre>
<pre>
* {{imdb name|ID}}
* {{imdb name|ID}}
</pre>
</pre>
Use the following option when you need to have the link text be other than the article name:
To have the link text be other than the article name, use second parameter (for backward compatibility, it can be named <code>name</code>):
 
: For example, {{imdb name|0596711| José Molina}} rather than {{imdb name|0596711| José Molina (writer)}}
 
Note that you would always use this option when adding a link to an article other than the person whom you're linking
 
: For example, if you include the IMDb link for [[Bette Davis]] in the [[Joan Crawford]] article, you must specify Bette Davis's name as the text for the link using this option
<pre>
<pre>
* {{imdb name|ID|Name}}
* {{imdb name|ID|Name}}
</pre>
</pre>
This can be used when the Wikipedia page name contains disambiguation brackets; for example at the page [[José Molina (writer)]] use <nowiki>{{</nowiki>imdb&nbsp;name|0596711|José Molina}} to have "{{imdb name|0596711| José Molina}}" rather than "{{imdb name|0596711| José Molina (writer)}}". This is also necessary should you need to add an IMDb link to an article about somebody or something other than the linked person (for example, if you include the IMDb link for [[Bette Davis]] in the [[Joan Crawford]] article, you must specify Bette Davis's name as the text for the link using this option).
Note that the options include the "<tt>*</tt>" for a bulleted list since this is most likely to be used in an "External links" section.  
Note that the options include the "<tt>*</tt>" for a bulleted list since this is most likely to be used in an "External links" section.  
=== Examples ===
 
== Detailed instructions ==
# Copy and paste one of the options above into the article
# Copy and paste one of the options above into the article
# Go to http://www.imdb.com and search for "Jack Nicholson"; you'll reach this page: <tt>http://www.imdb.com/find?s=all&q=Jack+Nicholson</t>
# Go to http://www.imdb.com and search for the person you want (say, Jack Nicholson; you'll reach <code>http://www.imdb.com/find?s=all&q=Jack+Nicholson</code>)
# Click on the correct Jack Nicholson in the list:  
# Click on the correct Jack Nicholson in the list:  
##<tt>[http://www.imdb.com/name/nm0000197/ Jack Nicholson](Actor, [http://www.imdb.com/title/tt0073486/ One Flew Over the Cuckoo's Nest] (1975))</tt>  
## <code>[http://www.imdb.com/name/nm0000197/ Jack Nicholson](Actor, [http://www.imdb.com/title/tt0073486/ One Flew Over the Cuckoo's Nest] (1975))</code>  
# You then reach this page: <tt>http://www.imdb.com/name/nm0000197/</tt>
# You then reach the page with [[URL]] looking like <tt>http://www.imdb.com/name/nm0000197/</tt> (or other 7-digit number)
# Copy "<tt>0000197</tt>", omitting the "<tt>nm</tt>"
# Copy '''only''' that number (here, "<code>0000197</code>"), omitting the "<code>nm</code>" but keep all the leading zeros (though IMDB currently seems to be able to add them as needed)
# Double-click on "<tt>ID</tt>" in the string and paste the number
# Replace "<tt>ID</tt>" in the template code with the number
## For the first option above, just double-click "<tt>ID</tt>" and paste the number you found:
## For the first option above, you'll then have
##: <tt><nowiki>* {{imdb name|0000197}}</nowiki></tt> results in:
##: <tt><nowiki>* {{imdb name|0000197}}</nowiki></tt> resulting in:
##:* {{imdb name|0000197}}
##* {{imdb name|0000197}}
##:: Note that the link text is the same as the title of the article; since the link text should be the actor's name, use the second option
##: Note that the link text is the same as the title of the page the template is used on; outside the page "Jack Nicholson", use the second option:
## For the second option double-click "<tt>ID</tt>" and paste the number, then double-click "<tt>Name</tt>" and replace it with "<tt>Jack Nicholson</tt>"
## Replace "<tt>ID</tt>" with the number ''and'' "<tt>Name</tt>" with "<tt>Jack Nicholson</tt>"
##: <tt><nowiki>* {{imdb name|0000197|Jack Nicholson}}</nowiki></tt> results in:
##: <tt><nowiki>* {{imdb name|0000197|Jack Nicholson}}</nowiki></tt> results in:
##:* {{imdb name|0000197|Jack Nicholson}}  
##:* {{imdb name|0000197|Jack Nicholson}}  


If you still have any doubts or questions about the use of the template, go to the talk page for [[User:Kieff|Kieff]] | [[User talk:Kieff|Talk]] or [[User:Chidom|Chidom]] | [[User talk:Chidom|Talk]]
If you still have any doubts or questions about the use of the template, you can ask at [[User talk:Kieff]] or [[User talk:Chidom]].


<includeonly>
<includeonly>
Line 56: Line 45:
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[bg:Шаблон:Imdb name]]
[[bg:Шаблон:Imdb name]]
[[cs:Šablona:Imdb osoba]]
[[da:Skabelon:Imdb navn]]
[[da:Skabelon:Imdb navn]]
[[de:Vorlage:IMDb Name]]
[[de:Vorlage:IMDb Name]]
Line 73: Line 63:
[[vi:Tiêu bản:Imdb name]]
[[vi:Tiêu bản:Imdb name]]
[[zh:Template:Imdb name]]
[[zh:Template:Imdb name]]
</includeonly>
</includeonly>

Revision as of 21:39, 10 January 2007

Template:Template doc page viewed directly This is a template to generate links to Internet Movie Database, used exclusively for PEOPLE.

To link a movie, use {{imdb title}} instead.

Options

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

To have the link text be other than the article name, use second parameter (for backward compatibility, it can be named name):

* {{imdb name|ID|Name}}

This can be used when the Wikipedia page name contains disambiguation brackets; for example at the page José Molina (writer) use {{imdb name|0596711|José Molina}} to have "Template:Imdb name" rather than "Template:Imdb name". This is also necessary should you need to add an IMDb link to an article about somebody or something other than the linked person (for example, if you include the IMDb link for Bette Davis in the Joan Crawford article, you must specify Bette Davis's name as the text for the link using this option).

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

Detailed instructions

  1. Copy and paste one of the options above into the article
  2. Go to http://www.imdb.com and search for the person you want (say, Jack Nicholson; you'll reach http://www.imdb.com/find?s=all&q=Jack+Nicholson)
  3. Click on the correct Jack Nicholson in the list:
    1. Jack Nicholson(Actor, One Flew Over the Cuckoo's Nest (1975))
  4. You then reach the page with URL looking like http://www.imdb.com/name/nm0000197/ (or other 7-digit number)
  5. Copy only that number (here, "0000197"), omitting the "nm" but keep all the 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 name|0000197}} resulting in:
      Note that the link text is the same as the title of the page the template is used on; outside the page "Jack Nicholson", use the second option:
    2. Replace "ID" with the number and "Name" with "Jack Nicholson"
      * {{imdb name|0000197|Jack Nicholson}} results in:

If you still have any doubts or questions about the use of the template, you can ask at User talk:Kieff or User talk:Chidom.