Difference between revisions of "Template:AllMovie title/doc"
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 | + | |
| + | 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> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> |
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''|''TITLE'' | + | * <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> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> |
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|title=''TITLE'' | + | * <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'' | + | #: <code><nowiki>* {{</nowiki>AllMovie title | ###### | ''TITLE'' }}</code> |
| − | #: or <code><nowiki>* {{</nowiki>AllMovie title|id=######|title=''TITLE'' | + | #: 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 | + | # 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 | + | #: <code><nowiki>{{AllMovie title | 466814 | Fringe }}</nowiki></code> |
| − | #: or <code><nowiki>{{AllMovie title|id=466814|title=Fringe | + | #: or <code><nowiki>{{AllMovie title | id= 466814 | title= Fringe }}</nowiki></code> |
# This will display as: | # This will display as: | ||
| − | #: {{AllMovie title|466814|Fringe | + | #: {{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 ( | + | #: <code><nowiki>{{AllMovie title | 466814 | Fringe (cast & crew) | tab= cast-crew }}</nowiki></code> |
| − | #: or <code><nowiki>{{AllMovie title|id=466814|title=Fringe ( | + | #: or <code><nowiki>{{AllMovie title | id= 466814 | title= Fringe (cast & crew) |tab= cast-crew }}</nowiki></code> |
| − | #: produces {{AllMovie title|466814|Fringe ( | + | #: 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 is a documentation subpage for Template:AllMovie title. It contains usage information, categories and other content that is not part of the original template page. |
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
- Search AllMovie for the film title you want, and click on the correct link to go to that film's page.
- 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.)
- 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
TITLEis the title of the film (default is the article's name.)
- 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
- 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
- Copy
356351and add it to this template, i.e.:{{AllMovie title | 356351 | Quantum of Solace }}- or
{{AllMovie title | id= 356351 | title= Quantum of Solace }}
- This will display as:
- Quantum of Solace at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Enter
|tab=reviewto 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
- 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
- Copy
466814and add it to this template, i.e.:{{AllMovie title | 466814 | Fringe }}- or
{{AllMovie title | id= 466814 | title= Fringe }}
- This will display as:
- Fringe at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Enter
|tab=cast-crewto 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
- {{AllMovie name}}
- {{AllMusic}}
- {{AllGame}}
- {{AMG}}
Similar film title templates:
- {{IMDb title}}
- {{TCMdb title}}
Template data
TemplateData for AllMovie title
This template is used to generate an external link to a web page at AllMovie.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | ID number used in the URL of the title's page at AllMovie. | Number | required |
| Title | title 2 | Name of the title. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (film). | String | optional |
| Tab | tab | 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. | String | optional |