Help:Adding YouTube videos: Difference between revisions

Created page with "You can '''add YouTube videos''' on any page by using simple code. The video is not uploaded to the wiki, but ''embedded''. This means it is stored on YouTube, then called fr..."
 
No edit summary
 
Line 2: Line 2:


==Adding a YouTube video==
==Adding a YouTube video==
To add a YouTube video, you need the id code for the video.  The easiest way to find this is to look at the URL of the You Tube page for the video.  The string of letters and numbers after "v=" in the URL is the id code.  So for the URL: '''<nowiki>http://www.youtube.com/watch?v=CCz1kmfqL7g</nowiki>''' the id code could be '''CCz1kmfqL7g'''.  If you aren't sure what you use, you can add the whole URL in place of the id code.
To add a YouTube video, you need the id code for the video.  The easiest way to find this is to look at the URL of the You Tube page for the video.  The string of letters and numbers after "v=" in the URL is the id code.  So for the URL: '''<nowiki>https://www.youtube.com/watch?v=dI7uafSOe8I</nowiki>''' the id code could be '''dI7uafSOe8I'''.  If you aren't sure what you use, you can add the whole URL in place of the id code.


YouTube videos are embedded with the code:  
YouTube videos are embedded with the code:  
Line 14: Line 14:
"id code" is the code from the URL.  So an example might be:
"id code" is the code from the URL.  So an example might be:


  <nowiki><youtube>CCz1kmfqL7g</youtube></nowiki>  
  <nowiki><youtube>dI7uafSOe8I</youtube></nowiki>  


===Changing the size of the video===
===Changing the size of the video===
Line 24: Line 24:
A full example would be:
A full example would be:


  <nowiki><youtube width="200" height="200">CCz1kmfqL7g</youtube></nowiki>
  <nowiki><youtube width="200" height="200">dI7uafSOe8I</youtube></nowiki>


This gives you:
This gives you:
   
   
<youtube width="200" height="200">CCz1kmfqL7g</youtube>
<youtube width="200" height="200">dI7uafSOe8I</youtube>


==Adding a caption==
==Adding a caption==