{{Listen}} allows audio and video files to be embedded in articles. It should be used for audio files that are set off from the text, such as music clips or sound recordings.
{{Listen| filename =| title =| description =| pos =}}
File:
(formerly Image:
) prefixAdditional files can be embedded in an article with one template by appending a number to each parameter.
{{Listen| filename =| title =| alt =| description =| filename2 =| title2 =| alt2 =| description2 =| filename3 =| title3 =| alt3 =| description3 =}}
The template also takes a number of style parameters to control its appearance:
|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.|image=[[File:Example.jpg|50px]]
. You can set |image=none
to disable the image entirely.|play=no
to prevent the broken inline link from displaying.|plain=yes
, removes most of the ornamentation (table border, image, and help links) to give a minimalist version. This also removes the left/right float and positioning, to allow the box to be manually positioned as desired using the |style=
(e.g., |style=float:right
) parameter and surrounding markup.|embed=yes
to remove border and padding when using as a module embedded in another infobox (see examples below).|length(n)=hide
hides the duration (h:m:s).{{Listen| filename = Accordion chords-01.ogg| title = Accordion chords| description = Chords being played on an accordion}}
{{Listen| image = [[File:Crystal Project video camera.png|50px]]| help = no| filename = Barack Obama inaugural address.ogv| alt = A black man in a black coat gestures and talks at a lecturn surrounded by teleprompters. Behind him, in the background, are about a dozen warmly-dressed onlookers.| title = Inaugural address of Barack Obama| description = Barack Obama's [[First inauguration of Barack Obama|first inaugural address]], January 20, 2009<br />(Duration: 21 minutes, 21 seconds)}}
{{Listen| header = Recordings of this phrase:| type = speech| filename = Frase de Neil Armstrong.ogg| title = "One small step for a man..."| description = First words spoken on the [[Moon]].}}
{{Infobox person| name = Dr. Accordion| occupation = Accordion player| module ={{Listen| filename = Accordion chords-01.ogg| title = Accordion chords| embed = yes}}}}
{{Listen| type = music| filename = Accordion chords-01.ogg| title = Accordion chords| description = Chords being played on an accordion| filename2 = Moonlight.ogg| title2 = ''Moonlight Sonata''| description2 = [[Ludwig van Beethoven|Beethoven]]'s [[Piano Sonata No. 14 (Beethoven)|Sonata in C-sharp minor]]| filename3 = Brahms-waltz15.ogg| title3 = Waltz No. 15| description3 = From [[Sixteen Waltzes, Op. 39 (Brahms)|Sixteen Waltzes, Op. 39]] by [[Johannes Brahms|Brahms]]}}
Date-of-publication ("published") information will only be included in the microformat if {{start date}} (or, where appropriate, {{start date and age}}) is used in a parent infobox/template. Do not, however, use {{start date}} or {{start date and age}} if a date before 1583 CE is involved.
Use {{duration}} to specify the duration/length of a recording. For instance, if the recording's duration is 3 minutes 45 seconds, use {{duration|m=3|s=45}}
(which appears as: 3:45). If needed, |h=
may be included to specify a number of hours.
Please do not remove instances of these subtemplates.
The HTML classes of this microformat include:
TemplateData for Listen
Allows audio and video files to be embedded in articles.
{{small|{{Audio|soundfile.ogg|pronunciation}}}}