Template:Video

From Remilia Wiki
Jump to navigation Jump to search

Display video using a wiki file or verified archive sources.

Usage

{{Video|file=Milady ape.mp4|label=Milady ape|width=400}}

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.

Loop and muted apply to both source types. Source-poster options apply to archive sources; uploaded videos use thumbtime. The archive video backend must be installed before importing those sources.

Parameters

Display video 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

Archive site. Used with archive sources.

Stringoptional
Accessible labellabel

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

Stringrequired
Display widthwidth

Maximum display width in whole pixels, from 1 to 16384.

Numberoptional
Display heightheight

Maximum display height in whole pixels, from 1 to 16384.

Numberoptional
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
Poster SHA-256poster_sha256

Poster SHA-256. Used with archive sources.

Stringoptional
Poster source filenameposter_filename

Poster source filename. Used with archive sources.

Fileoptional
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
mp4 webm
Stringoptional
Source 1 filenamesource1_filename

Source 1 filename. Used with archive sources.

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
mp4 webm
Stringoptional
Source 2 filenamesource2_filename

Source 2 filename. Used with archive sources.

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
mp4 webm
Stringoptional
Source 3 filenamesource3_filename

Source 3 filename. Used with archive sources.

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
mp4 webm
Stringoptional
Source 4 filenamesource4_filename

Source 4 filename. Used with archive sources.

Fileoptional
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