Template:YouTube

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Shortcuts
yt
YT

This template should be used to embed YouTube videos.

Usage[edit]

{{yt|videoid|width|align=|nocat=}} Using this template on a page categorizes the page into Category:Pages with videos.

Examples[edit]

Default width (425px): {{yt|MmB9b5njVbA}}

Custom width: {{yt|MmB9b5njVbA|720}}

Inline alignment: {{yt|MmB9b5njVbA|align=inline}}

With an image frame[edit]

Information icon.svg
Minecraft Trailer from 2011

Sometimes it makes sense to put the video in an image frame so that it formats like an image: {{image frame|content={{yt|MmB9b5njVbA}}|caption=Minecraft Trailer|link=Minecraft|align=right|width=425}}

This can unclutter the pages a lot. You also get to add a caption.

See also[edit]

  • {{YouTubeLink}} – to link to a video, rather than embed it
  • {{CollapsedVideo}} – to put an embedded video in a collapsed table that links to YouTube
[view | edit | history | purge]The above documentation is transcluded from Template:YouTube/doc.