Difference between revisions of "Template:AllMovie title/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(update all sections to show named parameters, update formatting, add second example)
blackwiki>Zyxw
(Update based on changes to template. Add TemplateData.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This is a template used to generate external links to [[AllMovie]] (formerly known as All Movie Guide and AllRovi). This template should be used only for films and television series; to link to a person (actor, director, ''etc.'') use {{tl|AllMovie name}} instead.
+
 
 +
This template is used to generate an external link to a web page at [[AllMovie]] (formerly known as All Movie Guide and AllRovi). It should be used only for films and television series; to link to a person (actor, director, ''etc.'') use {{tl|AllMovie name}} instead.
  
 
== Usage ==
 
== Usage ==
 
Unnamed parameters:
 
Unnamed parameters:
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''<nowiki>}}</nowiki></code>
+
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''|''TITLE''<nowiki>}}</nowiki></code>
+
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''TITLE'' }}</code>
 +
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''TITLE'' | tab= ''TAB'' }}</code>
  
 
Named parameters:
 
Named parameters:
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''<nowiki>}}</nowiki></code>
+
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|title=''TITLE''<nowiki>}}</nowiki></code>
+
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' }}</code>
 +
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' | tab= ''TAB'' }}</code>
  
 
== Instructions ==
 
== Instructions ==
Line 19: Line 22:
 
#: where "<code>######</code>" indicates a number. (If it doesn't, there should be a message under the film's title which says "wrong Result? more matches HERE"; click on this link and reselect the desired film from the list.)
 
#: where "<code>######</code>" indicates a number. (If it doesn't, there should be a message under the film's title which says "wrong Result? more matches HERE"; click on this link and reselect the desired film from the list.)
 
# Copy {{em|only}} that number. Add the following text to the '''External links''' section:
 
# Copy {{em|only}} that number. Add the following text to the '''External links''' section:
#: <code><nowiki>* {{</nowiki>AllMovie title|######|''TITLE''<nowiki>}}</nowiki></code>
+
#: <code><nowiki>* {{</nowiki>AllMovie title | ###### | ''TITLE'' }}</code>
#: or <code><nowiki>* {{</nowiki>AllMovie title|id=######|title=''TITLE''<nowiki>}}</nowiki></code>
+
#: or <code><nowiki>* {{</nowiki>AllMovie title | id= ###### | title= ''TITLE'' }}</code>
 
#: where <code>######</code> is the number you've copied,
 
#: where <code>######</code> is the number you've copied,
 
#: and <code>''TITLE''</code> is the title of the film (default is the article's name.)
 
#: and <code>''TITLE''</code> is the title of the film (default is the article's name.)
# Optional: add the parameter {{Para|tab}} to show different pages in a film's entry. Choices are: ''overview'', ''cast-crew'', ''review'', ''awards'', ''releases''. Leaving the parameter empty will display the overview.
+
# Optional: add the parameter {{Para|tab}} to link to a different page (tab) in a film's entry. Choices are: ''overview'', ''cast-crew'', ''review'', ''awards'', ''releases''. Leaving the parameter empty will link to the overview.
  
 
== Example ==
 
== Example ==
Line 31: Line 34:
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|356351}}</code>
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|356351}}</code>
 
# Copy <code>356351</code> and add it to this template, ''i.e.'':
 
# Copy <code>356351</code> and add it to this template, ''i.e.'':
#: <code><nowiki>{{AllMovie title|356351|Quantum of Solace}}</nowiki></code>
+
#: <code><nowiki>{{AllMovie title | 356351 | Quantum of Solace }}</nowiki></code>
#: or <code><nowiki>{{AllMovie title|id=356351|title=Quantum of Solace}}</nowiki></code>
+
#: or <code><nowiki>{{AllMovie title | id= 356351 | title= Quantum of Solace }}</nowiki></code>
 
# This will display as:
 
# This will display as:
#: {{AllMovie title|356351|Quantum of Solace}}
+
#: {{AllMovie title | 356351 | Quantum of Solace }}
 
# Enter {{Para|tab|review}} to display the AllMovie review:
 
# Enter {{Para|tab|review}} to display the AllMovie review:
#: <code><nowiki>{{AllMovie title|356351|Quantum of Solace|tab=review}}</nowiki></code>
+
#: <code><nowiki>{{AllMovie title | 356351 | Quantum of Solace (review) | tab= review }}</nowiki></code>
#: or <code><nowiki>{{AllMovie title|id=356351|title=Quantum of Solace|tab=review}}</nowiki></code>
+
#: or <code><nowiki>{{AllMovie title | id= 356351 | title= Quantum of Solace (review) | tab= review }}</nowiki></code>
#: produces {{AllMovie title|356351|Quantum of Solace|tab=review}}
+
#: produces {{AllMovie title | 356351 | Quantum of Solace (review) |tab= review }}
  
 
; TV series
 
; TV series
Line 45: Line 48:
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|466814}}</code>
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|466814}}</code>
 
# Copy <code>466814</code> and add it to this template, ''i.e.'':
 
# Copy <code>466814</code> and add it to this template, ''i.e.'':
#: <code><nowiki>{{AllMovie title|466814|Fringe [TV Series] (2008)}}</nowiki></code>
+
#: <code><nowiki>{{AllMovie title | 466814 | Fringe }}</nowiki></code>
#: or <code><nowiki>{{AllMovie title|id=466814|title=Fringe (TV series)}}</nowiki></code>
+
#: or <code><nowiki>{{AllMovie title | id= 466814 | title= Fringe }}</nowiki></code>
 
# This will display as:
 
