Template:Video/doc
From Angelina Jordan Wiki
This is a subpage documenting Template:Video. To change the template, edit that page; to change the template's documentation (seen below), edit this one.
Purpose
Stores and optionally displays information about a video linked to a performance entry in the Cargo table Videos.
Storage
This template defines and populates the Cargo table Videos.
It references Performances through the field perfID.
Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
pid |
Yes | Local performance ID (the same as id used in {{Performances}}). Automatically prefixed with Video/doc. |
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. | nodisp=1
|
Display
If nodisp is not set, the template outputs a clickable link using {{xl}}:
[url title]↗
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/doc_01 in Cargo and display a link:
Related
- Template:Performance — parent performance data.
- Special:CargoTables/Videos — table structure and query access.