Template:YouTube

Use
 

For displaying YouTube videos, such as tutorials, on pages in a small size aligned to the right with an optional caption.

Replace "youtube code" with the string of letters and numbers at the end of a YouTube URL.