Template:Video: Difference between revisions
From Electrical Installation Guide
No edit summary |
(move to MW1.39) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="col | <includeonly><div class="col-12 col-sm-5 {{#ifeq: {{{float|{{{3|}}}}}}|left|video-float-left|video-float-right clearfix}}">{{#ev:youtube|id={{{id|{{{1|}}}}}}|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:vd0}}</div></includeonly><noinclude> | ||
[[Category:Eig-other-templates|{{PAGENAME}}]] | [[Category:Eig-other-templates|{{PAGENAME}}]] | ||
Line 28: | Line 26: | ||
"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 13:47, 26 January 2024
Used to embed a YouTube video inside a page (as a right floating element)
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | YouTube video ID
| String | required |
Playlist | playlist 2 | Optionally add this parameter (YouTube playlist ID) to view in "playlist" mode, eg next video starts automatically
| String | suggested |
Float | float 3 | Optional parameter for video float position (left/right)
| String | suggested |