Difference between revisions of "Widget:Google Document"

From Bogleheads
Jump to navigation Jump to search
m (Text replace - "{{Template:" to "{{")
(Update for Google Drive Docs.)
Line 30: Line 30:
 
|height=300
 
|height=300
 
}}
 
}}
</noinclude><includeonly><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></includeonly>
+
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1"  src="https://docs.google.com/file/d/<!--{$key|escape:'urlpathinfo'}-->/edit"></iframe></includeonly>
 
<noinclude>[[Category:Widgets]]</noinclude>
 
<noinclude>[[Category:Widgets]]</noinclude>

Revision as of 21:19, 10 June 2013

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

To copy this widget to your wiki, copy and paste the entire source of this article into a page on your wiki, called Widget:Google Document

If you don't have extension set up on your wiki, go to extension page on MediaWiki.org and follow installation instructions.

Related widgets

Sample result