Template:audio

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

Usage

This template links to an audio file of spoken language, typically in the "Pronunciation" section of an entry to indicate how a term is pronounced.

To link to an audio file connected to the meaning of the entry (for example, a recording of a klaxon sound in the klaxon entry), use {{listen}}.

Parameters

The template takes the following parameters:

  • |1=mandatory: a code indicating the language of a term. See "Wiktionary:List of languages" for a list of these codes. The parameter |lang= is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.
  • |2=mandatory: the name of the audio file.
  • |3=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.

Examples

  • Wikitext: {{audio|en|En-uk-ubiquitous.ogg|Audio (RP)}}
  • Result:
    (file)
The file name should be formatted as [language code]-[dialect if any]-[term].

See also

  • {{audio-IPA}} – a version of the template to be used with IPA transcriptions
  • {{listen}} – for relevant sound samples (not spoken language)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for audio

An audio file to assist readers pronouncing the word. Labeled with language and possibly dialect.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Language1

The language the recording is in.

Example
en
Linerequired
Audio file2 file clip

The sound file to play

Example
en-US pronunciation of "antishinto".ogg
Filerequired
Text displayed3 text context

Text displayed on the link; typically something like "Audio (GA)". You must use this parameter when indicating the pronunciation of a term with this template.

Example
Audio (RP)
Linerequired