Template:YT UNBOXING VIDEO: Difference between revisions

From Variscite Wiki
(fix VAR-SOM-SOLO/DUAL)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


Usage: {{#var:YT_UNBOXING_VIDEO|<SOM>|<width>|<height>}}
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-SOLO/DUAL= <!-- n/a -->
| 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-AM62= <!-- n/a -->
| 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
-->{{#varexists: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>

Latest revision as of 19:42, 25 June 2023