Template:Youtube: Difference between revisions

From MiiWiki
Jump to navigationJump to search
m (Float doesn't support "center" value.)
m (Added documentation.)
Line 9: Line 9:
  }}
  }}
|</div>
|</div>
|}</includeonly><noinclude>
|}</includeonly><noinclude>{{doc}}[[Category:Formatting templates|Y]]</noinclude>
[[Category:Formatting templates|Y]]
</noinclude>

Revision as of 11:26, 24 March 2022

The original template is from WiKirby.

Purpose

This template is for conveniently displaying Youtube videos on an article.

Usage

To use this template type:
{{Youtube|Video Code|Video Size|Alignment|Caption}}

Where:

  • Video Code is the unique sequence of letters, numbers, and characters that point to the video.
  • Video Size is the desired size of the video. Defaults to 250 pixels.
  • Alignment is where to have the video floating (i.e. right, left or none). Defaults to left if blank.
  • Caption is an optional caption to describe the video.
    • If location is neither left, right, nor none, then the it is assumed to be a caption and the video's location is set to "left".