Templat:Listen/doc: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
Tikar aurum (bincang | sumb.)
terjemah semula dan wikilink
BukanTeamBiasa (bincang | sumb.)
Tiada ringkasan suntingan
Baris 1:
{{documentation subpage}}<includeonly>{{pp-template|small=yes}}</includeonly>
 
This template allows audio files to be embedded in articles. It should be used for audio files that are set off from the text, like music clips or sound recordings.
== Tujuan ==
Templat ini menyambungkan sebuah fail audio. Ia dibuat untuk digunakan dengan fail-fail audio yang dibincangkan di dalam teks, seperti keratan musik atau rakaman bunyi.
 
=== PeggunaanUsage ===
 
====Simple====
Gunakanlah:
In its most simple form, the template takes the following parameters:
<code><nowiki>{{Listen|filename=Nama fail.ogg|title=Tajuk fail|description=Penerangan fail|format=[[Ogg]]}}</nowiki></code>
<pre>
{{Listen
|filename =
|title =
|description =
}}
</pre>
 
*'''filename''' ''(Required)'' &ndash; the pagename of the media file, ''without'' the File: (formerly Image:) prefix
Contoh:
*'''title''' ''(Required)'' &ndash; the title of the audio file, to be displayed
:<code><nowiki>{{Listen|filename=Accordian chords-01.ogg|title=Kod akordion|description=Kod muzik dimainkan dengan akordion &mdash; 145 KB|format=[[Ogg]]}}
*'''description''' &ndash; a description of the audio file
</nowiki></code>
 
;Example:
hasilnya:
{| style="width:100%; background:transparent;"
|
<pre>
{{Listen
|filename = Accordian chords-01.ogg
|title = Accordion chords
|description = Chords being played on an accordion
}}
</pre>
|
{{Listen
|filename = Accordian chords-01.ogg
|title = Accordion chords
|description = Chords being played on an accordion
}}
|}
 
====Multiple files====
{{Listen|filename=Accordian chords-01.ogg|title=Kod akordion|description=Kod muzik dimainkan dengan akordion &mdash; 145 KB|format=[[Ogg]]}}
 
Additional files can be embedded in an article with one template by appending a number to each parameter. Up to ten files can be included.
 
<pre>
{{Listen
|filename =
|title =
|description =
|filename2 =
|title2 =
|description2 =
|filename3 =
|title3 =
|description3 =
}}
</pre>
 
*'''filename''' ''(Required)'' &ndash; the pagename of the media file, ''without'' the File: (formerly Image:) prefix
*'''title''' ''(Required)'' &ndash; the title of the audio file, to be displayed
*'''description''' &ndash; a description of the audio file
 
;Example:
{| style="width:100%; background:transparent"
|
<pre>
{{Listen
|filename = Accordian chords-01.ogg
|title = Accordion chords
|description = Chords being played on an accordion
|filename2 = Moonlight.ogg
|title2 = ''Moonlight Sonata''
|description2 = [[Beethoven]]'s Sonata in C# minor
|filename3 = Au_clair_de_la_lune_mode_do.mid
|title3 = Au Clair de la Lune
|description3 = The traditional French children's song
|play3 = no
}}
</pre>
|
{{Listen
|filename = Accordian chords-01.ogg
|title = Accordion chords
|description = Chords being played on an accordion
|filename2 = Moonlight.ogg
|title2 = ''Moonlight Sonata''
|description2 = [[Beethoven]]'s Sonata in C# minor
|filename3 = Au_clair_de_la_lune_mode_do.mid
|title3 = Au Clair de la Lune
|description3 = The traditional French children's song
|play3 = no
}}
|}
 
====Style parameters====
 
The template also takes a number of style parameters to control its appearance:
 
*'''type''' &ndash; can be used to alter the image displayed at the left depending on the type of audio content being embedded. Acceptable values are '''sound''' and '''music''' (default)
*'''header''' &ndash; can be used to add a header to the box.
*'''help''' &ndash; if set {{para|help|no}}, suppresses the help text that normally appears at the bottom of the box. Only do this if there are other audio files on the page which ''do'' have the help link; it ''must'' be provided on at least the first file on the article.
*'''pos''' &ndash; by default the box floats to the right side of the screen. Setting this to '''left''' will cause the box to instead float on the left-hand side.
*'''style''' &ndash; can be used to pass specific style instructions to the box.
*'''play#''' &ndash; some media files cannot be displayed inline; if this is the case set {{para|play|no}} to prevent the broken inline link from displaying.
*'''plain''' &ndash; if set {{para|plain|yes}}, removes most of the ornamentation (table border, image, and help links) to give a minimalist version.
 
;Example:
{| style="width:100%; background:transparent;"
|
{{Listen
|filename = Frase de Neil Armstrong.ogg
|title = "One small step for a man..."
|description = First words spoken on the [[moon]].
|type = sound
|pos = left
|header = Recordings of this phrase:
}}
|
<pre>
{{Listen
|filename = Frase de Neil Armstrong.ogg
|title = "One small step for a man..."
|description = First words spoken on the [[moon]].
|type = sound
|pos = left
|header = Recordings of this phrase:
}}
</pre>
|}
 
=== See also ===
 
* {{tl|Audio}}, a variant of this template meant more for inline sounds like pronunciations.
 
== Lihat juga ==
* {{tl|Audio}}, templat yang serupa tetapi lebih kepada sisipan dalam baris seperti sebutan.
* {{tl|Multi-listen start}}, {{tl|Multi-listen item}}, dan {{tl|Multi-listen end}}, untuk menyambungkan kepada banyak fail audio
<includeonly>
[[Category:Audio templates]]
[[Kategori:Templat audio|Listen]]
[[Category:Exclude in print|{{PAGENAME}}]]
 
[[ar:قالب:استمع]]
[[cs:Šablona:Poslech]]
[[eo:Ŝablono:Aŭskultu]]
[[es:Plantilla:Sonido]]
[[fa:الگو:شنیدن]]
[[fr:Modèle:Son]]
[[hsb:Předłoha:Posłuchaj]]
[[id:Templat:Dengar]]
[[it:Template:Campione audio]]
[[lv:Veidne:Listen]]
[[ja:Template:試聴]]
[[mk:Шаблон:Слушнете]]
[[no:mal:lytte]]
[[ka:თარგი:მოსმენა]]
[[kk:Template:Listen]]
[[pt:Predefinição:Escute]]
[[ru:Шаблон:Listen]]
[[sl:Predloga:Poslušaj]]
Baris 32 ⟶ 156:
[[vi:Tiêu bản:Nghe]]
[[ko:틀:Listen]]
[[tr:Şablon:Dinle2]]
[[zh:Template:Listen]]
</includeonly>