Difference between revisions of "Template:AllMovie name/doc"
blackwiki>Zyxw (expand usage section, make usage and instructions generic, update formatting) |
m (60 revisions imported) |
||
| (12 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
| − | + | {{High-use|5,000}} | |
| + | {{Uses Wikidata|P2019}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
| + | |||
| + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for an artist (person, animal, or company) 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 external links to films and television series, use {{tl|AllMovie title}} instead. | ||
== Usage == | == Usage == | ||
Unnamed parameters: | Unnamed parameters: | ||
| − | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | |
Named parameters: | Named parameters: | ||
| − | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | |
| + | |||
| + | Using [[Wikidata]] property [[d:Property:P2019|P2019]]: | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
== Instructions == | == Instructions == | ||
| − | # Go to [ | + | # Go to [https://www.allmovie.com/ AllMovie] and search for the artist you want. |
| − | # Click on the correct link to go to the | + | # Click on the correct link to go to the artist's page. Be sure you're getting the right artist. |
# The page [[URL]] should look like this: | # The page [[URL]] should look like this: | ||
| − | #: <code><nowiki> | + | #: <code><nowiki>https://www.allmovie.com/artist/name-p</nowiki>{{Hilite|#####}}</code> |
| − | #: or <code><nowiki> | + | #: or <code><nowiki>https://www.allmovie.com/artist/p</nowiki>{{Hilite|#####}}</code> |
#: 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 | + | #: and <code>''NAME''</code> is the artist's name (default is the article name) |
== Examples == | == Examples == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | === Person === | |
| − | + | ''URLs:'' | |
| − | + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/steven-spielberg-p{{Hilite|112325}}</kbd> | |
| − | + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/p{{Hilite|112325}}</kbd> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ''Unnamed parameters:'' | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | 112325 | Steven Spielberg }} | |
| − | + | : {{{{BASEPAGENAME}} | 112325 | Steven Spielberg }} | |
| − | + | ||
| − | + | ''Named parameters:'' | |
| − | + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 112325 | name{{=}} Steven Spielberg }} | |
| − | + | : {{{{BASEPAGENAME}} | id= 112325 | name= Steven Spielberg }} | |
| − | + | ||
| − | + | === Animal === | |
| + | ''URLs:'' | ||
| + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/jiggs-the-monkey-p{{Hilite|35624}}</kbd> | ||
| + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/p{{Hilite|35624}}</kbd> | ||
| + | |||
| + | ''Unnamed parameters:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | 35624 | Jiggs the Monkey }} | ||
| + | : {{{{BASEPAGENAME}} | 35624 | Jiggs the Monkey }} | ||
| + | |||
| + | ''Named parameters:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 35624 | name{{=}} Jiggs the Monkey }} | ||
| + | : {{{{BASEPAGENAME}} | id= 35624 | name= Jiggs the Monkey }} | ||
| + | |||
| + | === Company === | ||
| + | ''URLs:'' | ||
| + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/method-studios-p{{Hilite|344927}}</kbd> | ||
| + | : <kbd><nowiki>https://</nowiki>www.allmovie.com/artist/p{{Hilite|344927}}</kbd> | ||
| + | |||
| + | ''Unnamed parameters:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | 344927 | Method Studios }} | ||
| + | : {{{{BASEPAGENAME}} | 344927 | Method Studios }} | ||
| + | |||
| + | ''Named parameters:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 344927 | name{{=}} Method Studios }} | ||
| + | : {{{{BASEPAGENAME}} | id= 344927 | name= Method Studios }} | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}}<!-- -->}} | ||
| + | |||
| + | ==TemplateData== | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "This template displays an external link to a page for an artist (person, animal, or company) 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": { | ||
| + | "id": { | ||
| + | "label": "id", | ||
| + | "aliases": [ "1" ], | ||
| + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 112325 is the ID portion of https://www.allmovie.com/artist/steven-spielberg-p112325 or https://www.allmovie.com/artist/p112325. This parameter is optional if Wikidata property P3351 exists, but required if not.", | ||
| + | "type": "number", | ||
| + | "default": "Wikidata property P3351", | ||
| + | "required": false | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "name", | ||
| + | "aliases": [ "2" ], | ||
| + | "description": "The \"name\" 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 \"(actor)\" or \"(director)\".", | ||
| + | "type": "string", | ||
| + | "default": "{{PAGENAMEBASE}}", | ||
| + | "required": false | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
== See also == | == See also == | ||
| Line 60: | Line 116: | ||
* {{tl|AllMusic}} | * {{tl|AllMusic}} | ||
* {{tl|AllGame}} | * {{tl|AllGame}} | ||
| − | |||
| − | + | Similar person templates: | |
| − | <!-- Categories | + | * {{tl|IMDb name}} |
| + | * {{tl|TCMDb name}} | ||
| + | * {{tl|BFI}} | ||
| + | |||
| + | <includeonly>{{sandbox other|| | ||
| + | <!-- 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]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 11:17, 20 October 2020
| 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. |
| 40px | This template is used on approximately 5,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). |
| 30px | This template uses Lua: |
Template:AllMovie name displays an external link to a page for an artist (person, animal, or company) 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 external links to films and television series, use {{AllMovie title}} instead.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P2019:
Instructions
- Go to AllMovie and search for the artist you want.
- Click on the correct link to go to the artist's page. Be sure you're getting the right artist.
- The page URL should look like this:
https://www.allmovie.com/artist/name-p#####- or
https://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 artist's name (default is the article name)
Examples
Person
URLs:
- https://www.allmovie.com/artist/steven-spielberg-p112325
- https://www.allmovie.com/artist/p112325
Unnamed parameters:
- Template:Tlcw
- Steven Spielberg at AllMovieScript error: No such module "EditAtWikidata".
Named parameters:
- Template:Tlcw
- Steven Spielberg at AllMovieScript error: No such module "EditAtWikidata".
Animal
URLs:
- https://www.allmovie.com/artist/jiggs-the-monkey-p35624
- https://www.allmovie.com/artist/p35624
Unnamed parameters:
- Template:Tlcw
- Jiggs the Monkey at AllMovieScript error: No such module "EditAtWikidata".
Named parameters:
- Template:Tlcw
- Jiggs the Monkey at AllMovieScript error: No such module "EditAtWikidata".
Company
URLs:
- https://www.allmovie.com/artist/method-studios-p344927
- https://www.allmovie.com/artist/p344927
Unnamed parameters:
- Template:Tlcw
- Method Studios at AllMovieScript error: No such module "EditAtWikidata".
Named parameters:
- Template:Tlcw
- Method Studios at AllMovieScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for AllMovie name
This template displays an external link to a page for an artist (person, animal, or company) 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: 112325 is the ID portion of https://www.allmovie.com/artist/steven-spielberg-p112325 or https://www.allmovie.com/artist/p112325. This parameter is optional if Wikidata property P3351 exists, but required if not.
| Number | optional |
| name | name 2 | The "name" 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 "(actor)" or "(director)".
| String | optional |
See also
- {{AllMovie title}}
- {{AllMusic}}
- {{AllGame}}
Similar person templates:
- {{IMDb name}}
- {{TCMDb name}}
- {{BFI}}