Template:Video: Difference between revisions

From Electrical Installation Guide
m (Protected "Template:Video" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(add parameter to choose float position (default=right) + added clearfix on float right)
Line 1: Line 1:
<includeonly><div class="col-xs-12 col-sm-5 video-float-right">{{#evu:https://www.youtube.com/watch?v={{{id|{{{1|}}}}}}
<includeonly><div class="col-xs-12 col-sm-5 {{#ifeq: {{{float|{{{3|}}}}}}|left|video-float-left|video-float-right clearfix}}">{{#evu:https://www.youtube.com/watch?v={{{id|{{{1|}}}}}}
  |alignment=center
  |alignment=center
  |urlargs=cc_load_policy=1&rel=0&modestbranding=1&controls=1{{#if: {{{playlist|{{{2|}}}}}} | &listType=playlist&list={{{playlist|{{{2|}}}}}} |}} }}</div>[[Category:Eig-pages-with-video|{{PAGENAME}}]]<div>{{#addbodyclass:has-video}}</div></includeonly><noinclude>
  |urlargs=cc_load_policy=1&rel=0&modestbranding=1&controls=1{{#if: {{{playlist|{{{2|}}}}}} | &listType=playlist&list={{{playlist|{{{2|}}}}}} |}} }}</div>[[Category:Eig-pages-with-video|{{PAGENAME}}]]<div>{{#addbodyclass:has-video}}</div></includeonly><noinclude>
Line 28: Line 28:
"type": "string",
"type": "string",
"default": "PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_",
"default": "PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_",
"suggested": true
},
"float": {
"aliases": [
"3"
],
"label": "Float",
"description": "Optional parameter for video float position (left/right)",
"example": "left",
"type": "string",
"default": "right",
"suggested": true
"suggested": true
}
}

Revision as of 00:17, 23 December 2019


Used to embed a YouTube video inside a page (as a right floating element)

Template parameters

ParameterDescriptionTypeStatus
IDid 1

YouTube video ID

Default
W_AtINVj5x0
Example
W_AtINVj5x0
Stringrequired
Playlistplaylist 2

Optionally add this parameter (YouTube playlist ID) to view in "playlist" mode, eg next video starts automatically

Default
PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_
Example
PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_
Stringsuggested
Floatfloat 3

Optional parameter for video float position (left/right)

Default
right
Example
left
Stringsuggested