https://howdoi.riverdale.edu/wiki/Widget:Google_Document/history?feed=atom&Widget:Google Document - Revision history2024-03-29T00:02:20ZRevision history for this page on the wikiMediaWiki 1.39.1https://howdoi.riverdale.edu/w/index.php?title=Widget:Google_Document&diff=784&oldid=prevSdc: Created page with "<noinclude>__NOTOC__ This widget allows you to add '''[http://documents.google.com/support/ Google Documents]''' to your wiki page. It was originally created by mediawikiwi..."2017-08-14T21:28:19Z<p>Created page with "<noinclude>__NOTOC__ This widget allows you to add '''[http://documents.google.com/support/ Google Documents]''' to your wiki page. It was originally created by mediawikiwi..."</p>
<p><b>New page</b></p><div><noinclude>__NOTOC__<br />
This widget allows you to add '''[http://documents.google.com/support/ Google Documents]''' to your wiki page.<br />
<br />
It was originally created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]].<br />
<br />
To insert this widget, use the following code:<br />
<br />
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki><br />
|id=1hhpWRL4oyH6Aqf42laXo_lElObX_1JiaV4FMt8llA_U<br />
|width=500<br />
|height=300<br />
}}</nowiki><br />
<br />
== Parameters ==<br />
* '''width''' and '''height''' define document dimensions, 500x300 is default<br />
* '''id''' - id parameter used in the URL<br />
* '''key''' - docID parameter used in old document URL (use it instead of '''id''' to embed old document)<br />
<br />
; Note: In order for your embedded Google Doc to be visible on your wiki, you must first '''publish it to the web'''.<br />
# Open your document.<br />
# From the document menu, choose File > Publish to the Web...<br />
# Click "Start publishing" button.<br />
# See also: [http://support.google.com/docs/bin/answer.py?hl=en&answer=183965 Publishing does not affect visibility options]<br />
<br />
== Sample result ==<br />
{{#widget:{{PAGENAME}}<br />
|id=1hhpWRL4oyH6Aqf42laXo_lElObX_1JiaV4FMt8llA_U<br />
|width=500<br />
|height=300<br />
}}<br />
<br />
=== Old document ===<br />
Old document that has '''docID''' attribute in the URL instead of '''id'''.<br />
<br />
{{#widget:{{PAGENAME}}<br />
|key=dcn37mcz_34cvfjpmhf<br />
|width=500<br />
|height=300<br />
}}<br />
<br />
{{Template:Copy to your site}}<br />
* Since Google Migration to Google Drive, the template reference has changed. See [http://wiki.glitchdata.com/index.php?title=Widget:Google_Document here] for latest template code.<br />
<br />
<br />
== Related widgets ==<br />
* [[Widget:Google Spreadsheet|Google Spreadsheet]] - for embedding spreadsheets<br />
* [[Widget:Google Form|Google Form]] - for embedding spreadsheet forms<br />
* [[Widget:Google Presentation|Google Presentation]] - for embedding presentations<br />
<br />
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1" src="//docs.google.com/<!--{if isset($id)}-->document/pub?id=<!--{$id|escape:'urlpathinfo'}-->&amp;embedded=1<!--{elseif isset($key)}-->View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1<!--{/if}-->"></iframe></includeonly></div>Sdc