Difference between revisions of "Template:AllMusic/doc"
Jump to navigation
Jump to search
blackwiki>Cactus26 (temp. using sandbox version to avoid confusion) |
blackwiki>Cactus26 m (using actual tpl. for examples instead of sandbox version) |
||
| Line 52: | Line 52: | ||
expands to | expands to | ||
| − | *{{Allmusic | + | *{{Allmusic|id=p4739|label=Led Zeppelin}} |
| Line 60: | Line 60: | ||
expands to | expands to | ||
| − | *{{Allmusic | + | *{{Allmusic|class=album|id=r15973|label=News of the World|accessdate=Febuary 10, 2010}} |
| Line 69: | Line 69: | ||
expands to | expands to | ||
| − | *{{Allmusic | + | *{{Allmusic|song|t2454936|Dust in the Wind}} |
<includeonly> | <includeonly> | ||
Revision as of 13:01, 6 December 2010
| 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. |
Purpose
This template provides a convenient way to produce an external link to an entry at allmusic (www.allmusic.com). The template can be used for any link to allmusic site, including External Links section or when citing.
Usage
{{Allmusic
|class=
|id=
|label=
|accessdate=
}}
Parameter
| Parameter | Type | Description |
|---|---|---|
| class | optional | Class of information, possible are "artist", "album", "song", "work" or "explore". Value for this parameter corresponds part of URL "following www.allmusic.com/". Default is "artist". |
| id | mandatory | Identifikation of information. Corresponds to part of URL following "artist/", "album/", "song/", "work/" or "explore/". The text before the actual id with name of artist, album etc. can be omitted. (Example: For www.allmusic.com/artist/led-zeppelin-p4739 "p4739" is sufficient for id). |
| label | optional | Label to display the link, which defaults to the name of the article where this template is used. |
| pure_url | optional | Value of "yes" produces no label and no additional text but "pure" standalone external link. This opportiunity is mainly intended for the automized migration of standalone weblinks but can be used when linking to allmusic using {{Cite web}}, embedding {{Allmusic}} in {{Cite web}}. |
| accessdate | optional | Full date when item was accessed. Should not be wikilinked. |
There exists also a short notation for template usage supplying first three parameters without preceeding name.
Examples
- Group or artist
- {{Allmusic|id=p4739|label=Led Zeppelin}}
expands to
- Album (supplying accessdate)
- {{Allmusic|class=album|id=r15973|label=News of the World|accessdate=Febuary 10, 2010}}
expands to
- News of the World at AllMusic. Retrieved Febuary 10, 2010.
- Song (short notation)
- {{Allmusic|song|t2454936|Dust in the Wind}}
expands to