Widget:Google Spreadsheet: Difference between revisions

From AIE Wiki
Jump to navigation Jump to search
m (Created page with '<noinclude>__NOTOC__ This widget allows you to add '''[http://documents.google.com/support/spreadsheets/ Google Spreadsheets]''' to your wiki page. It was originally created by …')
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>__NOTOC__
<noinclude>__NOTOC__
This widget allows you to add '''[http://documents.google.com/support/spreadsheets/ Google Spreadsheets]''' to your wiki page.
This is the [[Google Spreadsheet]] template supporting [[MediaWiki: Widgets Extension]].
* To get help on using the Google Spreadsheet widget [http://www.mediawikiwidgets.org/Google_Spreadsheet].
* Install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension]


It was originally created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] for [http://www.semanticcommunities.com/ Semantic Communities LLC.]
==Related==
* [[Widget:Facebook Comments]]
* [[Widget:Google Spreadsheet]]
* [[Widget:Google Form]]
* [[Widget:Google Document]]
* [[Widget:Google Presentation]]
* [[Widget:Google Maps]]


To insert this widget, use the following code:


<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
==Template Code==
|key=po-s58YMwf85Q3UxRzdGOBw
This template code needs to be created as a page in your MediaWiki site.
|width=500
|height=300
}}</nowiki>


== Parameters ==
[{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
* '''key''' - key parameter in document URL
</noinclude>
* '''width''' and '''height''' define spreadsheet dimensions, 500x300 is default, but you might want to copy it from embed code since size depends on fields you have
* '''page''' - set it to embed whole page with edit links and more.


== Security NOTE ==
<includeonly>
Keep in mind that to use this widget you must make the document you're publishing to be open for everybody to see which might be undesirable for some uses (intranets, closed groups and etc.)
<iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="0" src="https://docs.google.com/spreadsheet/ccc?key=<!--{$key|escape:'urlpathinfo'}--><!--{if not $page}-->&output=html&widget=true<!--{/if}-->">
 
</iframe>
{{Template:Copy to your site}}
</includeonly>
 
== Related widgets ==
* [[Widget:Google Document|Google Document]] - for embedding documents
* [[Widget:Google Form|Google Form]] - for embedding spreadsheet forms
* [[Widget:Google Presentation|Google Presentation]] - for embedding presentations
 
== Sample result ==
{{#widget:{{PAGENAME}}
|key=po-s58YMwf85VdL_dX0w3VQ
|width=100%
|height=300
|page=true
}}
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="0" src="http://spreadsheets.google.com/pub?key=<!--{$key|escape:'urlpathinfo'}--><!--{if not $page}-->&output=html&widget=true<!--{/if}-->"></iframe></includeonly>

Latest revision as of 18:14, 3 January 2017

This is the Google Spreadsheet template supporting MediaWiki: Widgets Extension.

Related


Template Code

This template code needs to be created as a page in your MediaWiki site.

full source code of this page to your wiki as Widget:Google Spreadsheet article.