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.

Simple usage

{{Sound
| filename    = 
| title       = 
}}
  • filename (Required): the pagename of the media file, without the File: (formerly Image:) prefix
  • title (Required): the title of the audio file, to be displayed. Do not use quote marks around song titles. Do not use wikilinks in the title – they will not work.
  • description: a description of the audio file
  • pos: = left or right

Multiple files

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.

{{Sound
| filename     = 
| title        = 
| alt          = 
| description  = 
| filename2    = 
| title2       = 
| alt2         = 
| description2 = 
| filename3    = 
| title3       = 
| alt3         = 
| description3 = 
}}
  • filename (Required): the pagename of the media file, without the File: (formerly Image:) prefix
  • title (Required): the title of the audio file, to be displayed. Do not use quote marks around song titles.
  • alt: alt text for the image displayed for the file, for visually impaired readers; see Wikipedia:Alternative text for images. This is needed for file formats such as Ogg's .ogv format that include video as well as sound. The alt text should describe just the initial static image, not the entire video or its sound.
  • description: a description of the audio file

Style parameters

The template also takes a number of style parameters to control its appearance:

  • type: can be used to alter the image displayed at the left depending on the type of audio content being embedded. Acceptable values are music, speech and sound (default)
  • header: can be used to add a header to the box.
  • pos: 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.
  • image: define a different image. Eg [[File:Example.jps|20px]]. You can set image to none to disable the image entirely.
  • play#: some media files cannot be displayed inline; if this is the case set play to no to prevent the broken inline link from displaying.
  • plain: if set plain to 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 to float:right) parameter and surrounding markup.
For more info, see Template:Listen at Wikipedia.
Community content is available under CC-BY-SA unless otherwise noted.