Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
View • Edit • History |
- The following documentation is transcluded from Template:IMDb/doc:
Usage
This template is used to link to the Internet Movie Database website entries. A variable is required giving the end path to the page in question, and a second variable can be used to alter the linking text.
If no initial variables are given, the link will go to the main webpage, such as:
{{IMDb}}
Which would produce:
To link to a page, for example the one for William Shatner, you would have a template call as such:
{{IMDb|name/nm0000638}}
This would produce:
If displayed text is desired for the link, such as "James T. Kirk", the following format should be used:
{{IMDb|name/nm0000638|James T. Kirk}}
This would produce:
If you wish the link to be formatted as an external link, for example on William Shatner's page, the following format should be used:
{{IMDb|name/nm0000638||external}}
This would produce:
If you wish the external link to display different text, the following format should be used:
{{IMDb|name/nm0000638|James T. Kirk|external}}
This would produce:
A "type" variable can be used to automatically format the displayed link text to the correct format for episodes and films by choosing either "episode" or "title".