Difference between revisions of "Template:IMDb episode/doc"
Jump to navigation
Jump to search
imported>SMcCandlish (crossref) |
imported>SMcCandlish (markup cleanup (note: the <tt> element hasn't existed in HTML for over a decade)) |
||
| Line 23: | Line 23: | ||
</pre> | </pre> | ||
| − | Note that the | + | Note that the examples include the <code>*</code> for a bulleted list since this is most likely to be used in an "External links" section. |
==Detailed instructions== | ==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, select TV episode in the search drop down menu and search for the episode you want (say, One for the Road; you'll reach <code>http://www.imdb.com/find?s=ep&q=One+for+the+Road&x=13&y=10</code>) | + | # Go to http://www.imdb.com, select TV episode in the search drop down menu and search for the episode you want (say, One for the Road; you'll reach <code>http://www.imdb.com/find?s=ep&q=One+for+the+Road&x=13&y=10</code>). |
| − | # Click on the correct One for the Road in the list: | + | # Click on the correct "One for the Road" in the list: |
| − | ## <code>[http://www.imdb.com/title/tt0539826/ "Cheers: One for the Road (#11.25)"] (1993)</code> | + | ## <code>[http://www.imdb.com/title/tt0539826/ "Cheers: One for the Road (#11.25)"] (1993)</code>. |
| − | # You then reach the page with [[URL]] looking like < | + | # You then reach the page with [[URL]] looking like <code><nowiki>http://www.imdb.com/title/tt0539826/</nowiki></code> (or other 7-digit number) |
| − | # Copy | + | # Copy {{strong|only}} that number (here, <samp>0539826</samp>), omitting the <code>tt</code> part, but keep any leading zeros (though IMDb currently seems to be able to add them as needed) |
| − | # Replace | + | # Replace <var>ID</var> in the template code with the number |
## For the first option above, you'll then have | ## For the first option above, you'll then have | ||
| − | ##: < | + | ##: <code><nowiki>* {{IMDb episode | 0539826 }}</nowiki></code> resulting in: |
##* {{IMDb episode | 0539826 }} | ##* {{IMDb episode | 0539826 }} | ||
| − | ##: Note that the link text is the same as the title of the page the template is used on; outside the page | + | ##: Note that the link text is the same as the title of the page the template is used on; outside the page [[One for the Road]], use the second option: |
| − | ## Replace | + | ## Replace <var>ID</var> with the number {{em|and}} <var>Episode</var> with <code>One for the Road</code> |
| − | ##: < | + | ##: <code><nowiki>* {{IMDb episode | 0539826 | One for the Road }}</nowiki></code> results in: |
##:* {{IMDb episode | 0539826 | One for the Road }} | ##:* {{IMDb episode | 0539826 | One for the Road }} | ||
Revision as of 09:22, 8 November 2017
| This is a documentation subpage for Template:IMDb episode. It contains usage information, categories and other content that is not part of the original template page. |
This is a template to generate links to Internet Movie Database, used exclusively for EPISODES.
- To link an episode list, use {{IMDb episodes}} instead.
- To link a work (film/movie, TV or Web program/series, video game, etc.), use {{IMDb title}} instead.
- To link a person (actor, actress, etc.), use {{IMDb name}} instead.
- To link a company, use {{IMDb company}} instead.
- To link a character, use {{IMDb character}} 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 episode | ID }}
To have the link text be other than the article name, use second parameter (for backward compatibility, it can be named Episode):
* {{IMDb episode | ID | Episode }}
Note that the examples include the * for a bulleted list since this is most likely to be used in an "External links" section.
Detailed instructions
- Copy and paste one of the options above into the article.
- Go to http://www.imdb.com, select TV episode in the search drop down menu and search for the episode you want (say, One for the Road; you'll reach
http://www.imdb.com/find?s=ep&q=One+for+the+Road&x=13&y=10). - Click on the correct "One for the Road" in the list:
- You then reach the page with URL looking like
http://www.imdb.com/title/tt0539826/(or other 7-digit number) - Copy only that number (here, 0539826), omitting the
ttpart, but keep any leading zeros (though IMDb currently seems to be able to add them as needed) - Replace ID in the template code with the number
- For the first option above, you'll then have
* {{IMDb episode | 0539826 }}resulting in:
- "Template:PAGENAMEBASE" at IMDbScript error: No such module "EditAtWikidata".
- Note that the link text is the same as the title of the page the template is used on; outside the page One for the Road, use the second option:
- Replace ID with the number and Episode with
One for the Road* {{IMDb episode | 0539826 | One for the Road }}results in:- "One for the Road" at IMDbScript error: No such module "EditAtWikidata".
- For the first option above, you'll then have
See also
{{IMDb title|quotes=yes}}for short films that are not actually episodes of series- Wikipedia:IMDB