Template:AllMovie title: Difference between revisions
From WikiMD's Wellness Encyclopedia
m 1 revision imported |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if: {{{ | <includeonly> | ||
{{#if: {{{1|}}} | | |||
[https://www.allmovie.com/movie/{{{1}}}-v{{{2|}}} {{{3|AllMovie}}}] | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
== Documentation == | |||
This template generates a link to a specific movie or TV show page on AllMovie. | |||
=== Usage === | |||
<syntaxhighlight lang="mediawiki"> | |||
{{AllMovie|movie-slug|movie-id|custom-link-text}} | |||
</syntaxhighlight> | |||
=== Parameters === | |||
* `1` - The movie slug in the AllMovie URL (mandatory). | |||
* `2` - The unique movie ID in the AllMovie URL (optional). | |||
* `3` - The custom text for the link (optional, defaults to "AllMovie"). | |||
=== Example === | |||
<syntaxhighlight lang="mediawiki"> | |||
{{AllMovie|an-american-werewolf-in-london|V1742|An American Werewolf in London}} | |||
</syntaxhighlight> | |||
Produces: | |||
[https://www.allmovie.com/movie/an-american-werewolf-in-london-v1742 An American Werewolf in London] | |||
If `3` is omitted: | |||
<syntaxhighlight lang="mediawiki"> | |||
{{AllMovie|an-american-werewolf-in-london|V1742}} | |||
</syntaxhighlight> | |||
Produces: | |||
[https://www.allmovie.com/movie/an-american-werewolf-in-london-v1742 AllMovie] | |||
=== Notes === | |||
- The `1` parameter (movie slug) is mandatory and corresponds to the movie's URL segment on AllMovie. | |||
- The `2` parameter (movie ID) is optional but should match the AllMovie URL format (e.g., `V1742`). | |||
- The `3` parameter is optional and customizes the link text; it defaults to "AllMovie" if not provided. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:21, 7 January 2025
Documentation[edit]
This template generates a link to a specific movie or TV show page on AllMovie.
Usage[edit]
{{AllMovie|movie-slug|movie-id|custom-link-text}}Parameters[edit]
- `1` - The movie slug in the AllMovie URL (mandatory).
- `2` - The unique movie ID in the AllMovie URL (optional).
- `3` - The custom text for the link (optional, defaults to "AllMovie").
Example[edit]
{{AllMovie|an-american-werewolf-in-london|V1742|An American Werewolf in London}}Produces: An American Werewolf in London
If `3` is omitted:
{{AllMovie|an-american-werewolf-in-london|V1742}}Produces: AllMovie
Notes[edit]
- The `1` parameter (movie slug) is mandatory and corresponds to the movie's URL segment on AllMovie. - The `2` parameter (movie ID) is optional but should match the AllMovie URL format (e.g., `V1742`). - The `3` parameter is optional and customizes the link text; it defaults to "AllMovie" if not provided.