Help:YouTube: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "\[\[Category:([^\]|]+)\|{{PAGENAME}}\]\]" to "Category:$1") |
m (Text replacement - "{{[Ww]ikipolicy}}" to "{{MarioWiki}}") |
||
Line 19: | Line 19: | ||
<pre>{{#widget:YouTube|id=u6oPBIVjf8E|width=256|height=144}}</pre> | <pre>{{#widget:YouTube|id=u6oPBIVjf8E|width=256|height=144}}</pre> | ||
{{ | {{MarioWiki}} | ||
[[Category:Help]] | [[Category:Help]] |
Revision as of 10:53, May 9, 2022
Here on the wiki, we have a YouTube widget installed. You may take any video from YouTube and put it on the wiki to play. However, there are two rules:
|
Embedding videos
To include videos, you must take the ID of the video; which can be found in the URL after the v= text, and put it in inside the {{#widget:YouTube|id=}} tag after the equals sign. So for this Super Mario Odyssey trailer, the video ID is u6oPBIVjf8E. Here's what the embed looks like, with the code used:
{{#widget:YouTube|id=u6oPBIVjf8E}}
Video size
The width and height parameters can be defined to specify custom dimensions. For example:
{{#widget:YouTube|id=u6oPBIVjf8E|width=256|height=144}}