Difference between revisions of "Template:AllMusic/doc"
blackwiki>Dcljr (Allmusic -> AllMusic -- correct name of template) |
blackwiki>Dcljr (Allmusic -> AllMusic -- correct name of template (missed some)) |
||
| Line 83: | Line 83: | ||
Full ID: | Full ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | id= led-zeppelin-mn0000139026 | label= Led Zeppelin}}</nowiki></code> |
* Output: {{AllMusic | id= led-zeppelin-mn0000139026 | label= Led Zeppelin}} | * Output: {{AllMusic | id= led-zeppelin-mn0000139026 | label= Led Zeppelin}} | ||
* URL: {{AllMusic | id= led-zeppelin-mn0000139026 | pure_url= yes}} | * URL: {{AllMusic | id= led-zeppelin-mn0000139026 | pure_url= yes}} | ||
Short ID: | Short ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | id= mn0000139026 | label= Led Zeppelin}}</nowiki></code> |
* Output: {{AllMusic | id= mn0000139026 | label= Led Zeppelin}} | * Output: {{AllMusic | id= mn0000139026 | label= Led Zeppelin}} | ||
* URL: {{AllMusic | id= mn0000139026 | pure_url= yes}} | * URL: {{AllMusic | id= mn0000139026 | pure_url= yes}} | ||
| Line 95: | Line 95: | ||
Full ID: | Full ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | class= album | id= news-of-the-world-mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}}</nowiki></code> |
* Output: {{AllMusic | class= album | id= news-of-the-world-mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} | * Output: {{AllMusic | class= album | id= news-of-the-world-mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} | ||
* URL: {{AllMusic | class= album | id= news-of-the-world-mw0000191493 | pure_url= yes}} | * URL: {{AllMusic | class= album | id= news-of-the-world-mw0000191493 | pure_url= yes}} | ||
Short ID: | Short ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | class= album | id= mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}}</nowiki></code> |
* Output: {{AllMusic | class= album | id= mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} | * Output: {{AllMusic | class= album | id= mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} | ||
* URL: {{AllMusic | class= album | id= mw0000191493 | pure_url= yes}} | * URL: {{AllMusic | class= album | id= mw0000191493 | pure_url= yes}} | ||
| Line 107: | Line 107: | ||
Full ID: | Full ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | song | dust-in-the-wind-mt0013834783 | "Dust in the Wind"}}</nowiki></code> |
* Output: {{AllMusic | song | dust-in-the-wind-mt0013834783 | "Dust in the Wind"}} | * Output: {{AllMusic | song | dust-in-the-wind-mt0013834783 | "Dust in the Wind"}} | ||
* URL: {{AllMusic | song | dust-in-the-wind-mt0013834783 | pure_url= yes}} | * URL: {{AllMusic | song | dust-in-the-wind-mt0013834783 | pure_url= yes}} | ||
Short ID: | Short ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | song | mt0013834783 | "Dust in the Wind"}}</nowiki></code> |
* Output: {{AllMusic | song | mt0013834783 | "Dust in the Wind"}} | * Output: {{AllMusic | song | mt0013834783 | "Dust in the Wind"}} | ||
* URL: {{AllMusic | song | mt0013834783 | pure_url= yes}} | * URL: {{AllMusic | song | mt0013834783 | pure_url= yes}} | ||
| Line 119: | Line 119: | ||
Full ID: | Full ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | label= Led Zeppelin discography}}</nowiki></code> |
* Output: {{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | label= Led Zeppelin discography}} | * Output: {{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | label= Led Zeppelin discography}} | ||
* URL: {{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | pure_url= yes}} | * URL: {{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | pure_url= yes}} | ||
Short ID: | Short ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | id= mn0000139026 | tab= discography | label= Discography of Led Zeppelin}}</nowiki></code> |
* Output: {{AllMusic | id= mn0000139026 | tab= discography | label= Discography of Led Zeppelin}} | * Output: {{AllMusic | id= mn0000139026 | tab= discography | label= Discography of Led Zeppelin}} | ||
* URL: {{AllMusic | id= mn0000139026 | tab= discography | pure_url= yes}} | * URL: {{AllMusic | id= mn0000139026 | tab= discography | pure_url= yes}} | ||
| Line 131: | Line 131: | ||
Full ID: | Full ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | class= album | id= physical-graffiti-mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}}</nowiki></code> |
* Output: {{AllMusic | class= album | id= physical-graffiti-mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} | * Output: {{AllMusic | class= album | id= physical-graffiti-mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} | ||
* URL: {{AllMusic | class= album | id= physical-graffiti-mw0000190771 | pure_url= yes}} | * URL: {{AllMusic | class= album | id= physical-graffiti-mw0000190771 | pure_url= yes}} | ||
Short ID: | Short ID: | ||
| − | * Code: <code><nowiki>{{ | + | * Code: <code><nowiki>{{AllMusic | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}}</nowiki></code> |
* Output: {{AllMusic | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} | * Output: {{AllMusic | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} | ||
* URL: {{AllMusic | class= album | id= mw0000190771 | pure_url= yes}} | * URL: {{AllMusic | class= album | id= mw0000190771 | pure_url= yes}} | ||
Revision as of 23:10, 16 April 2017
| This is a documentation subpage for Template:AllMusic. It contains usage information, categories and other content that is not part of the original template page. |
This template provides a convenient way to produce an external link to an entry at AllMusic. The template can be used for any link to AllMusic's website, including the External links section or when citing it as a source.
Contents
Usage
Vertical layout
{{AllMusic
| class =
| id =
| tab =
| label =
| first =
| last =
| accessdate =
}}
Horizontal layout (named parameters)
{{AllMusic |class= |id= |tab= |label= |last= |first= |accessdate=}}
Horizontal layout (unnamed parameters)
Valid with these three parameters only:
{{AllMusic|<class>|<id>|<label>}}
Template data
TemplateData for AllMusic
This template produces an external link to an entry at AllMusic.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| AllMusic class | class 1 | Class of information. Value for this parameter corresponds to part of URL following "www.allmusic.com/". Examples (without quotes): "artist" (default), "album", "song", "work" or "explore".
| String | optional |
| AllMusic ID | id 2 | AllMusic identification number or string. Corresponds to part of URL following "artist/", "album/", "song/", "work/" or "explore/". Can omit the text before the actual ID with name of artist, album, etc. Example: The ID for www.allmusic.com/artist/led-zeppelin-mn0000139026 would be either "led-zeppelin-mn0000139026" or "mn0000139026". Can also use the entire end of URL, such as: "release/stone-temple-pilots-deluxe-edition-mr0002917004". | String | required |
| AllMusic tab | tab | If the link should access directly a specific tab on the AllMusic site you can use this parameter to specify that tab. The value for this parameter corresponds to the suffix of the URL following the identification, after the slash ('/'). Examples (without quotes): "biography", "discography", "songs", "awards", etc. If you are specifying a sub-tab of a tab, the whole suffix has to be used, (e.g. "songs/all"). | String | optional |
| Displayed text | label 3 title | Text to display for the link. If omitted, it defaults to the name of the article where this template is used. | String | optional |
| Author's first name | first | The author's first or given name(s). | String | optional |
| Author's last name | last | The author's surname or last name. | String | optional |
| Access date | accessdate | Full date when item was accessed. Should not be wiki-linked. | String | optional |
| URL only | pure_url | If set to "yes", produces URL only without additional formatting. Typically used in citation templates. | String | optional |
Examples
Artist or group (class not specified, defaults to artist)
Full ID:
- Code:
{{AllMusic | id= led-zeppelin-mn0000139026 | label= Led Zeppelin}} - Output: Led Zeppelin at AllMusic
- URL: https://www.allmusic.com/artist/led-zeppelin-mn0000139026
Short ID:
- Code:
{{AllMusic | id= mn0000139026 | label= Led Zeppelin}} - Output: Led Zeppelin at AllMusic
- URL: https://www.allmusic.com/artist/mn0000139026
Album (with accessdate)
Full ID:
- Code:
{{AllMusic | class= album | id= news-of-the-world-mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} - Output: News of the World at AllMusic. Retrieved March 30, 2014.
- URL: https://www.allmusic.com/album/news-of-the-world-mw0000191493
Short ID:
- Code:
{{AllMusic | class= album | id= mw0000191493 | label= ''News of the World'' | accessdate= March 30, 2014}} - Output: News of the World at AllMusic. Retrieved March 30, 2014.
- URL: https://www.allmusic.com/album/mw0000191493
Song (with unnamed parameters)
Full ID:
- Code:
{{AllMusic | song | dust-in-the-wind-mt0013834783 | "Dust in the Wind"}} - Output: "Dust in the Wind" at AllMusic
- URL: https://www.allmusic.com/song/dust-in-the-wind-mt0013834783
Short ID:
- Code:
{{AllMusic | song | mt0013834783 | "Dust in the Wind"}} - Output: "Dust in the Wind" at AllMusic
- URL: https://www.allmusic.com/song/mt0013834783
Using tab parameter
Full ID:
- Code:
{{AllMusic | id= led-zeppelin-mn0000139026 | tab= discography | label= Led Zeppelin discography}} - Output: Led Zeppelin discography at AllMusic
- URL: https://www.allmusic.com/artist/led-zeppelin-mn0000139026/discography
Short ID:
- Code:
{{AllMusic | id= mn0000139026 | tab= discography | label= Discography of Led Zeppelin}} - Output: Discography of Led Zeppelin at AllMusic
- URL: https://www.allmusic.com/artist/mn0000139026/discography
Author name, access date
Full ID:
- Code:
{{AllMusic | class= album | id= physical-graffiti-mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} - Output: Erlewine, Stephen Thomas. Review of Physical Graffiti at AllMusic. Retrieved March 30, 2014.
- URL: https://www.allmusic.com/album/physical-graffiti-mw0000190771
Short ID:
- Code:
{{AllMusic | class= album | id= mw0000190771 | title= Review of ''Physical Graffiti'' | first= Stephen Thomas | last= Erlewine | accessdate= March 30, 2014}} - Output: Erlewine, Stephen Thomas. Review of Physical Graffiti at AllMusic. Retrieved March 30, 2014.
- URL: https://www.allmusic.com/album/mw0000190771
Using pure_url with a citation template
- Code:
{{cite web | url = {{AllMusic|album|mw0000190771|pure_url=yes}} | title = Review of ''Physical Graffiti'' | work = [[AllMusic]] | publisher = [[All Media Guide]] | first = Stephen Thomas | last = Erlewine | accessdate = March 30, 2014}} - Output: Erlewine, Stephen Thomas. "Review of Physical Graffiti". AllMusic. All Media Guide. Retrieved March 30, 2014.
- URL: https://www.allmusic.com/album/mw0000190771
See also
- {{AllMovie title}}
- {{AllMovie name}}
- {{AllGame}}
- {{GroveOnline}}