Help:Sound file markup

From Wikipedia, the free encyclopedia

The best sound markup in most situations is

{{listen |filename=FILENAME.ogg |title=TITLE |description=DESCRIPTION }}


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:

Using templates

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:

{{listen |filename=Accordion chords-01.ogg |title=Accordion chords |description=Chords being played on an accordion }}

Inline

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.

{{Audio|name of sound file|text to use as link to soundfile}}

Example:

'''Eisenhüttenstadt''' ({{Audio|De-Eisenhüttenstadt.ogg|pronunciation}}) is a town in ...

gives this:

Eisenhüttenstadt (About this sound pronunciation ) is a town in ...

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

Eisenhüttenstadt (pronunciation ) is a town in ...

Setting |help=no disables the "help/info" links. If this is done the template {{inline audio}} must be shown on the page.

Other inline templates

In an infobox

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.

[[File:Accordion chords-01.ogg]]


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

[[File:Accordion chords-01.ogg|noicon]]


Caption

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

[[File:Accordion chords-01.ogg|thumb|Caption]]

Note that none of these examples provide links to Wikipedia: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 "Media:" instead of "File:".

[[Media:Example.ogg]]
Media:Example.ogg

In both cases piped links also work.

See also

Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Sound_file_markup&oldid=742455635"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Help:Sound_file_markup
This page is based on the copyrighted Wikipedia article "Help:Sound file markup"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA