Template:Video

From Appropedia

Template documentation[edit source]

Use this template to embed videos uploaded to Appropedia, Wikimedia Commons, YouTube or Vimeo, associate meta data to them in order to make them searchable, and put them into Category:Pages with videos.

Usage

Basic

  • {{Video|video=Placeholder.mp4}} − Embed a video uploaded to Appropedia
  • {{Video|video=The Yakan Native Dance.webm}} − Embed a video uploaded to Wikimedia Commons
  • {{Video|video=hkFqpkV3fF4}} − Embed a YouTube video by id
  • {{Video|video=https://www.youtube.com/watch?v=hkFqpkV3fF4}} − Embed a YouTube video by URL

Parameters

  • videoRequired File name, id or URL, for example:
    • https://www.youtube.com/watch?v=hkFqpkV3fF4 − YouTube URL
    • https://vimeo.com/431803145 − Vimeo URL
    • hkFqpkV3fF4 − YouTube id
    • 431803145 − Vimeo id
    • House 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-code − 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 = House wren in JBWR (50171).webm
|title = House wren in JBWR
|description = House wren guards its nest
|keywords = bird, wren, nest
|authors = Rhododendrites
|date = 2020-07-05
|location = Jamaica
|language-code = es
|license = CC BY-SA 4.0
|align = center
}}
House wren in JBWR
House wren guards its nest
Keywords: bird, wren, nest
By Rhododendrites
2020-07-05
License: CC BY-SA 4.0

See also

Template data

Embed videos uploaded to Appropedia, Wikimedia Commons, YouTube or Vimeo.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Videovideo 1

Video name, URL or id

Example
https://www.youtube.com/watch?v=3R2gvgcdseI
Stringrequired
Titletitle 2

Video title

Example
How to build an igloo
Stringoptional
Descriptiondescription

Video description

Stringoptional
Keywordskeywords

Comma-separated list of keywords

Example
solar, garden, recycle
Stringoptional
Authorsauthors

Authors names or usernames on Appropedia (including the 'User:' prefix)

Example
Lonny, Emilio, John Doe
Stringoptional
Datedate

Date when the video was made

Example
2020-09-23
Dateoptional
Locationlocation

Location where the video was made

Example
Buenos Aires, Argentina
Stringoptional
Language codelanguage-code

Language code of the language of the video

Default
en
Example
es
Stringoptional
Licencelicense

License under which this video is released

Example
CC-BY-SA 4.0
Stringoptional
Alignalign

Alignment of the video

Default
left
Example
center
Stringoptional