Difference between revisions of "Widget:Google Form"

From its-wiki.no
Jump to: navigation, search
(Related widgets)
Line 7: Line 7:
  
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=po-s58YMwf85Q3UxRzdGOBw
+
|key=1pbh8f8KCxXNXdqSKEe2kM-KYJuv8_BuEwqj6zAa8M68
 
|width=600
 
|width=600
 
|height=750
 
|height=750
Line 13: Line 13:
  
 
== Parameters ==
 
== Parameters ==
* '''key''' - key parameter in emailing/embedding URL
+
* '''id''' - 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
  
 
== Sample result ==
 
== Sample result ==
 
{{#widget:{{PAGENAME}}
 
{{#widget:{{PAGENAME}}
|key=po-s58YMwf85Q3UxRzdGOBw
+
|key=1pbh8f8KCxXNXdqSKEe2kM-KYJuv8_BuEwqj6zAa8M68
|width=600
+
|width=700
|height=750
+
|height=350
 
}}
 
}}
</noinclude><includeonly><iframe src="http://spreadsheets.google.com/embeddedform?key=<!--{$key|escape:'urlpathinfo'}-->" width="<!--{$width|escape:'html'|default:300}-->" height="<!--{$height|escape:'html'|default:400}-->" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe></includeonly>
+
</noinclude>
 +
<includeonly>
 +
<iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1"  src="https://docs.google.com/<!--{if isset($id)}-->form/d/<!--{$id|escape:'urlpathinfo'}-->/edit?usp=sharing<!--{elseif isset($key)}-->View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1<!--{/if}-->">
 +
</iframe>
 +
</includeonly>

Revision as of 12:32, 3 February 2016

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=1pbh8f8KCxXNXdqSKEe2kM-KYJuv8_BuEwqj6zAa8M68
|width=600
|height=750
}}

Parameters

  • id - 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

Sample result