Widget:Google Document

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
m (Sample result)
Current revision (16:43, 16 June 2009) (view source)
m (Sample result)
 
Line 28: Line 28:
|width=500
|width=500
|height=300
|height=300
-
}}  
+
}}
</noinclude><includeonly><table><tr><td style="background: url(/skins/monobook/googledocs_bg.png) center right no-repeat;"><span style="font-weight:bold; float:left"><!--{$key|escape:'urlpathinfo'}--></span><span style="font-weight:bold; float:right"><a href="http://docs.google.com/View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1">View/Edit Document</a></span></td></tr><tr><td><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1"  src="http://docs.google.com/View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1"></iframe></td></tr></table></includeonly>
</noinclude><includeonly><table><tr><td style="background: url(/skins/monobook/googledocs_bg.png) center right no-repeat;"><span style="font-weight:bold; float:left"><!--{$key|escape:'urlpathinfo'}--></span><span style="font-weight:bold; float:right"><a href="http://docs.google.com/View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1">View/Edit Document</a></span></td></tr><tr><td><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1"  src="http://docs.google.com/View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1"></iframe></td></tr></table></includeonly>

Current revision

This widget allows you to add Google Documents 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 Document
|key=dcn37mcz_34cvfjpmhf
|width=500
|height=300
}}

Parameters

  • docid - docID parameter in document URL
  • width and height define document dimensions, 500x300 is default

Template:Copy to your site

Related widgets

Sample result

dcn37mcz_34cvfjpmhfView/Edit Document
Personal tools