Jump to content

Template:YouTube: Difference between revisions

From ICE List Wiki
[unchecked revision][unchecked revision]
YouTube embed template
 
Fix: use <div> not <figure>/<figcaption>/<noscript> (were escaped by the HTML sanitizer)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><figure class="ic-video"><div class="ic-embed ic-embed--ratio ic-embed-youtube" data-id="{{{1}}}"><noscript>[https://youtu.be/{{{1}}} Watch on YouTube]</noscript></div><figcaption class="ic-video-cap">{{{2|}}}</figcaption></figure></includeonly><noinclude>Video embed (rendered client-side). [[Category:Video templates]]</noinclude>
<includeonly><div class="ic-video"><div class="ic-embed ic-embed--ratio ic-embed-youtube" data-id="{{{1}}}"><span class="ic-embed-fallback">YouTube video (enable JavaScript to view)</span></div><div class="ic-video-cap">{{{2|}}}</div></div></includeonly><noinclude>Video embed (client-side). [[Category:Video templates]]</noinclude>

Latest revision as of 19:27, 9 July 2026

Video embed (client-side).