Widget:MIT World Video: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
This widget allows you to embed '''[http://mitworld.mit.edu/ MIT World video]''' on your wiki page. | This widget allows you to embed '''[http://mitworld.mit.edu/ MIT World video]''' on your wiki page. | ||
To insert this widget, use the following code: | To insert this widget, use the following code: | ||
*<nowiki>{{#widget:MIT World Video|host=?}}</nowiki> | *<nowiki>{{#widget:MIT World Video|host=?}}</nowiki> | ||
Replace ? with the part of the embed code URL after "host=" | Replace ? with the part of the embed code URL after "host=" | ||
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. | ||
Line 12: | Line 12: | ||
|host=cp58255.edgefcs.net&flv=mitw-01453-mit150-computation-pt-11-brooks-march-12apr2011&preview=http://mitworld.mit.edu//uploads/mitwstill01453mit150computationpt11brooksmarch12apr2011.jpg"}} | |host=cp58255.edgefcs.net&flv=mitw-01453-mit150-computation-pt-11-brooks-march-12apr2011&preview=http://mitworld.mit.edu//uploads/mitwstill01453mit150computationpt11brooksmarch12apr2011.jpg"}} | ||
</noinclude> <includeonly> | </noinclude> <includeonly> | ||
<object width="<!--{$width|default:481|escape:'html'}-->" height="<!--{$height|default: | <object width="<!--{$width|default:481|escape:'html'}-->" height="<!--{$height|default:361|escape:'html'}-->"> | ||
<param name="movie" value="http://mitworld.mit.edu/flash/player/Main.swf?host=<!--{$host|escape:'urlpathinfo'}-->"/> | <param name="movie" value="http://mitworld.mit.edu/flash/player/Main.swf?host=<!--{$host|escape:'urlpathinfo'}-->"/> | ||
<embed src="http://mitworld.mit.edu/flash/player/Main.swf?host=<!--{$host|escape:'urlpathinfo'}-->" quality="high" bgcolor="#000000" width="481" height="361" name="Main" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"/> | <embed src="http://mitworld.mit.edu/flash/player/Main.swf?host=<!--{$host|escape:'urlpathinfo'}-->" quality="high" bgcolor="#000000" width="481" height="361" name="Main" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"/> | ||
</object> | </object> | ||
</includeonly> | </includeonly> |
Revision as of 02: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:MIT World Video|host=?}}
Replace ? with the part of the embed code URL after "host="
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