Template:Youtube

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
template icon Template documentation[view] [edit] [history] [purge]

Extension[edit source]

This template uses mw:Extension:EmbedVideo

parser tags[edit source]

only #ev: works, do not use #evt:.

Example[edit source]

Remember to add {{clear}} after!

  • {{Youtube|id=https://youtube.com/watch?v=xUwU-e79hPk|description=The Lightning Process by [[David Tuller]], Oct 2019.|alignment=left}}{{clear}}
The Lightning Process by David Tuller, Oct 2019.

See also[edit source]

Embed YouTube video, defaults to width 400px, framed, right aligned, blank description, autoplay off

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
YouTube linkid url video 1

no description

Example
https://www.youtube.com/watch?v=tbP9VhaREO0
URLrequired
descriptiondescription 2 description

Description and name of video creator

Unknownsuggested
alignalignment align 3

no description

Default
right
Example
left
Unknownsuggested
widthdimensions w 4 width

width in px, eg 600

Default
400
Example
500
Auto value
400
Unknownsuggested
urlargsurlargs start arguments autoplay parameters other 5 urlarg

Arguments to turn off autoplay, and set an optional start time. YouTube example sets start time to 22s, and shows only related videos from the same channel.

Default
start=0&rel=0&autoplay=0
Example
start=22&rel=0&autoplay=0
Auto value
start=0&rel=0&autoplay=0
Unknownsuggested