Template:Audio

From Remilia Wiki
Jump to navigation Jump to search

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Wiki filefile 1

Uploaded media filename, with or without File:. Use this or archive sources.

Fileoptional
Archive sitesite

Published PreservationArchive site slug.

Stringoptional
Accessible labellabel

Short descriptive label for the player, also displayed as its caption.

Stringrequired
Transcripttranscript

Optional transcript displayed after the player.

Stringoptional
Source 1 SHA-256source1_sha256

Source 1 SHA-256. Used with archive sources.

Stringoptional
Source 1 typesource1_type

Source 1 type. Used with archive sources.

Suggested values
ogg mp3
Stringoptional
Source 1 filenamesource1_filename

Exact source-record filename for the first archived object.

Fileoptional
Source 2 SHA-256source2_sha256

Source 2 SHA-256. Used with archive sources.

Stringoptional
Source 2 typesource2_type

Source 2 type. Used with archive sources.

Suggested values
ogg mp3
Stringoptional
Source 2 filenamesource2_filename

Exact source-record filename for the second archived object.

Fileoptional
Source 3 SHA-256source3_sha256

Source 3 SHA-256. Used with archive sources.

Stringoptional
Source 3 typesource3_type

Source 3 type. Used with archive sources.

Suggested values
ogg mp3
Stringoptional
Source 3 filenamesource3_filename

Exact source-record filename for the third archived object.

Fileoptional
Source 4 SHA-256source4_sha256

Source 4 SHA-256. Used with archive sources.

Stringoptional
Source 4 typesource4_type

Source 4 type. Used with archive sources.

Suggested values
ogg mp3
Stringoptional
Source 4 filenamesource4_filename

Exact source-record filename for the fourth archived object.

Fileoptional
Looploop

Boolean: yes/true/1 enables; no/false/0 disables. Playback still requires reader interaction.

Booleanoptional
Mutedmuted

Boolean: yes/true/1 enables; no/false/0 disables. Playback still requires reader interaction.

Booleanoptional
Startstart

Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler.

Stringoptional
Endend

Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler.

Stringoptional
Thumbtimethumbtime

Wiki files only: time in seconds or HH:MM:SS, passed to the wiki's media handler.

Stringoptional