Template:Inline audio
Purpose
[edit source]This template links to an audio file for quick listening (i.e., without leaving the page). It is meant to be used inline with text, for pronunciations and the like. Please note that this just creates a link to the file and does not actually embed the file.
The template uses the Phonos MediaWiki extension to create an audio link that plays on click.
Usage
[edit source]{{Inline audio|name of sound file|(text to use as link to soundfile)}}
- Example
'''Alabama''' ({{Inline audio|en-us-Alabama.ogg|pronounced}}) is a state located in...- → Alabama (ⓘ) is a state located in...
TemplateData
[edit source]TemplateData for Inline audio
Use this template to add an inline link to an audio file, preceded by a speaker icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Audio file | 1 | Audio file to link to
| File | required |
| Label | 2 | Text to replace the filename in the link
| String | optional |
See also
[edit source]- {{Listen}} – sets an audio clip off from the main text
- {{Listen image}} – sets an audio clip and an associated image off from the main text
- {{Audio}} – for inline sounds like pronunciations (with a help link)
- {{Audio-IPA}} – a variant of this template to be used with IPA notation
- {{Pronunciation}} – a shortcut for
{{small|{{Audio|soundfile.ogg|pronunciation}}}} - {{Audio-nohelp}} – without a help link
- {{Spoken Wikipedia}} – for linking spoken Wikipedia article versions
- {{Multi-listen start}}, {{Multi-listen item}}, and {{Multi-listen end}} – used to list multiple audio files in the same box
- {{Audio icon}} – adds only the small icon with no links
- {{Inline audio}} – adds a notice with link to Wikipedia:Media help
Plays audio within the page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Audio file | 1 | Enter the name of the audio file including its type
| String | required |
| Text to replace the filename | 2 | Enter text to replace the file name | String | optional |