Jump to content

Template:AllMusic/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
list available Wikidata properties
add example for composition
Line 37: Line 37:
"type": "string",
"type": "string",
"default": "artist",
"default": "artist",
"description": "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\"."
"description": "Class of information. Value for this parameter corresponds to part of URL following \"www.allmusic.com/\". Examples (without quotes): \"artist\" (default), \"album\", \"song\", \"composition\", \"work\" or \"explore\"."
},
},
"id": {
"id": {
Line 44: Line 44:
"type": "string",
"type": "string",
"required": true,
"required": true,
"description": "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\"."
"description": "AllMusic identification number or string. Corresponds to part of URL following \"artist/\", \"album/\", \"song/\", \"composition/\", \"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\"."
},
},
"tab": {
"tab": {
Line 53: Line 53:
"label": {
"label": {
"label": "Displayed text",
"label": "Displayed text",
"aliases": ["3", "title"],
"aliases": ["title", "3"],
"type": "string",
"type": "string",
"description": "Text to display for the link. If omitted, it defaults to the name of the article where this template is used."
"description": "Text to display for the link. If omitted, it defaults to the name of the article where this template is used."
Line 122: Line 122:
* 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}}

=== Composition (with unnamed parameters) ===

Full ID:
* Code: <code><nowiki>{{AllMusic | composition | clarinet-concerto-mc0002356981 | Clarinet Concerto (Copland) }}</nowiki></code>
* Output: {{AllMusic | composition | clarinet-concerto-mc0002356981 | Clarinet Concerto (Copland) }}
* URL: {{AllMusic | composition | clarinet-concerto-mc0002356981 | pure_url= yes }}

Short ID:
* Code: <code><nowiki>{{AllMusic | composition | mc0002356981 | Clarinet Concerto (Copland) }}</nowiki></code>
* Output: {{AllMusic | composition | mc0002356981 | Clarinet Concerto (Copland) }}
* URL: {{AllMusic | composition | mc0002356981 | pure_url= yes }}


=== Using tab parameter ===
=== Using tab parameter ===

Revision as of 05:09, 6 August 2018

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.

Usage

Vertical layout

{{AllMusic
| class      = 
| id         = 
| tab        = 
| label      = 
| first      = 
| last       = 
| author     =
| accessdate = 
}}

Horizontal layout (named parameters)

{{AllMusic |class= |id= |tab= |label= |last= |first= |author= |accessdate= }}

Horizontal layout (unnamed parameters)

Valid with these three parameters only:

{{AllMusic|<class>|<id>|<label>}}

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:AllMusic in articles based on its TemplateData.

TemplateData for AllMusic

This template produces an external link to an entry at AllMusic.

Template parameters

ParameterDescriptionTypeStatus
AllMusic classclass 1

Class of information. Value for this parameter corresponds to part of URL following "www.allmusic.com/". Examples (without quotes): "artist" (default), "album", "song", "composition", "work" or "explore".

Default
artist
Stringoptional
AllMusic IDid 2

AllMusic identification number or string. Corresponds to part of URL following "artist/", "album/", "song/", "composition/", "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".

Stringrequired
AllMusic tabtab

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").

Stringoptional
Displayed textlabel title 3

Text to display for the link. If omitted, it defaults to the name of the article where this template is used.

Stringoptional
Author's first namefirst

The author's first or given name(s).

Stringoptional
Author's last namelast

The author's surname or last name.

Stringoptional
Author's full nameauthor

The author's full name. Do not use when |last= is used.

Stringoptional
Access dateaccessdate

Full date when item was accessed. Should not be wiki-linked.

Stringoptional
URL onlypure_url

If set to "yes", produces URL only without additional formatting. Typically used in citation templates.

Stringoptional

Examples

Artist or group (class not specified, defaults to artist)

Full ID:

Short ID:

Album (with accessdate)

Full ID:

Short ID:

Song (with unnamed parameters)

Full ID:

Short ID:

Composition (with unnamed parameters)

Full ID:

Short ID:

Using tab parameter

Full ID:

Short ID:

Author name, access date

Full ID:

Short ID:

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 Network]] | first = Stephen Thomas | last = Erlewine | accessdate = March 30, 2014}}
  • Output: Erlewine, Stephen Thomas. "Review of Physical Graffiti". AllMusic. All Media Network. Retrieved March 30, 2014.
  • URL: https://www.allmusic.com/album/mw0000190771

See also