Help:YouTube: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Help:YouTube": Important help page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
No edit summary
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 extension installed. You may take any video from YouTube and put it on the wiki to play. However, there is one rule:
 
{| align="center" style="width: 80%; background-color: #f1f1de; border: 2px solid #996; padding: 5px; color:black"
{| align="center" style="width: 80%; background-color: #f1f1de; border: 2px solid #996; padding: 5px; color:black"
|
|
Line 5: Line 6:
|}
|}


To include videos, you must take the ID of the video; which can be found in the URL, 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 between <nowiki><youtube></nowiki> tags. So for [http://www.youtube.com/watch?v=qA0vLrwuQHE this E3 2007 demo of ''Super Mario Galaxy''], the video ID is <tt>G2Rpurw8WG0</tt>. Here's what the embed looks like, with the code used:
<youtube>qA0vLrwuQHE</youtube>
<pre><youtube>G2Rpurw8WG0</youtube></pre>
<pre><youtube>G2Rpurw8WG0</youtube></pre>


and produces
=== Video Size ===
The '''size''' attribute can be set to either small, medium, normal, or big to easily adjust the size of the video. Alternatively, the '''width''' and '''height''' attributes can be defined to specify custom dimensions. Some examples:
 
<youtube size="small">qA0vLrwuQHE</youtube>
<pre><youtube size="small">qA0vLrwuQHE</youtube></pre>


<center><youtube>qA0vLrwuQHE</youtube></center>
<youtube width="300" height="200">qA0vLrwuQHE</youtube>
This case uses <tt><nowiki><center></nowiki></tt> ''before'' <nowiki><youtube></nowiki>.
<pre><youtube width="300" height="200">qA0vLrwuQHE</youtube></pre>


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

Revision as of 20:49, May 9, 2012

Here on the wiki, we have a YouTube extension installed. You may take any video from YouTube and put it on the wiki to play. However, there is one rule:

YOUTUBE VIDEOS SHOULD ONLY BE EMBEDDED IN 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.

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 between <youtube> tags. So for this E3 2007 demo of Super Mario Galaxy, the video ID is G2Rpurw8WG0. Here's what the embed looks like, with the code used:

<youtube>qA0vLrwuQHE</youtube>

<youtube>G2Rpurw8WG0</youtube>

Video Size

The size attribute can be set to either small, medium, normal, or big to easily adjust the size of the video. Alternatively, the width and height attributes can be defined to specify custom dimensions. Some examples:

<youtube size="small">qA0vLrwuQHE</youtube>

<youtube size="small">qA0vLrwuQHE</youtube>

<youtube width="300" height="200">qA0vLrwuQHE</youtube>

<youtube width="300" height="200">qA0vLrwuQHE</youtube>