Widget:MIT World Video: Difference between revisions

No edit summary
No edit summary
Line 4: Line 4:
To insert this widget, use the following code:
To insert this widget, use the following code:


<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
  <nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki>
|flashvars=id=7378948&amp;vid=2359450&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http://us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/2719/62261130.jpeg
|width=500
|height=500
}}</nowiki>


== Parameters ==
* '''id''' - video id (from the URL)
* '''height''' and '''width''' define view dimensions, 420x350 is default
== Copy to your site ==
== Copy to your site ==
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.


== Sample result ==
== Sample result ==
{{#widget:{{PAGENAME}}|flashvars=id=7378948&vid=2359450&lang=en-us&intl=us&thumbUrl=http://us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/2719/62261130.jpeg}}
{{#widget:{{PAGENAME}}
|id=mitw-01317-hyper-studio-graphic-exp-fendt-20may2010&preview=http://mitworld.mit.edu//uploads/mitwstill01317hyperstudiographicexpfendt20may2010.jpg"
}}
</noinclude> <includeonly>
</noinclude> <includeonly>
<object width="<!--{$width|default:481|escape:'html'}-->" height="<!--{$height|default:271|escape:'html'}-->">
<object width="<!--{$width|default:481|escape:'html'}-->" height="<!--{$height|default:271|escape:'html'}-->">
     <param name="allowScriptAccess" value="always"/>
     <param name="allowScriptAccess" value="always"/>
     <param name="allowFullScreen" value="true"/>
     <param name="allowFullScreen" value="true"/>
    <param name="movie" value="http://mitworld.mit.edu/flash/player/Main.swf?host=cp58255.edgefcs.net&flv=mitw-01317-hyper-studio-graphic-exp-fendt-20may2010&preview=http://mitworld.mit.edu//uploads/mitwstill01317hyperstudiographicexpfendt20may2010.jpg"/>
     <param name="quality" value="high"/>
     <param name="quality" value="high"/>
     <embed src="http://mitworld.mit.edu/flash/player/Main.swf?host=cp58255.edgefcs.net&flv=mitw-01317-hyper-studio-graphic-exp-fendt-20may2010&preview=http://mitworld.mit.edu//uploads/mitwstill01317hyperstudiographicexpfendt20may2010.jpg" quality="high" bgcolor="#000000" width="481" height="271" name="Main" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
     <param name="movie" value="http://mitworld.mit.edu/flash/player/Main.swf?host=cp58255.edgefcs.net&flv=<!--{$id|escape:'urlpathinfo'}-->"/>
    <embed src="http://mitworld.mit.edu/flash/player/Main.swf?host=cp58255.edgefcs.net&flv=<!--{$id|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" wmode="transparent" width="<!--{$width|escape:'html'|default:'481'}-->" height="<!--{$height|escape:'html'|default:271}-->"/>
</object>
</object>
</includeonly>
</includeonly>

Revision as of 01:27, 2 September 2011

This widget allows you to embed MIT World video on your wiki page.

To insert this widget, use the following code:

 {{#widget:YouTube|id=DWef69ItVrU}}

Parameters

  • id - video id (from the URL)
  • height and width define view dimensions, 420x350 is default

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:MIT World Video article.

Sample result