Template:Video
This template defines the table "Videos". View table.
Purpose
Stores and optionally displays information about a video linked to a performance entry in the Cargo table Videos. This will typically only be done in song articles.
Storage
This template defines and populates the Cargo table Videos.
It references Performances through the field perfID (which, as explained below, is constructed using the input parameter pid and the current page title).
Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
pid |
Yes | Local performance ID (the same as id used in {{Performance}}). Automatically prefixed with the page's name, here Video. |
pid=01
|
url |
Yes | Full video URL. | url=https://www.youtube.com/watch?v=abc123
|
duration |
No | Video length type. Allowed: full, short, fragment. |
duration=full
|
quality |
No | Subjective quality rating. Allowed: best, good, acceptable, poor. |
quality=good
|
comment |
No | Additional notes (wikitext allowed). | comment=Official HD upload
|
title |
No | Optional title for link display. If not set, title is auto-fetched by Module:VideoMetaData. |
title=Official Music Video
|
nodisp |
No | Suppresses on-page link display when set to any true value. | nodisp=1
|
Display
If nodisp is not set to a true value, the template outputs a clickable link using {{xl}}:
If title is omitted, the link text is generated automatically by Module:VideoMetaData from Data:VideoMetaData.json.
If duration is set, it will be displayed in small gray print after the link, see the example below.
Example
{{Video
|pid=01
|url=https://www.youtube.com/watch?v=abc123
|duration=full
|quality=best
|comment=Official upload
|title=Official Music Video
}}
This would store the video record linked to Video_01 in Cargo and display a link:
Official Music Video↗(full)
(Obviously, it doesn't make much sense to do this here on this page, since its title is not a song or other thing that Angelina could "perform", but it's just for illustration purposes.)
Related
- Template:Performance – parent performance data
- Special:CargoTables/Videos – table structure and query access