Help:YouTube: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
(updating to include the "no more than 6 videos on your page" rule; admin-approved)
Line 1: Line 1:
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:
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 are two rules:


{| 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"
|
|
'''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 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. Additionally, you can 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 ==
==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:
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:


Line 13: Line 12:
<pre><youtube>G2Rpurw8WG0</youtube></pre>
<pre><youtube>G2Rpurw8WG0</youtube></pre>


=== Video Size ===
===Video Size===
The '''width''' and '''height''' attributes can be defined to specify custom dimensions. For example:
The '''width''' and '''height''' attributes can be defined to specify custom dimensions. For example:



Revision as of 12:46, March 17, 2013

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 are two rules:

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. Additionally, you can 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 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 width and height attributes can be defined to specify custom dimensions. For example:

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

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