模板:Multi-listen item
[[:File:{{{filename}}}|{{{title}}}]]
[[File:{{{filename}}}|220px|noicon|alt=]]
模板介绍
编辑Template:Multi-listen系列的模板用于链接多个音频档案。可以用来于正文中插入一组音频档案,可以是音乐片段或录音。
参数及使用方法
编辑若要于条目中使用本模板,请参考下面的形式:
{{multi-listen start}} {{multi-listen item|filename=name_of_file_1_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}} {{multi-listen item|filename=name_of_file_2_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}} {{multi-listen item|filename=name_of_file_3_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}} {{multi-listen end}}
示例
编辑{{multi-listen start}} {{multi-listen item |filename = Kimi ga Yo 1930.ogg |title = '''1880''' – Kimi ga Yo |description = 1930 recording of the Japanese national anthem, [[Kimi ga Yo]]. Includes both the vocal and instrumental parts. |format = [[Ogg]] }} {{multi-listen item |filename = Skye Boat Song.ogg |title = '''1884''' – The Skye Boat Song |description = An adaptation of the [[Skye Boat Song]] for [[bagpipes]] played by the Clan Stewart [[Pipe Band]]. |format = [[Ogg]] }} {{multi-listen item |filename=Enrico Caruso - Geraldine Farrar - Jules Massenet - Manon - On L'appelle Manon.ogg |title='''1884''' – ''Manon'': "Manon! avez-vous peur...On l'appelle Manon" |description=1912 recording by [[Enrico Caruso]] and [[Geraldine Farrar]] of a scene from Act II of [[Jules Massenet]]'s ''[[Manon]]'' (1884). |format=[[Ogg]] }} {{multi-listen end}}
以上源代码的显示效果如下:
{{Multi-listen item}} 提供了一可选的宽度参数,用以避免标准AUDIO BOX过长的情况。
{{multi-listen item |filename = Skye Boat Song.ogg |title = The Skye Boat Song |description = |format = [[Ogg]] |width=80px }}
输出效果为:
参见
编辑所有语种维基百科的音频模板之概览(audio templates),请见:commons:List of the different audio-templates for the Wikipedias
上述文档嵌入自Template:Multi-listen item/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |