Template:audio

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search
(file)

Usage

This template links to an audio file for quick listening, either in the "Pronunciation" section of an entry to indicate how a term is pronounced, or elsewhere to provide an audio recording that is relevant to the entry.

Parameters

The template takes the following parameters:

  • |1=mandatory: the name of the audio file.
  • |2=mandatory in some cases: the text to use as a link to the audio file. You must use this parameter when indicating the pronunciation of a term with this template.
  • |lang=mandatory in some cases: a code indicating the language of a term. See "Wiktionary:List of languages" for a list of these codes. You must use this parameter when indicating the pronunciation of a term with this template.
  • |format= – if using the template to provide a relevant audio recording, use |format=1.

Examples

To indicate the pronunciation of a term
  • Wikitext: {{audio|en-uk-ubiquitous.ogg|Audio (RP)|lang=en}}
  • Result:
    (file)
To link to a relevant audio recording
  • Wikitext: {{audio|WWII submarine dive klaxon.ogg|A dive alert, or klaxon, aboard a [[World War II]] {{w|United States Navy}} [[submarine#Noun|submarine]]|format=1}}
  • Result:
    (file)
    A dive alert, or klaxon, aboard a World War II United States Navy submarine
Visit klaxon to see how the template is used.

See also

  • {{audio-IPA}} – a version of the template to be used with IPA transcriptions