# This will display as:
#: {{AllMovie title|466814|Fringe (TV series)}}
+
#: {{AllMovie title | 466814 | Fringe }}
 
# Enter {{Para|tab|cast-crew}} to display the AllMovie "cast and crew" page:
 
# Enter {{Para|tab|cast-crew}} to display the AllMovie "cast and crew" page:
#: <code><nowiki>{{AllMovie title|466814|Fringe (TV series)|tab=cast-crew}}</nowiki></code>
+
#: <code><nowiki>{{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}</nowiki></code>
#: or <code><nowiki>{{AllMovie title|id=466814|title=Fringe (TV series)|tab=cast-crew}}</nowiki></code>
+
#: or <code><nowiki>{{AllMovie title | id= 466814 | title= Fringe (cast & crew) |tab= cast-crew }}</nowiki></code>
#: produces {{AllMovie title|466814|Fringe (TV series)|tab=cast-crew}}
+
#: produces {{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}
  
 
== See also ==
 
== See also ==
Line 59: Line 62:
 
* {{tl|AllGame}}
 
* {{tl|AllGame}}
 
* {{tl|AMG}}
 
* {{tl|AMG}}
 +
Similar film title templates:
 +
* {{tl|IMDb title}}
 +
* {{tl|TCMdb title}}
 +
 +
==Template data==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
        "description": "This template is used to generate an external link to a web page at AllMovie.",
 +
        "params": {
 +
                "id": {
 +
                        "label": "ID",
 +
                        "description": "ID number used in the URL of the title's page at AllMovie.",
 +
                        "type": "number",
 +
                        "required": true,
 +
                        "aliases" : [ "1" ]
 +
                },
 +
                "title": {
 +
                        "label": "Title",
 +
                        "description": "Name of the title. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (film).",
 +
                        "type": "string",
 +
                        "required": false,
 +
                        "aliases" : [ "2" ]
 +
                },
 +
                "tab": {
 +
                        "label": "Tab",
 +
                        "description": "Link to a different page (tab) in a film's entry. Choices are: overview, cast-crew, review, awards, releases. Leaving the parameter empty will link to the overview.",
 +
                        "type": "string",
 +
                        "required": false
 +
                }
 +
        }
 +
}
 +
</templatedata>
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 14:23, 12 September 2014

This template is used to generate an external link to a web page at AllMovie (formerly known as All Movie Guide and AllRovi). It should be used only for films and television series; to link to a person (actor, director, etc.) use {{AllMovie name}} instead.

Usage

Unnamed parameters:

  • {{AllMovie title | ID }}
  • {{AllMovie title | ID | TITLE }}
  • {{AllMovie title | ID | TITLE | tab= TAB }}

Named parameters:

  • {{AllMovie title | id= ID }}
  • {{AllMovie title | id= ID | title= TITLE }}
  • {{AllMovie title | id= ID | title= TITLE | tab= TAB }}

Instructions

  1. Search AllMovie for the film title you want, and click on the correct link to go to that film's page.
  2. The page URL should look like this:
    http://www.allmovie.com/movie/this-is-the-title-v######
    or http://www.allmovie.com/movie/v######
    where "######" indicates a number. (If it doesn't, there should be a message under the film's title which says "wrong Result? more matches HERE"; click on this link and reselect the desired film from the list.)
  3. Copy only that number. Add the following text to the External links section:
    * {{AllMovie title | ###### | TITLE }}
    or * {{AllMovie title | id= ###### | title= TITLE }}
    where ###### is the number you've copied,
    and TITLE is the title of the film (default is the article's name.)
  4. Optional: add the parameter |tab= to link to a different page (tab) in a film's entry. Choices are: overview, cast-crew, review, awards, releases. Leaving the parameter empty will link to the overview.

Example

Film
  1. For Quantum of Solace, the AllMovie page URL is:
    http://www.allmovie.com/movie/quantum-of-solace-v356351
    or http://www.allmovie.com/movie/v356351
  2. Copy 356351 and add it to this template, i.e.:
    {{AllMovie title | 356351 | Quantum of Solace }}
    or {{AllMovie title | id= 356351 | title= Quantum of Solace }}
  3. This will display as:
    Quantum of Solace at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
  4. Enter |tab=review to display the AllMovie review:
    {{AllMovie title | 356351 | Quantum of Solace (review) | tab= review }}
    or {{AllMovie title | id= 356351 | title= Quantum of Solace (review) | tab= review }}
    produces Quantum of Solace (review) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0Template:Ns0
TV series
  1. For Fringe (TV series), the AllMovie page URL is:
    http://www.allmovie.com/movie/fringe-tv-series-v466814
    or http://www.allmovie.com/movie/v466814
  2. Copy 466814 and add it to this template, i.e.:
    {{AllMovie title | 466814 | Fringe }}
    or {{AllMovie title | id= 466814 | title= Fringe }}
  3. This will display as:
    Fringe at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
  4. Enter |tab=cast-crew to display the AllMovie "cast and crew" page:
    {{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}
    or {{AllMovie title | id= 466814 | title= Fringe (cast & crew) |tab= cast-crew }}
    produces Fringe (cast & crew) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0

See also

Similar film title templates:

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for AllMovie title

This template is used to generate an external link to a web page at AllMovie.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

ID number used in the URL of the title's page at AllMovie.

Numberrequired
Titletitle 2

Name of the title. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (film).

Stringoptional
Tabtab

Link to a different page (tab) in a film's entry. Choices are: overview, cast-crew, review, awards, releases. Leaving the parameter empty will link to the overview.

Stringoptional