Adding video: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
You can add video to any Physiopedia page as long as it has been uploaded to [http://www.youtube.com YouTube] first.<br>  
You can add video to any Physiopedia page as long as it has been uploaded to [http://www.youtube.com YouTube] first.<br>  


To add video to a page the video will nee to be added directly to the wikitext so '''click on the Wikitext link''' in the toolbar of the editing box.&nbsp; Then add the following to the page where you want the video to appear:  
Unfortunately it is not as simple as just adding the link that YouTube provide to the page that you are editing. To add video to a page it will need to be added directly to the wikitext.  So first '''click on the Wikitext link''' in the toolbar of the editing box.&nbsp; Then add the following to the page where you want the video to appear:  


*<tt><nowiki>{{#ev:youtube|id}}</nowiki></tt> -or-  
*<tt><nowiki>{{#ev:youtube|id}}</nowiki></tt> -or-  
Line 8: Line 8:
Where:  
Where:  


*<tt>id</tt> is the id of the video to include (id can be found on the video page in YouTube)  
*<tt>id</tt> is the id of the video to include (id can be found in the URL on the video's page in YouTube)  
*<tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically)
*<tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically)


Line 57: Line 57:


So for example, to include a reference with the famous "evolution of dance" YouTube video, you'd enter:  
So for example, to include a reference with the famous "evolution of dance" YouTube video, you'd enter:  
<pre>{{#ev:youtube|dMH0bHeiRNg|300}}<ref>Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]</ref></pre>  
<pre>{{#ev:youtube|dMH0bHeiRNg|300}}&lt;ref&gt;Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]&lt;/ref&gt;</pre>  
Which would give:  
Which would give:  


{{#ev:youtube|dMH0bHeiRNg|300}} <ref>Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]</ref>
{{#ev:youtube|dMH0bHeiRNg|300}} <ref>Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]</ref>  


== References ==
== References ==


<references />
<references />

Revision as of 12:40, 8 June 2009

You can add video to any Physiopedia page as long as it has been uploaded to YouTube first.

Unfortunately it is not as simple as just adding the link that YouTube provide to the page that you are editing. To add video to a page it will need to be added directly to the wikitext. So first click on the Wikitext link in the toolbar of the editing box.  Then add the following to the page where you want the video to appear:

  • {{#ev:youtube|id}} -or-
  • {{#ev:youtube|id|width}}

Where:

  • id is the id of the video to include (id can be found in the URL on the video's page in YouTube)
  • width (optional) is the width in pixels of the viewing area (height will be determined automatically)


For example, to include the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|dMH0bHeiRNg}}

Which would give:


And if you wanted scaled down to a smaller size, you could use:

{{#ev:youtube|dMH0bHeiRNg|300}}

Which would give:


If you wish to add two videos side by side you will need to put them in a table like this:

{| width="100%" cellspacing="1" cellpadding="1" 
|-
|{{#ev:youtube|dMH0bHeiRNg|300}} 
|{{#ev:youtube|dMH0bHeiRNg|300}}
|}

Which would look like this:


To reference the video, you would add:

  • {{#ev:youtube|id|width}}<ref>reference</ref>

Where:

  • reference is the reference for the video (which will automatically appear at the bottom of the saved page)


So for example, to include a reference with the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|dMH0bHeiRNg|300}}<ref>Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]</ref>

Which would give:

[1]

References[edit | edit source]

  1. Judson Laipply. The Evolution of Dance. Available from: http://www.youtube.com/watch?v=dMH0bHeiRNg [last accessed 6/6/9]