Template:YT UNBOXING VIDEO: Difference between revisions
From Variscite Wiki
(DART-MX8M-MINI: fix YT ID) |
No edit summary |
||
(5 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 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}} | ||
| VAR-SOM-MX8M-NANO={{#vardefine:YT_VIDEO_ID|XeD_w_KMMhc}} | | VAR-SOM-MX8M-NANO={{#vardefine:YT_VIDEO_ID|XeD_w_KMMhc}} | ||
| VAR-SOM-MX8X={{#vardefine:YT_VIDEO_ID|RYwQWz6MTpc}} | | VAR-SOM-MX8X={{#vardefine:YT_VIDEO_ID|RYwQWz6MTpc}} | ||
| VAR-SOM- | | VAR-SOM-SOLO/DUAL= <!-- n/a --> | ||
| VAR-SOM-AM62= | |||
| VAR-SOM-MX93= | | VAR-SOM-MX93= | ||
| #default= | | #default= | ||
}}<!-- | }}<!-- | ||
and create the video frame | and create the video frame, if YT_VIDEO_ID is not empty | ||
-->{{# | -->{{#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> |