Difference between revisions of "Help:Embedding a video"

From Ballotpedia
Jump to: navigation, search
(updated categories)
 
Line 1: Line 1:
{{help}}
+
{{help}}{{tnr}}
 +
 
 
You can embed YouTube videos on pages in Ballotpedia.  In order to do it:
 
You can embed YouTube videos on pages in Ballotpedia.  In order to do it:
  
 
* Figure out the identifying number of the YouTube video you want to embed.  Once you are on You Tube, looking at the particular video you have chosen, the URL in your browser will look like this:
 
* Figure out the identifying number of the YouTube video you want to embed.  Once you are on You Tube, looking at the particular video you have chosen, the URL in your browser will look like this:
 
 
* <nowiki>http://www.youtube.com/watch?v=Jhus42Q07hw</nowiki>. What comes '''after''' the '''v=''' is what you are looking for.
 
* <nowiki>http://www.youtube.com/watch?v=Jhus42Q07hw</nowiki>. What comes '''after''' the '''v=''' is what you are looking for.
 
 
* Type:  <nowiki>{{#ev:youtube|Jhus42Q07hw}}</nowiki>
 
* Type:  <nowiki>{{#ev:youtube|Jhus42Q07hw}}</nowiki>
  
Line 13: Line 12:
  
 
==Change the size of the video==
 
==Change the size of the video==
 
 
To make a smaller version of the video appear on the page, insert some code to reduce its size.
 
To make a smaller version of the video appear on the page, insert some code to reduce its size.
  
Line 19: Line 17:
  
 
* Instead of typing with no size instructions like this:  <nowiki>{{#ev:youtube|Jhus42Q07hw}}</nowiki>
 
* Instead of typing with no size instructions like this:  <nowiki>{{#ev:youtube|Jhus42Q07hw}}</nowiki>
 
 
* Include size instructions, like this: <nowiki>{{#ev:youtube|Jhus42Q07hw|200}}</nowiki>  (The "200" in that line of code is the size instructions).
 
* Include size instructions, like this: <nowiki>{{#ev:youtube|Jhus42Q07hw|200}}</nowiki>  (The "200" in that line of code is the size instructions).
 
 
* The videos below are sized, respectively, at 100, 200 and 300.
 
* The videos below are sized, respectively, at 100, 200 and 300.
  
 
<br>
 
<br>
 
 
{{#ev:youtube|Jhus42Q07hw|100}}
 
{{#ev:youtube|Jhus42Q07hw|100}}
 
 
<br>
 
<br>
 
 
{{#ev:youtube|Jhus42Q07hw|200}}
 
{{#ev:youtube|Jhus42Q07hw|200}}
 
 
<br>
 
<br>
 
 
{{#ev:youtube|Jhus42Q07hw|300}}
 
{{#ev:youtube|Jhus42Q07hw|300}}
  
 
==Change video's location on page==
 
==Change video's location on page==
 
 
<div style="float:right;">{{#ev:youtube|Jhus42Q07hw2100}}</div>
 
<div style="float:right;">{{#ev:youtube|Jhus42Q07hw2100}}</div>
  
Line 45: Line 35:
  
 
==Insert a row of videos==
 
==Insert a row of videos==
 
 
You can make a row of videos appear, like this:
 
You can make a row of videos appear, like this:
  
Line 59: Line 48:
  
  
[[Category:Editing Help]]
+
[[Category:Intro editing help]]
 +
[[Category:Advanced editing help]]

Latest revision as of 21:36, 11 July 2013

Editing Help
1328101905 Help.png
Index
Editing guide
Cheatsheet
Policies
Copyright
Textual standards
Visual standards
Glossary of terms
Edit review process

You can embed YouTube videos on pages in Ballotpedia. In order to do it:

  • Figure out the identifying number of the YouTube video you want to embed. Once you are on You Tube, looking at the particular video you have chosen, the URL in your browser will look like this:
  • http://www.youtube.com/watch?v=Jhus42Q07hw. What comes after the v= is what you are looking for.
  • Type: {{#ev:youtube|Jhus42Q07hw}}

Once you hit "save", what you'll get on the page is:

Change the size of the video

To make a smaller version of the video appear on the page, insert some code to reduce its size.

Here's how:

  • Instead of typing with no size instructions like this: {{#ev:youtube|Jhus42Q07hw}}
  • Include size instructions, like this: {{#ev:youtube|Jhus42Q07hw|200}} (The "200" in that line of code is the size instructions).
  • The videos below are sized, respectively, at 100, 200 and 300.




Change video's location on page

If you type this: <div style="float:right;">{{#ev:youtube|Jhus42Q07hw|200}}</div>

Your video will appear on the far right of the page.

Insert a row of videos

You can make a row of videos appear, like this: