Jump to content

Template:YouTube: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
Update
Tag: Reverted
Update
 
(5 intermediate revisions by the same user not shown)
Line 35: Line 35:


[[Category:Templates]]
[[Category:Templates]]
 
</noinclude><includeonly><div class="soji-yt-embed" data-video-id="{{#explode:{{#explode:{{{id|}}}|?|0}}|&|0}}" data-width="{{{width|640}}}" data-align="{{{align|center}}}" data-caption="{{{caption|}}}"></div></includeonly>
 
</noinclude><includeonly><div style="text-align:{{{align|center}}}; margin:10px 0;"><html><iframe src="https://www.youtube.com/embed/PLACEHOLDER_ID?autoplay=PLACEHOLDER_AUTOPLAY&mute=1&rel=0&modestbranding=1" width="PLACEHOLDER_WIDTH" height="PLACEHOLDER_HEIGHT" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="max-width:100%;"></iframe></html>{{#if:{{{caption|}}}|<br><em style="color:#666">{{{caption}}}</em>|}}</div></includeonly>

Latest revision as of 08:27, 25 May 2026

YouTube Embed Template

Embed YouTube video. Auto-strips query parameters from ID.

Usage: {{YouTube|id=VIDEO_ID|width=640|align=center|caption=Description}}

Template:TemplateData

SOJI Electronics