« Modèle:Video-list » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
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="row">
<includeonly><div class="row">
{{#tag:evlplayer||class=col-xs-12 col-lg-5 pull-right|w=450|id=example-player|service=youtube|defaultid={{#if: {{{default|}}} | {{{default|}}} | {{{1|}}} }} }}
{{#tag:evlplayer||class=col-12 col-lg-5 pull-right|w=450|id=example-player|service=youtube|defaultid={{#if: {{{default|}}} | {{{default|}}} | {{{1|}}} }} }}
<div class="col-xs-12 col-lg-7" id="playlist"><!--
<div class="col-12 col-lg-7" id="playlist"><!--
-->{{#fornumargs: number | value | {{#ifexpr:{{#var: number}} mod 2 |{{#evl: {{#var: value}} | {{{ {{#expr:{{#var: number}}+1}} |}}} | service=youtube | player=example-player }}<br> |}}}}<!--
-->{{#fornumargs: number | value | {{#ifexpr:{{#var: number}} mod 2 |{{#evl: {{#var: value}} | {{{ {{#expr:{{#var: number}}+1}} |}}} | service=youtube | player=example-player }}<br> |}}}}<!--
--></div>
--></div>

Version du 30 juin 2022 à 15:47


This template is used to add a video list (one player for all the videos) Syntaxe: {{video-list |<youtube-id-video-1>|<link-text-video-1> ... |<youtube-id-video-X>|<link-text-video-X>}} optionally, you can also define which video will be shown by default, by adding a parameter with the syntax "default=<youtube-id-video>". If not provided, the first video in the list will be shown by default.

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Aucun paramètre spécifié