แม่แบบ:Multi-listen item

จากวิกิพีเดีย สารานุกรมเสรี
[[:File:{{{filename}}}|{{{title}}}]]
[[File:{{{filename}}}|220px|noicon]]
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]


Template:Multi-listen links to several audio files. It is meant to be used for groups of audio files set off from the text, like music clips or sound recordings. To apply it in an article use the following:

{{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}}

For instance:

{{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}}

is rendered like this:

{{Multi-listen item}} offers an optional width parameter, for situations where the normal audio box is too wide.

{{multi-listen item
|filename    = Skye Boat Song.ogg
|title       = The Skye Boat Song
|description =
|format      = [[Ogg]]
|width=80px
}}

is rendered as

The Skye Boat Song


See also {{Listen}}, {{Audio}}, {{Audio-nohelp}}.

For an overview of audio templates in all language Wikipedias see: commons:List of the different audio-templates for the Wikipedias