Vorlage:Video: Unterschied zwischen den Versionen

Aus Planungskompendium Energieverteilung
Wechseln zu:Navigation, Suche
(Added new parameter to indicate the closed-caption language to use - info added to the YouTube link in the embedded videos using this template)
(same as quickly tested in PPR-EN - use EN subtitles if no parameter provided in the template call - should make no change in DE wiki as parameter always provided)
 
Zeile 1: Zeile 1:
<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{{#if: {{{cc_lang|{{{4|}}}}}} | &cc_lang_pref={{{cc_lang|{{{4|}}}}}} | }}&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>
<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&cc_lang_pref={{{cc_lang|{{{4|en}}}}}}&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}}]]

Aktuelle Version vom 13. Januar 2025, 13:32 Uhr


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

Vorlagenparameter

ParameterBeschreibungTypStatus
IDid 1

YouTube video ID

Standard
W_AtINVj5x0
Beispiel
W_AtINVj5x0
Mehrzeiliger Texterforderlich
Playlistplaylist 2

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

Standard
PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_
Beispiel
PLa7UGrWOTyjnuRAZcaIVEtgbmQ61qYzT_
Mehrzeiliger Textvorgeschlagen
Floatfloat 3

Optional parameter for video float position (left/right)

Standard
right
Beispiel
left
Mehrzeiliger Textvorgeschlagen
Closed caption languagecc_lang 4

The subtitle language to add in the url link

Vorgeschlagene Werte
en
Standard
en
Beispiel
de
Mehrzeiliger Textoptional