Difference between revisions of ":Google Presentation"

From Scorpion 411
Jump to: navigation, search
(Created page with "<noinclude>__NOTOC__ This widget allows you to add '''[http://documents.google.com/support/presentations/ Google Presentations]''' to your wiki page. It was originally create...")
 
(No difference)

Latest revision as of 22:43, 11 January 2013

This widget allows you to add Google Presentations to your wiki page.

It was originally created by Sergey Chernyshev for Semantic Communities LLC.

To insert this widget, use the following code:

{{#widget:Google Presentation|docid=dcn37mcz_22cmnwnwf8}}

Parameters

  • docid - docid parameter in document URL
  • size - (optional) allows you to change the size of presentation from small (410x342) to medium (555x451) or large (700x599)

Dave's Code Modifications

ORIGINAL CODE
<includeonly><!--{if $size eq 'medium'}--><iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&size=m' frameborder='0' width='555' height='451'></iframe>
 <!--{elseif $size eq 'large'}--><iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&size=l' frameborder='0' width='700' height='559'></iframe><!--{else}-->
 <iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->' frameborder='0' width='410' height='342'></iframe><!--{/if}--></includeonly>
WORKING CODE
<includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1" src="https://docs.google.com/
 <!--{if isset($id)}-->presentation/embed?id=<!--{$id|escape:'urlpathinfo'}-->&embedded=1
 <!--{elseif isset($docid)}-->EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&hgd=1<!--{/if}-->"></iframe></includeonly>

Template:Copy to your site

Related widgets

Sample result

{{#widget:Google Presentation|docid=dcn37mcz_22cmnwnwf8}}

{{#widget:Google Presentation |id=1NYkdMjXC-GzwGzuH0oViM5ll1Nj59Z6u-vIxwgDrtnU |width=480 |height=389 |border=0 }}

Using Google Presentation Widget (After code modifications made by Dave.)