Template:Audio
Display an audio using a wiki file or verified archive sources.
Usage
{{Audio|file=Example.ogg|label=Spoken excerpt|transcript=Transcript of the excerpt.}}
For an uploaded file, supply file (or positional parameter 1). MediaWiki supplies the file link and its native image or media presentation. Use ordinary [[File:...]] syntax when a reusable template is unnecessary.
For a source held in an archive, omit file and supply the archive identity parameters below. Source filenames and SHA-256 values must match the archive's retained records; imports should fill these fields from verified source bindings. The storage backend does not change the template's purpose.
Playback requires reader interaction. Uploaded files use the wiki's configured media handler. Ordered archive sources must occupy consecutive slots.
Parameters
Display an audio using a wiki file or verified archive sources.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Wiki file | file 1 | Uploaded media filename, with or without File:. Use this or archive sources. | File | optional |
| Archive site | site | Published PreservationArchive site slug. | String | optional |
| Accessible label | label | Short descriptive label for the player, also displayed as its caption. | String | required |
| Transcript | transcript | Optional transcript displayed after the player. | String | optional |
| Source 1 SHA-256 | source1_sha256 | Source 1 SHA-256. Used with archive sources. | String | optional |
| Source 1 type | source1_type | Source 1 type. Used with archive sources.
| String | optional |
| Source 1 filename | source1_filename | Exact source-record filename for the first archived object. | File | optional |
| Source 2 SHA-256 | source2_sha256 | Source 2 SHA-256. Used with archive sources. | String | optional |
| Source 2 type | source2_type | Source 2 type. Used with archive sources.
| String | optional |
| Source 2 filename | source2_filename | Exact source-record filename for the second archived object. | File | optional |
| Source 3 SHA-256 | source3_sha256 | Source 3 SHA-256. Used with archive sources. | String | optional |
| Source 3 type | source3_type | Source 3 type. Used with archive sources.
| String | optional |
| Source 3 filename | source3_filename | Exact source-record filename for the third archived object. | File | optional |
| Source 4 SHA-256 | source4_sha256 | Source 4 SHA-256. Used with archive sources. | String | optional |
| Source 4 type | source4_type | Source 4 type. Used with archive sources.
| String | optional |
| Source 4 filename | source4_filename | Exact source-record filename for the fourth archived object. | File | optional |
| Loop | loop | Boolean: yes/true/1 enables; no/false/0 disables. Playback still requires reader interaction. | Boolean | optional |
| Muted | muted | Boolean: yes/true/1 enables; no/false/0 disables. Playback still requires reader interaction. | Boolean | optional |
| Start | start | Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler. | String | optional |
| End | end | Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler. | String | optional |
| Thumbtime | thumbtime | Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler. | String | optional |