More actions
Content deleted Content added
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<infobox> |
<infobox> |
||
<title source="title" default="Untitled Video" |
<title source="title" default="Untitled Video"> |
||
<default>{{PAGENAME}}</default> |
|||
⚫ | |||
</title> |
|||
⚫ | |||
<data source="channel" label="Channel"> |
<data source="channel" label="Channel"> |
||
<label>Channel</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
|||
<data> |
|||
<label>Link</label> |
|||
<default>[https://www.youtube.com/watch?v={{{id}}} {{{id}}}]</default> |
|||
</data> |
</data> |
||
<data source="date" label="Upload Date"> |
<data source="date" label="Upload Date"> |
||
<label>Upload date</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="duration" label="Duration"> |
<data source="duration" label="Duration"> |
||
<label>Duration</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="views" label="Views"> |
<data source="views" label="Views"> |
||
<label>Views</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="likes" label="Likes"> |
<data source="likes" label="Likes"> |
||
<label>Likes</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="dislikes" label="Dislikes"> |
<data source="dislikes" label="Dislikes"> |
||
<label>Dislikes</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="comments" label="Comments"> |
<data source="comments" label="Comments"> |
||
<label>Comments</label> |
|||
<default>Unknown</default> |
<default>Unknown</default> |
||
</data> |
</data> |
||
<data source="description" label="Description"> |
<data source="description" label="Description"> |
||
<label>Description</label> |
|||
<default>No description available</default> |
<default>No description available</default> |
||
</data> |
</data> |
||
Line 29: | Line 43: | ||
<noinclude> |
<noinclude> |
||
<templatedata> |
|||
<TemplateData> |
|||
{ |
{ |
||
"description": "This template displays information about a YouTube video in an infobox format.", |
"description": "This template displays information about a YouTube video in an infobox format.", |
||
Line 37: | Line 51: | ||
"description": "Title of the YouTube video", |
"description": "Title of the YouTube video", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
|||
"default": "Untitled Video" |
"default": "Untitled Video" |
||
}, |
}, |
||
Line 43: | Line 58: | ||
"description": "Image URL for the video thumbnail", |
"description": "Image URL for the video thumbnail", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
|||
"default": "No image available" |
"default": "No image available" |
||
}, |
}, |
||
Line 49: | Line 65: | ||
"description": "Name of the YouTube channel", |
"description": "Name of the YouTube channel", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
|||
"default": "Unknown" |
"default": "Unknown" |
||
}, |
}, |
||
Line 62: | Line 79: | ||
"description": "Upload date of the video", |
"description": "Upload date of the video", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
|||
"default": "Unknown" |
"default": "Unknown" |
||
}, |
}, |
||
Line 68: | Line 86: | ||
"description": "Duration of the video", |
"description": "Duration of the video", |
||
"type": "string", |
"type": "string", |
||
"required": true, |
|||
"default": "Unknown" |
"default": "Unknown" |
||
}, |
}, |
||
Line 116: | Line 135: | ||
] |
] |
||
} |
} |
||
</templatedata> |
|||
</TemplateData> |
|||
</noinclude> |
</noinclude> |
Latest revision as of 07:14, 9 September 2023
This template displays information about a YouTube video in an infobox format.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title of the YouTube video
| String | required |
Image | image | Image URL for the video thumbnail
| String | required |
Channel | channel | Name of the YouTube channel
| String | required |
ID | id | YouTube video ID
| String | required |
Upload Date | date | Upload date of the video
| String | required |
Duration | duration | Duration of the video
| String | required |
Views | views | Number of views
| Number | optional |
Likes | likes | Number of likes
| Number | optional |
Dislikes | dislikes | Number of dislikes
| Number | optional |
Comments | comments | Number of comments
| Number | optional |
Description | description | Description of the video
| String | optional |