Difference between revisions of "Template:AllMovie title/doc"
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}} | ||
| − | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
| − | {{ | + | {{High-use|20,000+}} |
{{Uses Wikidata|P1562}} | {{Uses Wikidata|P1562}} | ||
| − | + | '''{{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'' | ''TITLE'' }}</code> | |
| − | |||
Named parameters: | Named parameters: | ||
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' }}</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 | + | # 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/ | + | #: <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 | + | #: 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 | + | #: 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 | + | # 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. |
| − | == | + | == 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 }} | ||
| − | == | + | ==TemplateData== |
| − | {{ | + | {{TemplateData header}} |
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template | + | "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": " | + | "label": "id", |
| − | "description": "ID | + | "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": | + | "required": false |
| − | |||
}, | }, | ||
"title": { | "title": { | ||
| − | "label": " | + | "label": "title", |
| − | "description": " | + | "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 |
| − | |||
}, | }, | ||
"tab": { | "tab": { | ||
| − | "label": " | + | "label": "tab", |
| − | "description": " | + | "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>{{ | + | <includeonly>{{sandbox other|| |
| − | <!-- Categories | + | <!-- 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
| 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 on 25,000+ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
- Search 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:
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.)
- 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 title (default is the article's name.)
- 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
- 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
TemplateData
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..
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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.
| Number | optional |
| title | title 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)".
| String | optional |
| tab | tab | 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.
| String | optional |
Tracking category
See also
- {{AllMovie name}}
- {{AllMusic}}
- {{AllGame}}
- {{AMG}}
Similar film title templates:
- {{IMDb title}}
- {{TCMdb title}}