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: {{{id<includeonly>|</includeonly>}}} {{{1|}}} {{#property:P1562}}
<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.


| [https://www.allmovie.com/movie/{{#if: {{{id|{{{1<includeonly>|</includeonly>}}}}}} | v{{Trim|{{{id|{{{1}}}}}}}} | {{First word|{{#property:P1562}}|sep=,}} }}{{#switch: {{lc:{{{tab|}}}}}||review=|#default=/{{{tab}}}}} ''{{#if: {{{title|{{{2|}}}}}} | {{{title|{{{2}}}}}} | {{PAGENAMEBASE}} }}''] at [[AllMovie]]<includeonly>{{EditAtWikidata|pid=P1562|{{{id|{{{1|}}}}}}}}{{ns0|{{#ifeq:{{#invoke:String|find |source={{#if:{{{id|{{{1|}}}}}}|v{{Trim|{{{id|{{{1}}}}}}}}|{{#property:P1562}}}} |target=vm?%d |plain=false}}|1||{{Error|Invalid ID.}}[[Category:AllMovie titles with invalid value]]}}}}</includeonly>
=== Usage ===
<syntaxhighlight lang="mediawiki">
{{AllMovie|movie-slug|movie-id|custom-link-text}}
</syntaxhighlight>


| {{Error|{{tl|AllMovie title}} template missing ID and not present in Wikidata.}}<includeonly>[[Category:AllMovie titles with invalid value]]</includeonly>
=== 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.


}}<includeonly>{{#ifeq:{{lc:{{{tab|}}}}}|review|{{Main other|[[Category:AllMovie titles with a tab value of review]]}}}}</includeonly><!-- Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using AllMovie title with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:AllMovie title]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | id | tab | title }}<!--
--><noinclude>
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</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.