« Modèle:Video » : différence entre les versions
De Guide de l'Installation Electrique
m (1 révision importée : importer pages, templates etc de PPR-FR (X1)) |
(modified for migration to MW1.35) |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly><div class="col | <includeonly><div class="col-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:vd0}}</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:vd0}}</div></includeonly><noinclude> |
Version du 30 juin 2022 à 15:47
Used to embed a YouTube video inside a page (as a right floating element)
Paramètre | Description | Type | État | |
---|---|---|---|---|
ID | id 1 | YouTube video ID
| Chaîne | obligatoire |
Playlist | playlist 2 | Optionally add this parameter (YouTube playlist ID) to view in "playlist" mode, eg next video starts automatically
| Chaîne | suggéré |
Float | float 3 | Optional parameter for video float position (left/right)
| Chaîne | suggéré |