Jump to content

From Noumenapedia

Template:AllMusic/doc

__EXPECTED_UNCONNECTED_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.

Usage

Unnamed parameters

Valid with these three parameters only: <syntaxhighlight lang="wikitext"><class>/<id> <title> at AllMusic</syntaxhighlight>

Named parameters

<syntaxhighlight lang="wikitext">AllMusic/doc at AllMusicLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).</syntaxhighlight>

<syntaxhighlight lang="wikitext"> AllMusic/doc at AllMusicLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value). </syntaxhighlight>

Using Wikidata

{{AllMusic}}

{{AllMusic|title= Text displayed in link}}

Examples

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

Full ID:

Short ID:

Album (class not specified, defaults to album)

Full ID:

Short ID:

Song (class not specified, defaults to song)

Full ID:

Short ID:

Composition (class not specified, defaults to composition)

Full ID:

Short ID:

Using tab parameter

Full ID:

Short ID:

Using tab name with id parameter

Full ID:

Short ID:

Author name, access date

Full ID:

Short ID:

Using pure_url with a citation template

  • Usage: {{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 | access-date = 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

No ID in template or Wikidata and not using pure_url

  • Usage: {{AllMusic}}
  • Output: AllMusic/doc at AllMusicLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

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

<templatedata> {

   "description": "This template produces an external link to an entry at AllMusic.",
   "params": {
       "class": {
           "label": "AllMusic class",
           "aliases": ["1"],
           "type": "string",
           "default": "artist",
           "description": "Class of information. Value for this parameter corresponds to part of URL following www.allmusic.com/. Examples: artist, album, song, composition. If omitted, the default is based on the \"id\", where mn=artist, mw=album, mt=song, and mc=composition."
       },
       "id": {
           "label": "AllMusic ID",
           "aliases": ["2"],
           "type": "string",
           "required": true,
           "description": "AllMusic identification number or string. Corresponds to part of URL following artist/, album/, song/, or composition/. 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\"."
       },
       "title": {
           "label": "Displayed text",
           "aliases": ["label", "3"],
           "type": "string",
           "description": "Text to display for the link. If omitted, it defaults to the name of the article where this template is used."
       },
       "tab": {
           "label": "AllMusic tab",
           "type": "string",
           "description": "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\")."
       },
       "first": {
           "label": "Author's first name",
           "type": "string",
           "description": "The author's first or given name(s)."
       },
       "last": {
           "label": "Author's last name",
           "type": "string",
           "description": "The author's surname or last name."
       },
       "author": {
           "label": "Author's full name",
           "type": "string",
           "description": "The author's full name. Do not use when |last= is used."
       },
       "access-date": {
           "label": "Access date",
           "type": "string",
           "aliases": [ "accessdate" ],
           "description": "Full date when item was accessed. Should not be wiki-linked."
       },
       "pure_url": {
           "label": "URL only",
           "type": "string",
           "description": "If set to \"yes\", produces URL only without additional formatting. Typically used in citation templates."
       }
   }

} </templatedata>

Tracking category

See also