Template:YT UNBOXING VIDEO: Difference between revisions
From Variscite Wiki
(fix: empty YT_VIDEO_ID to call the template multiple times) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
Usage: {{ | Usage: {{YT_UNBOXING_VIDEO|<SOM>|<width>|<height>}} | ||
-->{{#vardefine:SOM|{{{1}}}}}<!-- | -->{{#vardefine:SOM|{{{1}}}}}<!-- | ||
Line 30: | Line 30: | ||
}}<!-- | }}<!-- | ||
and create the video frame, if YT_VIDEO_ID is not empty | and create the video frame, if YT_VIDEO_ID is not empty | ||
-->{{#if:YT_VIDEO_ID|{{#tag:youtube|{{#var:YT_VIDEO_ID}}|width="{{#var:VIDEO_WIDTH}}"|height="{{#var:VIDEO_HEIGHT}}"}}|}} | -->{{#if:{{#var:YT_VIDEO_ID}}|{{#tag:youtube|{{#var:YT_VIDEO_ID}}|width="{{#var:VIDEO_WIDTH}}"|height="{{#var:VIDEO_HEIGHT}}"}}<br>{{#var:SOM}} Unboxing video|}} | ||
</includeonly> | </includeonly> |