Difference between revisions of "Template:YouTube"

From RECESSIM, A Reverse Engineering Community
Jump to navigation Jump to search
Line 38: Line 38:
 
}
 
}
 
</templatedata>
 
</templatedata>
{{#widget:YouTube|{{#if:{{{playlist|}}}||id={{{id}}}}}{{#if:{{{id|}}}||playlist={{{playlist}}}}}|width={{{width|560}}}|height={{{height|315}}}}}
 
 
</noinclude>
 
</noinclude>
<includeonly><youtube width={{{$width}}} height={{{$height}}}>{{{$id}}}</youtube></includeonly>
+
<includeonly><youtube width={{{width|320}}} height={{{height|240}}}>{{{$id}}}</youtube></includeonly>

Revision as of 02:04, 8 June 2020

Fill in the info below to add a YouTube video to the Wiki.

Template parameters

ParameterDescriptionTypeStatus
YouTube idid

add the YouTube id here

Example
DWef69ItVrU
Unknownsuggested
Playlist id playlist

If you are embedding YouTube playlist instead of a video, add the id here.

Stringoptional
Widthwidth

add the width of the YouTube video here

Numbersuggested
Heightheight

add the height of the YouTube video here

Example
400
Numbersuggested