Help:YouTube: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Here on this wiki, we have the Youtube extension installed. You may take any video from Youtube and put it on the wiki to play. However, there is one rule:
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:
{| align="center" style="width: 80%; background-color: #f1f1de; border: 2px solid #996; padding: 5px; color:black"
 
{| style="width:80%;color:#000;background:#f1f1de;border:2px solid #996;padding:5px;margin:5px auto"
|
|
'''YOUTUBE VIDEOS SHOULD ONLY BE EMBEDDED IN [[Special:MyPage|YOUR USER PAGE]], NOT ON ANY ARTICLE, TEMPLATE, OR ANY OTHER MAINSPACE.''' Certain YouTube videos can be used as reference links in the reference section of articles, but do not embed the video in the article itself.
*'''YOUTUBE VIDEOS SHOULD ONLY BE EMBEDDED ON [[Special:MyPage|YOUR USER PAGE]], NOT ON ANY ARTICLE, TEMPLATE, OR ANY OTHER MAINSPACE.''' Certain YouTube videos can be used as reference links in the reference section of articles, but do not embed the video in the article itself.
*You may only embed up to SIX videos on your user page: any more than this is excessive and may start causing problems for other users' computers.
|}
|}


To include videos, you must take the ID of the video and put it in between <nowiki><youtube></nowiki> tags. So for [http://www.youtube.com/watch?v=qA0vLrwuQHE this E3 2007 demo of ''Super Mario Galaxy''], the ID is <tt>G2Rpurw8WG0&annotation_id=annotation_600949&feature=iv</tt>. Thus the code is
== 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 <code><nowiki>{{#widget:YouTube|id=}}</nowiki></code> tag after the equals sign. So for this [https://www.youtube.com/watch?v=u6oPBIVjf8E ''Super Mario Odyssey'' trailer], the video ID is <code>u6oPBIVjf8E</code>. Here's what the embed looks like, with the code used:


<pre><youtube>G2Rpurw8WG0</youtube></pre>
{{#widget:YouTube|id=u6oPBIVjf8E}}
<pre>{{#widget:YouTube|id=u6oPBIVjf8E}}</pre>


and produces
=== Video size ===
The <code>width</code> and <code>height</code> parameters can be defined to specify custom dimensions. For example:


<center><youtube>qA0vLrwuQHE</youtube></center>
{{#widget:YouTube|id=u6oPBIVjf8E|width=256|height=144}}
This case uses <tt><nowiki><center></nowiki></tt> ''before'' <nowiki><youtube></nowiki>.
<pre>{{#widget:YouTube|id=u6oPBIVjf8E|width=256|height=144}}</pre>


[[Category:Help|{{PAGENAME}}]]
{{MarioWiki}}
[[Category:Help]]

Latest revision as of 16:23, January 25, 2024

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:

  • YOUTUBE VIDEOS SHOULD ONLY BE EMBEDDED ON YOUR USER PAGE, NOT ON ANY ARTICLE, TEMPLATE, OR ANY OTHER MAINSPACE. Certain YouTube videos can be used as reference links in the reference section of articles, but do not embed the video in the article itself.
  • You may only embed up to SIX videos on your user page: any more than this is excessive and may start causing problems for other users' computers.

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}}