Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
<div class="video-title">{{{2|{{{title|}}}}}}</div>}}{{#if:{{{description|}}}| | <div class="video-title">{{{2|{{{title|}}}}}}</div>}}{{#if:{{{description|}}}| | ||
<div class="video-description">{{{description}}}</div>}}{{#if:{{{authors|}}}| | <div class="video-description">{{{description}}}</div>}}{{#if:{{{authors|}}}| | ||
− | <div class="video-authors">By {{#arraymap:{{{authors}}}|,|@|{{#ifexist | + | <div class="video-authors">By {{#arraymap:{{{authors|}}}|,|@|{{#ifexist:@|[[@|{{#if:{{#show:@|?Has name}}|{{#show:@|?Has name}}|{{#if:{{REALNAME:@}}|{{REALNAME:@}}|{{PAGENAME:@}}}}}}]]|@}}}}</div>}}{{#if:{{{date|}}}| |
<div class="video-date">{{{date}}}</div>}}{{#if:{{{location|}}}| | <div class="video-date">{{{date}}}</div>}}{{#if:{{{location|}}}| | ||
<div class="video-location">{{#arraymap:{{{location}}}|,|@|[[@]]}}</div>}}{{#if:{{{annotations|}}}| | <div class="video-location">{{#arraymap:{{{location}}}|,|@|[[@]]}}</div>}}{{#if:{{{annotations|}}}| | ||
Line 21: | Line 21: | ||
|Has platform = {{Video/service|{{{1|{{{video|}}}}}}}} | |Has platform = {{Video/service|{{{1|{{{video|}}}}}}}} | ||
|Has description = {{{description|}}} | |Has description = {{{description|}}} | ||
− | |Has author = | + | |Has author = {{{authors|}}}|+sep |
|Has date of publication = {{{date|}}} | |Has date of publication = {{{date|}}} | ||
|Has location = {{{location|}}}|+sep | |Has location = {{{location|}}}|+sep |
Revision as of 18:49, 26 November 2020
Template documentation[edit]
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
video
− Required File name, id or URL, for example https://www.youtube.com/watch?v=hkFqpkV3fF4, https://vimeo.com/431803145 or simply 'hkFqpkV3fF4' or 431803145title
− 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 of the video, for example 'Spanish'. English is assumed.license
− License under which this video is released, for example "CC-BY-SA 4.0".
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 = English |license = CC BY 4.0 }}
See also
- Template:Video/id − Helper template for extracting a video id out of the URL
- Template:Video/url − Helper template for generating a video URL out of a video platform and id
- 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/annotation − Helper template for displaying the video annotations
- Template:Video/styles.css − Styling
- Widget:YouTube − Widget to embed YouTube videos
- Widget:Vimeo − Widget to embed Vimeo videos
Template data
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 |
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 | Video language
| String | optional |
Licence | license | License under which this video is released
| String | optional |
Annotations | annotations | no description | String | optional |