Template:Youtube/box

From xat wiki
Jump to: navigation, search


A modified version on Template:Youtube, where video is embedded in a thumbnail box (similar to images).

Attributes:

With extra to what Template:Youtube provides:

  • float - float right or left, defaults to right (optional)
  • description - description at the bottom of the box
width defaults to 400 and height defaults to 225 pixels, while these numbers can be altered, it is recommended to keep them as is, to prevent taking up too much article space. Should anyone find it difficult to see, it remains possible to simply view the video on youtube, by clicking on the icon at the bottom right corner of the box or button "youtube" on video panel.

Example:

code output
{{youtube/box|KZY9oYSSjFI|description=An 80s hit}}
An 80s hit