Difference between revisions of "Widget:Google Form"

From ICPWiki
Jump to: navigation, search
Line 15: Line 15:
 
* '''key''' - key parameter in emailing/embedding URL
 
* '''key''' - key parameter in emailing/embedding URL
 
* '''width''' and '''height''' define form dimensions, 300x400 is default, but you might want to copy it from embed code since size depends on fields you have
 
* '''width''' and '''height''' define form dimensions, 300x400 is default, but you might want to copy it from embed code since size depends on fields you have
 +
* '''frameborder''' defines the size of the border around the embedded form
 +
* '''marginwidth'' and '''marginheight''' define the dimensions of the margin around the embedded form
  
 
{{Template:Copy to your site}}
 
{{Template:Copy to your site}}
Line 29: Line 31:
 
|height=750
 
|height=750
 
}}
 
}}
</noinclude><includeonly><iframe src="https://docs.google.com/forms/d/<!--{$key|escape:'urlpathinfo'}-->/viewform?embedded=true" width="<!--{$width|escape:'html'|default:300}-->" height="<!--{$height|escape:'html'|default:400}-->" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe></includeonly>
+
</noinclude><includeonly><iframe src="https://docs.google.com/forms/d/<!--{$key|escape:'urlpathinfo'}-->/viewform?embedded=true" width="<!--{$width|escape:'html'|default:300}-->" height="<!--{$height|escape:'html'|default:400}-->" frameborder="<!--{$frameborder|escape:'html'|default:0}-->" marginheight="<!--{$marginheight|escape:'html'|default:0}-->" marginwidth="<!--{$marginwidth|escape:'html'|default:0}-->">Loading...</iframe></includeonly>

Revision as of 11:51, 8 April 2014

This widget allows you to add Google Spreadsheet Forms 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 Form
|key=po-s58YMwf85Q3UxRzdGOBw
|width=600
|height=750
}}

Parameters

  • key - key parameter in emailing/embedding URL
  • width and height define form dimensions, 300x400 is default, but you might want to copy it from embed code since size depends on fields you have
  • frameborder defines the size of the border around the embedded form
  • marginwidth and marginheight' define the dimensions of the margin around the embedded form

Template:Copy to your site

Related widgets

Sample result