(where to find doc parameter)
(Updated widget to latest version for HTTPS compatibility)
Line 1: Line 1:
<noinclude>
<noinclude>__NOTOC__
This widget allows you to add [http://www.slideshare.net/ SlideShare] slideshows to your wiki page. It replaces original [[mw:Extension:SlideShare|SlideShare]] extension.
This widget allows you to add [http://www.slideshare.net/ SlideShare] slideshows to your wiki page. It replaces original [[mediawikiwiki:Extension:SlideShare|SlideShare]] extension.


It was originally created by [[mw:User:Sergey Chernyshev|Sergey Chernyshev]] for [http://www.techpresentations.org TechPresentations.org].
It was originally created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] for [http://www.techpresentations.org TechPresentations.org].


== Using this widget ==
== Using this widget ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/SlideShare widget description page on MediaWikiWidgets.org].
For information on how to use this widget, see [https://www.mediawikiwidgets.org/SlideShare widget description page on MediaWikiWidgets.org].


To insert this widget, use the following code:
== Copy to your site ==
 
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
</noinclude><includeonly><iframe src="//www.slideshare.net/slideshow/embed_code/<!--{$id|escape:'urlpathinfo'}-->?<!--{if isset($norelated)}-->&rel=0<!--{/if}--><!--{if isset($start)}-->&startSlide=<!--{$start|escape:'urlpathinfo'|validate:int}--><!--{/if}-->" width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->" marginwidth="0" marginheight="0" scrolling="no" style="border: 1px solid #ccc; border-width: 1px 1px 0; margin-bottom: 5px; max-width: 100%;" allowfullscreen></iframe></includeonly>
|doc=''CodeFromSlideshare''
|width=425
|height=348
}}</nowiki>
 
'''Width and height''' are optional, 425x348 is a default.  
 
'''doc''' is a parameter from the embed code on SlideShare: Click "embed -> customize" and copy "doc" parameter from WordPress short code.
 
There is also '''player''' parameter that defaults to '2' and allows you to switch to other players.
 
== Sample result ==
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|doc=semantic-media-wiki-semantic-forms-1205504882436734-4
|width=425
|height=348
}}</nowiki>
 
gives:
 
{{#widget:{{PAGENAME}}|doc=studentsandappropedia-100308231424-phpapp02}}
</noinclude><includeonly><object width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer<!--{$player|default:2|escape:'html'}-->.swf?doc=<!--{$doc|escape:'urlpathinfo'}--><!--{if isset($norelated)}-->&rel=0<!--{/if}--><!--{if isset($start)}-->&startSlide=<!--{$start|escape:'urlpathinfo'|validate:int}--><!--{/if}-->" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed  src="http://static.slidesharecdn.com/swf/ssplayer<!--{$player|default:2|escape:'html'}-->.swf?doc=<!--{$doc|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"></embed></object></includeonly>

Revision as of 18:14, 22 March 2019

This widget allows you to add SlideShare slideshows to your wiki page. It replaces original SlideShare extension.

It was originally created by Sergey Chernyshev for TechPresentations.org.

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.