Template:Audio: Difference between revisions
Jump to navigation
Jump to search
(Template created.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{check deprecated lang param usage|lang={{{lang|}}}|1=<!-- | {{check deprecated lang param usage|lang={{{lang|}}}|1=<!-- | ||
--><templatestyles src="audio/styles.css" /><!-- | --><templatestyles src="Template:audio/styles.css" /><!-- | ||
--><table class="audiotable" style="vertical-align: bottom; display:inline-block; list-style:none;line-height: 1em; border-collapse:collapse;"><!-- | --><table class="audiotable" style="vertical-align: bottom; display:inline-block; list-style:none;line-height: 1em; border-collapse:collapse;"><!-- | ||
--><tr><!-- | --><tr><!-- |
Revision as of 17:18, 15 January 2020
(file) |
- The following documentation is located at Template:Audio/documentation. [edit]
- Useful links: subpage list • transclusions • redirects • sandbox
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: a code indicating the language of a term. See "Project: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.|format=
– if using the template to provide a relevant audio recording, use|format=1
.
Examples
- To indicate the pronunciation of a term
- To link to a relevant audio recording
- Wikitext:
{{audio|en|WWII submarine dive klaxon.ogg|A dive alert, or klaxon, aboard a {{wt|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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language | 1 | The language the recording is in.
| Line | required |
Audio file | 2 file clip | The sound file to play
| File | required |
Text displayed | 3 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.
| Line | required |