User:Stephenj642/Sound

 The best sound markup in most situations is

File types
Before a file can be used, it must be uploaded to either Wikipedia or the Wikimedia Commons sister project. Uploading to Commons is recommended as files can be used by other sister projects. Files being used under fair use provisions must be stored on Wikipedia. The markup is the same regardless of where it is uploaded.

The following sound formats may be uploaded:
 * ogg/oga - recommended.
 * mid

To the side
Normally, sound files are presented on Wikipedia pages using the Template:Listen or its related templates.

This is an example, displaying common usage:



Template:Audio
This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like.

Example:



gives this:


 * Bordeaux is a port city in...

Note that a printout of the page will remove the "help·info" bit and give:


 * Bordeaux ( pronunciation ) is a port city in...

Setting no disables the "help/info" links. If this is done the template must be shown on the page.

Other inline templates

 * Template:Audio-nohelp - No help link
 * Template:Pronunciation - A shortcut for
 * Template:Audlisten - Simple listen link
 * Template:Audio-IPA - Include IPA information
 * Template:Audio-cs - Czech
 * Template:Audio-da - Danish
 * Template:Audio-de - German
 * Template:Audio-es - Spanish
 * Template:Audio-pl - Polish
 * Template:Audio-pt - Portuguese
 * Template:Audio-ru - Russian
 * Template:Audio-uk - Ukrainian

In an infobox

 * Template:Extra musicsample - This template is for adding a music sample within Infobox song or Infobox single.

Directly using a file
Normally, sound files are presented on Wikipedia pages using the Template:Listen or its related templates. However, it is also possible to present an audio file without any template.



If the code " is used the information icon is not displayed.



The thumb option may be used to give the file a caption

Note that none of these examples provide links to Media help. Thus, whenever this method is used, the Template:Inline audio must be shown on the page.

Link to a file without displaying it
To link to a description page, put a colon before the prefix.
 * File:Example.ogg
 * File:Example.ogg

You can also link directly to the file using " " instead of " ".
 * [[Media:Example.ogg]]
 * [[Media:Example.ogg]]

In both cases piped links also work.