Jump to content

Template:Youtube thumbnail: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><span class="yt-thumb" style="display:inline-block;vertical-align:top;margin:0 {{#if:{{{gapx|}}}|{{{gapx}}}|25px}} {{#if:{{{gapy|}}}|{{{gapy}}}|25px}} 25px;width:{{{width|408}}}px;"><youtube width="{{{width|408}}}" height="{{{height|230}}}">{{{1}}}</youtube><span class="yt-caption" style="display:block;font-size:0.85em;line-height:1.35;margin-top:0.2em;">{{{caption|{{{2|}}}}}}</span></span></includeonly><noinclude>
<includeonly><span class="yt-thumb" style="display:inline-block;vertical-align:top;margin:0 {{#if:{{{gapx|}}}|{{{gapx}}}|25px}} {{#if:{{{gapy|}}}|{{{gapy}}}|25px}} 25px;width:{{{width|408}}}px;">
<youtube width="{{{width|408}}}" height="{{{height|230}}}" autoresize="false">{{{1}}}</youtube>
Usage:
<span class="yt-caption" style="display:block;font-size:0.85em;line-height:1.35;margin-top:0.2em;">{{{caption|{{{2|}}}}}}</span>
* {{YouTube thumbnail | VIDEO_ID | Caption here}}
</span></includeonly>
* Named params: width=, height=, gapx=, gapy=, caption=
</noinclude>

Revision as of 23:22, 16 October 2025