Template:YT UNBOXING VIDEO: Difference between revisions
From Variscite Wiki
No edit summary |
(fix: empty YT_VIDEO_ID to call the template multiple times) |
||
Line 7: | Line 7: | ||
-->{{#vardefine:VIDEO_WIDTH|{{{2|260}}} }}<!-- | -->{{#vardefine:VIDEO_WIDTH|{{{2|260}}} }}<!-- | ||
-->{{#vardefine:VIDEO_HEIGHT|{{{3|158}}} }}<!-- | -->{{#vardefine:VIDEO_HEIGHT|{{{3|158}}} }}<!-- | ||
default YT_VIDEO_ID to empty | |||
-->{{#vardefine:YT_VIDEO_ID|}}<!-- | |||
Determine Youtube ID | Determine Youtube ID | ||
-->{{#switch:{{#var:SOM}} | -->{{#switch:{{#var:SOM}} | ||
Line 17: | Line 19: | ||
| VAR-SOM-MX8M-PLUS={{#vardefine:YT_VIDEO_ID|ui0FLcTYAjc}} | | VAR-SOM-MX8M-PLUS={{#vardefine:YT_VIDEO_ID|ui0FLcTYAjc}} | ||
| VAR-SOM-MX6={{#vardefine:YT_VIDEO_ID|aCf3Py9oNXo}} | | VAR-SOM-MX6={{#vardefine:YT_VIDEO_ID|aCf3Py9oNXo}} | ||
| VAR-SOM-MX7={{#vardefine:YT_VIDEO_ID| HaC4dPeUktk}} | | VAR-SOM-MX7={{#vardefine:YT_VIDEO_ID|HaC4dPeUktk}} | ||
| VAR-SOM-MX8={{#vardefine:YT_VIDEO_ID|QO8EgrEJxLU}} | | VAR-SOM-MX8={{#vardefine:YT_VIDEO_ID|QO8EgrEJxLU}} | ||
| SPEAR-MX8={{#vardefine:YT_VIDEO_ID|xuoQWuTKiiE}} | | SPEAR-MX8={{#vardefine:YT_VIDEO_ID|xuoQWuTKiiE}} | ||
Line 27: | Line 29: | ||
| #default= | | #default= | ||
}}<!-- | }}<!-- | ||
and create the video frame | 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}}"}}|}} | ||
</includeonly> | </includeonly> |