Template documentationedit documentation
Use this template to embed videos uploaded to Appropedia, Wikimedia Commons, YouTube or Vimeo.
This template also allows you to associate meta data to the videos in order to make them searchable, and categorizes pages into Category:Pages with videos.
Usage
Basic
{{Video|Growing tomatoes.mp4}}
— Embed a video uploaded to Appropedia{{Video|The Yakan Native Dance.webm}}
— Embed a video uploaded to Wikimedia Commons{{Video|431803145}}
— Embed a Vimeo video by id{{Video|kFqpkV3fF4}}
— Embed a YouTube video by id{{Video|video=https://www.youtube.com/watch?v=hkFqpkV3fF4}}
— Embed a YouTube video by URL (notice that the "video" parameter is required because else the = sign in the YouTube URL will confuse the template)
Parameters
video
— Required! File name, id or URL, for example:https://www.youtube.com/watch?v=hkFqpkV3fF4
— YouTube URLhttps://vimeo.com/431803145
— Vimeo URLhkFqpkV3fF4
— YouTube id431803145
— Vimeo idHouse wren in JBWR (50171).webm
— Name of a file uploaded to Appropedia or to Wikimedia Commons
title
— Title of the video, used for search results.description
— Description of the video content, used for search results.keywords
— Comma-separated list of keywords, for example 'solar, garden, recycle'.authors
— Authors names or usernames on Appropedia (including the 'User:' prefix).date
— Date when the video was made, for example '2020-09-23'.location
— Location where the video was made, for example 'Buenos Aires, Argentina'.language
— Language code of the language of the video, for example 'es' for Spanish ('en' for English is assumed).license
— License under which this video is released, for example 'CC-BY-SA-4.0'.align
— Alignment of the video, for example 'center'.
Example
{{Video | video = https://vimeo.com/431803145 | align = center | title = The Walking Fish | description = A tragicomic short film about ambition, perfection and self-acceptance. | keywords = ambition, perfection, self-acceptance, fish | authors = Thessa Meijer | date = 2020-07-05 | location = Netherlands | language = es | license = CC-BY-SA-4.0 | annotations = * 00:00 Start * 00:10 Tenth second * 01:00 Minute mark }}
See also
- Template:Video/styles.css — Styling for this template
- Template:Video/id — Helper template for getting the video id out of the URL
- Template:Video/service — Helper template for getting the video service (YouTube, Vimeo, Appropedia or Wikimedia Commons) out of the URL, file name or file id
- Template:Video/url — Helper template for generating the video URL out of the video service and id
- MediaWiki:TemplateVideo.js — JavaScript code run when this template is found
Template data
Use this template to embed videos uploaded to Appropedia, Wikimedia Commons, YouTube or Vimeo.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video | video 1 | Video name, URL or id
| String | required |
Title | title 2 | Video title
| String | optional |
Align | align | Alignment of the video
| String | optional |
Description | description | Video description | String | optional |
Keywords | keywords | Comma-separated list of keywords
| String | optional |
Authors | authors | Authors names or usernames on Appropedia (including the 'User:' prefix)
| String | optional |
Date | date | Date when the video was made
| Date | optional |
Location | location | Location where the video was made
| String | optional |
Language | language | Language code of the language of the video
| String | optional |
Licence | license | License under which this video is released
| String | optional |
Annotations | annotations | Annotations to navigate the video
| Content | optional |