模板:Allmusic

被永久保护的模板
维基百科,自由的百科全书

AllmusicAllmusic上的页面

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

用法

完整模板
{{Allmusic
| class      =
| id         =
| tab        =
| pure_url   =
| label      =
| author     =
| accessdate =
}}
简易模板
{{Allmusic| <class> | <id> | <label> }}

参数说明

  • class:类型,如:artist、album、song、work、explore,为“www.allmusic.com/”后面接的字串,如未填写预设为 artist。
  • id(必填):代码,如“http://www.allmusic.com/artist/led-zeppelin-mn0000139026”的代码即为后面的 mn0000139026。
  • tab:页签,使用方法请参考以下范例。
  • label:显示名称。
  • author:文章的作者。
  • pure_url:若此项为 yes,模板只输出网址字串,此时仅 class、id、tab 三项参数有效,使用方法请参考以下范例。
  • accessdate:检查日期。

使用范例

简易模板
{{Allmusic|song|mn0000139026|齊柏林飛船}}
输出:
齐柏林飞船Allmusic上的页面
基本使用
{{Allmusic| class = artist | id = mn0000139026 | label = 齊柏林飛船}}
输出:
齐柏林飞船Allmusic上的页面
使用 tab 参数
{{Allmusic| class = artist | id = mn0000139026 | label = 齊柏林飛船獲得獎項 | tab = awards }}
输出:
齐柏林飞船获得奖项Allmusic上的页面
使用 tab 参数(另一个范例)
{{Allmusic| class = video | id = mn0000139026 | label = 齊柏林飛船的所有歌曲 | tab = songs/all }}
输出:
齐柏林飞船的所有歌曲Allmusic上的页面
id 使用页签
{{Allmusic| class = video | id = mn0000139026/songs/all | label = 齊柏林飛船的所有歌曲 }}
输出:
齐柏林飞船的所有歌曲Allmusic上的页面
使用 pure_url 参数
{{Allmusic| pure_url = yes | class = artist | id = mn0000139026 | tab = awards}}
输出字串:http://www.allmusic.com/artist/mn0000139026/awards
使用 authoraccessdate 参数
{{Allmusic| class = artist | id = mn0000139026 | label = 齊柏林飛船 | tab = awards | author = Stephen Thomas Erlewine | accessdate = 2013-02-01 }}
输出:
齐柏林飞船Allmusic上的页面. [2013-02-01].

参见