Template:IMDb title: Difference between revisions
From WikiMD's Wellness Encyclopedia
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{id|}}} | | |||
[https://www.imdb.com/title/tt{{{id}}}/ {{{title|IMDb}}}] | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
== Documentation == | |||
This template generates a link to a specific IMDb page for a movie or TV show. | |||
</includeonly><noinclude> | |||
== Usage == | === Usage === | ||
<syntaxhighlight lang="mediawiki"> | |||
{{IMDb|id=IMDB_ID|title=Custom Link Text}} | |||
</syntaxhighlight> | |||
=== Parameters === | |||
* `id` - The IMDb ID of the movie or TV show (mandatory). | |||
* `title` - The text to display for the link (optional, defaults to "IMDb"). | |||
=== Example === | === Example === | ||
<syntaxhighlight lang="mediawiki"> | <syntaxhighlight lang="mediawiki"> | ||
{{IMDb | {{IMDb|id=0082010|title=An American Werewolf in London}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Produces: | |||
[https://www.imdb.com/title/tt0082010/ An American Werewolf in London] | |||
== Notes == | === Notes === | ||
- The `id` parameter must be provided for the link to work. | |||
- If `title` is not specified, the link text defaults to "IMDb." | |||
- Ensure the IMDb ID is correct, including only the numeric portion (e.g., `0082010`). | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:21, 7 January 2025
Documentation[edit]
This template generates a link to a specific IMDb page for a movie or TV show.
Usage[edit]
{{IMDb|id=IMDB_ID|title=Custom Link Text}}Parameters[edit]
- `id` - The IMDb ID of the movie or TV show (mandatory).
- `title` - The text to display for the link (optional, defaults to "IMDb").
Example[edit]
{{IMDb|id=0082010|title=An American Werewolf in London}}Produces: An American Werewolf in London
Notes[edit]
- The `id` parameter must be provided for the link to work. - If `title` is not specified, the link text defaults to "IMDb." - Ensure the IMDb ID is correct, including only the numeric portion (e.g., `0082010`).