Difference between revisions of "Template:AllMovie name/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw (expand usage section, make usage and instructions generic, update formatting) |
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 exclusively for a person (actor, director, ''etc.''); to link to ''films'' and ''television series'' use {{tl|AllMovie title}} instead. | This is a template used to generate external links to [[AllMovie]] (formerly known as All Movie Guide and AllRovi). This template should be used exclusively for a person (actor, director, ''etc.''); to link to ''films'' and ''television series'' use {{tl|AllMovie title}} instead. | ||
== Usage == | == Usage == | ||
Unnamed parameters: | Unnamed parameters: | ||
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''<nowiki>}}</nowiki></code> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' <nowiki>}}</nowiki></code> |
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''|''NAME''<nowiki>}}</nowiki></code> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' <nowiki>}}</nowiki></code> |
Named parameters: | Named parameters: | ||
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''<nowiki>}}</nowiki></code> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' <nowiki>}}</nowiki></code> |
| − | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|name=''NAME''<nowiki>}}</nowiki></code> | + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' <nowiki>}}</nowiki></code> |
== Instructions == | == Instructions == | ||
| Line 20: | Line 21: | ||
#: where <code>#####</code> indicates a number | #: where <code>#####</code> indicates a number | ||
# Add this text to the '''External links''' section: | # Add this text to the '''External links''' section: | ||
| − | #: <code><nowiki>* {{</nowiki>AllMovie name|#####|''NAME'' | + | #: <code><nowiki>* {{</nowiki>AllMovie name | ##### | ''NAME'' }}</code> |
| − | #: or <code><nowiki>* {{</nowiki>AllMovie name|id=#####|name=''NAME'' | + | #: or <code><nowiki>* {{</nowiki>AllMovie name | id= ##### | name= ''NAME'' }}</code> |
#: where <code>#####</code> is the number you've copied, | #: where <code>#####</code> is the number you've copied, | ||
#: and <code>''NAME''</code> is the person's name (default is the article name) | #: and <code>''NAME''</code> is the person's name (default is the article name) | ||
| Line 31: | Line 32: | ||
#: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|112325}}</code> | #: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|112325}}</code> | ||
# Copy <code>112325</code> and add it to this template, ''i.e.'': | # Copy <code>112325</code> and add it to this template, ''i.e.'': | ||
| − | #: <code><nowiki>{{AllMovie name|112325|Steven Spielberg}}</nowiki></code> | + | #: <code><nowiki>{{AllMovie name | 112325 | Steven Spielberg }}</nowiki></code> |
| − | #: or <code><nowiki>{{AllMovie name|id=112325|name=Steven Spielberg}}</nowiki></code> | + | #: or <code><nowiki>{{AllMovie name | id= 112325 | name= Steven Spielberg }}</nowiki></code> |
# This will display as: | # This will display as: | ||
| − | #: {{AllMovie name|112325|Steven Spielberg}} | + | #: {{AllMovie name | 112325 | Steven Spielberg }} |
; Animal | ; Animal | ||
| Line 41: | Line 42: | ||
#: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|35624}}</code> | #: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|35624}}</code> | ||
# Copy <code>35624</code> and add it to this template, ''i.e.'': | # Copy <code>35624</code> and add it to this template, ''i.e.'': | ||
| − | #: <code><nowiki>{{AllMovie name|35624|Jiggs the Monkey}}</nowiki></code> | + | #: <code><nowiki>{{AllMovie name | 35624 | Jiggs the Monkey }}</nowiki></code> |
| − | #: or <code><nowiki>{{AllMovie name|id=35624|name=Jiggs the Monkey}}</nowiki></code> | + | #: or <code><nowiki>{{AllMovie name | id= 35624 | name= Jiggs the Monkey }}</nowiki></code> |
# This will display as: | # This will display as: | ||
| − | #: {{AllMovie name|35624|Jiggs the Monkey}} | + | #: {{AllMovie name | 35624 | Jiggs the Monkey }} |
; Company | ; Company | ||
| Line 51: | Line 52: | ||
#: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|344927}}</code> | #: or <code><nowiki>http://www.allmovie.com/artist/p</nowiki>{{Hilite|344927}}</code> | ||
# Copy <code>344927</code> and add it to this template, ''i.e.'': | # Copy <code>344927</code> and add it to this template, ''i.e.'': | ||
| − | #: <code><nowiki>{{AllMovie name|344927|Method Studios}}</nowiki></code> | + | #: <code><nowiki>{{AllMovie name | 344927 | Method Studios }}</nowiki></code> |
| − | #: or <code><nowiki>{{AllMovie name|id=344927|name=Method Studios}}</nowiki></code> | + | #: or <code><nowiki>{{AllMovie name | id= 344927 | name= Method Studios }}</nowiki></code> |
# This will display as: | # This will display as: | ||
| − | #: {{AllMovie name|344927|Method Studios}} | + | #: {{AllMovie name | 344927 | Method Studios }} |
| + | |||
| + | ==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 person's page at AllMovie.", | ||
| + | "type": "number", | ||
| + | "required": true, | ||
| + | "aliases": [ "1" ] | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "Name", | ||
| + | "description": "Name of the person which is displayed as the link text. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (actor) or (director).", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "aliases": [ "2" ] | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
== See also == | == See also == | ||
Revision as of 20:58, 11 September 2014
| 40px | This is a documentation subpage for Template:AllMovie name. It contains usage information, categories and other content that is not part of the original template page. |
This is a template used to generate external links to AllMovie (formerly known as All Movie Guide and AllRovi). This template should be used exclusively for a person (actor, director, etc.); to link to films and television series use {{AllMovie title}} instead.
Usage
Unnamed parameters:
{{AllMovie name | ID }}{{AllMovie name | ID | NAME }}
Named parameters:
{{AllMovie name | id= ID }}{{AllMovie name | id= ID | name= NAME }}
Instructions
- Go to AllMovie and search for the person you want.
- Click on the correct link to go to the person's page. Be sure you're getting the right person.
- The page URL should look like this:
http://www.allmovie.com/artist/firstname-lastname-p#####- or
http://www.allmovie.com/artist/p##### - where
#####indicates a number
- Add this text to the External links section:
* {{AllMovie name | ##### | NAME }}- or
* {{AllMovie name | id= ##### | name= NAME }} - where
#####is the number you've copied, - and
NAMEis the person's name (default is the article name)
Examples
- Person
- For Steven Spielberg, the AllMovie page URL is:
http://www.allmovie.com/artist/steven-spielberg-p112325- or
http://www.allmovie.com/artist/p112325
- Copy
112325and add it to this template, i.e.:{{AllMovie name | 112325 | Steven Spielberg }}- or
{{AllMovie name | id= 112325 | name= Steven Spielberg }}
- This will display as:
- Steven Spielberg at AllMovieScript error: No such module "EditAtWikidata".
- Animal
- For Jiggs (chimpanzee), the AllMovie page URL is:
http://www.allmovie.com/artist/jiggs-the-monkey-p35624- or
http://www.allmovie.com/artist/p35624
- Copy
35624and add it to this template, i.e.:{{AllMovie name | 35624 | Jiggs the Monkey }}- or
{{AllMovie name | id= 35624 | name= Jiggs the Monkey }}
- This will display as:
- Jiggs the Monkey at AllMovieScript error: No such module "EditAtWikidata".
- Company
- For Method Studios, the AllMovie page URL is:
http://www.allmovie.com/artist/method-studios-p344927- or
http://www.allmovie.com/artist/p344927
- Copy
344927and add it to this template, i.e.:{{AllMovie name | 344927 | Method Studios }}- or
{{AllMovie name | id= 344927 | name= Method Studios }}
- This will display as:
- Method Studios at AllMovieScript error: No such module "EditAtWikidata".
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 name
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 person's page at AllMovie. | Number | required |
| Name | name 2 | Name of the person which is displayed as the link text. If not specified it defaults to article's {{PAGENAME}}, without any disambiguation such as (actor) or (director). | String | optional |
See also
- {{AllMovie title}}
- {{AllMusic}}
- {{AllGame}}
- {{AMG}}