Changes for page YouTube-Video (Makro)
Last modified by Christian Holzner on 2026/09/17 13:49
From version 2.1
edited by Christian Holzner
on 2026/09/17 13:48
on 2026/09/17 13:48
Change comment:
Wiki-Makro youtube (schlankes iframe-Embedding) anlegen/aktualisieren
To version 3.1
edited by Christian Holzner
on 2026/09/17 13:49
on 2026/09/17 13:49
Change comment:
Wiki-Makro youtube (schlankes iframe-Embedding) anlegen/aktualisieren
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -37,7 +37,7 @@ 37 37 #else 38 38 ## Standardmodus: feste Hoehe, Breite bis max. 16:9-Verhaeltnis (siehe oben) 39 39 {{html clean="false"}} 40 - <div class="ai-youtube-wrapper" style="max-width:${maxWidth}px"> 40 + <div class="ai-youtube-wrapper" style="max-width:${maxWidth}px;margin:0 auto"> 41 41 <iframe src="https://www.youtube-nocookie.com/embed/${videoId}" style="display:block;width:100%;height:${height};border:0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" loading="lazy" allowfullscreen></iframe> 42 42 </div> 43 43 {{/html}}


