Template:AllMovie title: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{id|{{{1|}}}}}}
{{#if: {{{1|}}} |
   | [https://www.allmovie.com/movie/{{#if: {{{id|{{{1|}}}}}}
   [https://www.allmovie.com/movie/{{{1}}}-v{{{2|}}} {{{3|AllMovie}}}]
      | v{{{id|{{{1}}}}}}
      | {{PAGENAMEBASE}}
    }}{{#if: {{{tab|}}} | /{{{tab}}}}}
    ''{{#if: {{{title|{{{2|}}}}}} | {{{title|{{{2}}}}}} | {{PAGENAMEBASE}} }}'' at [[AllMovie]]
  | {{Error|The template is missing an ID and cannot fetch the AllMovie title.}}
}}
}}
</includeonly>
</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>


<noinclude>
=== Parameters ===
== Usage ==
* `1` - The movie slug in the AllMovie URL (mandatory).
This template generates a link to an AllMovie title page. It requires either a valid **AllMovie ID** or defaults to searching by the page name.
* `2` - The unique movie ID in the AllMovie URL (optional).
* `3` - The custom text for the link (optional, defaults to "AllMovie").


=== Example ===
=== Example ===
<syntaxhighlight lang="mediawiki">
<syntaxhighlight lang="mediawiki">
{{AllMovie title|id=12345|title=Example Movie|tab=review}}
{{AllMovie|an-american-werewolf-in-london|V1742|An American Werewolf in London}}
</syntaxhighlight>
</syntaxhighlight>


=== Parameters ===
Produces:
* `id` or `1` - The AllMovie ID (required).
[https://www.allmovie.com/movie/an-american-werewolf-in-london-v1742 An American Werewolf in London]
* `title` or `2` - Custom display title for the link.
 
* `tab` - Optional tab on the AllMovie page (e.g., `review`, `awards`).
If `3` is omitted:
 
<syntaxhighlight lang="mediawiki">
{{AllMovie|an-american-werewolf-in-london|V1742}}
</syntaxhighlight>


== Outputs ==
Produces:
- If '''ID''' is provided:
[https://www.allmovie.com/movie/an-american-werewolf-in-london-v1742 AllMovie]
  `[https://www.allmovie.com/movie/v12345/review ''Example Movie''] at [[AllMovie]]`
- If no ID is provided:
  An error message will display.


=== Notes ===
=== Notes ===
* Use `tab` for linking to sections like "review" or "awards".
- The `1` parameter (movie slug) is mandatory and corresponds to the movie's URL segment on AllMovie.
* If ID is missing, a default error message will show.
- 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.