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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
m (fix placement of category to include templates, not documentations (via JWB))
blackwiki>Zyxw
(update Usage and TemplateData sections)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{high-use|20,000+}}
+
{{High-use|20,000+}}
 
{{Uses Wikidata|P1562}}
 
{{Uses Wikidata|P1562}}
  
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.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for a title (film or television series) at the [[AllMovie]] website (formerly known as All Movie Guide and AllRovi). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 +
 
 +
For an external link to an artist (person, animal, or company), use {{tl|AllMovie title}} instead.
  
 
== Usage ==
 
== Usage ==
 
Unnamed parameters:
 
Unnamed parameters:
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''TITLE'' }}</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'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' }}</code>
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' | tab= ''TAB'' }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | tab= ''TAB'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' | tab= ''TAB'' }}</code>
 +
 
 +
Using [[Wikidata]] property [[d:Property:P1562|P1562]]:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | tab= ''TAB'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' | tab= ''TAB'' }}</code>
  
 
== Instructions ==
 
== Instructions ==
# Search [http://www.allmovie.com/ AllMovie] for the film title you want, and click on the correct link to go to that film's page.
+
# Search [http://www.allmovie.com/ AllMovie] for the title you want, and click on the correct link to go to that title's page.
 
# The page [[URL]] should look like this:
 
# The page [[URL]] should look like this:
#: <code><nowiki>http://www.allmovie.com/movie/this-is-the-title-v</nowiki>{{Hilite|######}}</code>
+
#: <code><nowiki>http://www.allmovie.com/movie/title-v</nowiki>{{Hilite|######}}</code>
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|######}}</code>
 
#: or <code><nowiki>http://www.allmovie.com/movie/v</nowiki>{{Hilite|######}}</code>
#: 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 title which says "wrong Result? more matches HERE"; click on this link and reselect the desired title 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'' }}</code>
 
#: <code><nowiki>* {{</nowiki>AllMovie title | ###### | ''TITLE'' }}</code>
 
#: or <code><nowiki>* {{</nowiki>AllMovie title | id= ###### | title= ''TITLE'' }}</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 title (default is the article's name.)
# 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.
+
# Optional: add the parameter {{Para|tab}} to link to a different page (tab) in a title's entry. Choices are: ''overview'', ''cast-crew'', ''review'', ''awards'', ''releases''. Leaving the parameter empty will link to the overview.
  
== Example ==
+
== Examples ==
 
; Film
 
; Film
 
# For ''[[Quantum of Solace]]'', the AllMovie page URL is:
 
# For ''[[Quantum of Solace]]'', the AllMovie page URL is:
Line 59: Line 67:
 
#: produces {{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}
 
#: produces {{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}
  
==Template data==
+
==TemplateData==
{{TemplateDataHeader}}
+
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{
         "description": "This template is used to generate an external link to a web page at AllMovie.",
+
         "description": "This template displays an external link to a page for a title (film or television series) at the AllMovie website (formerly known as All Movie Guide and AllRovi). It is intended for use in the external links section of an article..",
 
         "params": {
 
         "params": {
 
                 "id": {
 
                 "id": {
                         "label": "ID",
+
                         "label": "id",
                         "description": "ID number used in the URL of the title's page at AllMovie.",
+
                        "aliases": [ "1" ],
 +
                         "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 466814 is the ID portion of http://www.allmovie.com/movie/fringe-tv-series-v466814 or http://www.allmovie.com/movie/v466814. This parameter is optional if Wikidata property P1562 exists, but required if not.",
 +
"default": "Wikidata property P1562",
 +
"example": "466814",
 
                         "type": "number",
 
                         "type": "number",
                         "required": true,
+
                         "required": false
                        "aliases" : [ "1" ]
 
 
                 },
 
                 },
 
                 "title": {
 
                 "title": {
                         "label": "Title",
+
                         "label": "title",
                         "description": "Name of the title. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (film).",
+
                        "aliases": [ "2" ],
 +
                         "description": "The \"title\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the subject of the link. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(film)\" or \"(TV series)\".",
 +
"default": "{{PAGENAMEBASE}}",
 +
"example": "Fringe (cast & crew)",
 
                         "type": "string",
 
                         "type": "string",
                         "required": false,
+
                         "required": false
                        "aliases" : [ "2" ]
 
 
                 },
 
                 },
 
                 "tab": {
 
                 "tab": {
                         "label": "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.",
+
                         "description": "The \"tab\" parameter may be used create an external link to a different page (tab) in a film's entry. Choices are: \"overview\", \"cast-crew\", \"review\", \"awards\", and \"releases\". Leaving the parameter empty will link to the overview.",
 +
"example": "cast-crew",
 
                         "type": "string",
 
                         "type": "string",
 
                         "required": false
 
                         "required": false
 
                 }
 
                 }
        }
+
},
 +
"paramOrder": [
 +
"id",
 +
"title",
 +
"tab"
 +
]
 
}
 
}
 
</templatedata>
 
</templatedata>
Line 101: Line 119:
 
* {{tl|TCMdb title}}
 
* {{tl|TCMdb title}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Television external link templates]]
 
[[Category:Television external link templates]]
 
[[Category:Film external link templates]]
 
[[Category:Film external link templates]]

Revision as of 19:00, 7 March 2017

Template:Uses Wikidata

Template:AllMovie title displays an external link to a page for a title (film or television series) at the AllMovie website (formerly known as All Movie Guide and AllRovi). It is intended for use in the external links section of an article.

For an external link to an artist (person, animal, or company), use {{AllMovie title}} instead.

Usage

Unnamed parameters:

{{AllMovie title | ID }}
{{AllMovie title | ID | TITLE }}

Named parameters:

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

Using Wikidata property P1562:

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

Instructions

  1. Search AllMovie for the title you want, and click on the correct link to go to that title's page.
  2. The page URL should look like this:
    http://www.allmovie.com/movie/title-v######
    or http://www.allmovie.com/movie/v######
    where "######" indicates a number. (If it doesn't, there should be a message under the title which says "wrong Result? more matches HERE"; click on this link and reselect the desired title 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 title (default is the article's name.)
  4. Optional: add the parameter |tab= to link to a different page (tab) in a title's entry. Choices are: overview, cast-crew, review, awards, releases. Leaving the parameter empty will link to the overview.

Examples

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

TemplateData

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 displays an external link to a page for a title (film or television series) at the AllMovie website (formerly known as All Movie Guide and AllRovi). It is intended for use in the external links section of an article..

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 466814 is the ID portion of http://www.allmovie.com/movie/fringe-tv-series-v466814 or http://www.allmovie.com/movie/v466814. This parameter is optional if Wikidata property P1562 exists, but required if not.

Default
Wikidata property P1562
Example
466814
Numberoptional
titletitle 2

The "title" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the subject of the link. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(film)" or "(TV series)".

Default
{{PAGENAMEBASE}}
Example
Fringe (cast & crew)
Stringoptional
tabtab

The "tab" parameter may be used create an external link to a different page (tab) in a film's entry. Choices are: "overview", "cast-crew", "review", "awards", and "releases". Leaving the parameter empty will link to the overview.

Example
cast-crew
Stringoptional

Tracking category

See also

Similar film title templates: