Difference between revisions of "Widget:Google Form"

From its-wiki.no
Jump to: navigation, search
(Related widgets)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
 +
<BIG> does not work on this wiki </BIG>
 +
 
This widget allows you to add '''[http://documents.google.com/support/spreadsheets/bin/answer.py?hl=en&answer=87809 Google Spreadsheet Forms]''' to your wiki page.
 
This widget allows you to add '''[http://documents.google.com/support/spreadsheets/bin/answer.py?hl=en&answer=87809 Google Spreadsheet Forms]''' to your wiki page.
  
Line 7: Line 9:
  
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=po-s58YMwf85Q3UxRzdGOBw
+
|id=1pbh8f8KCxXNXdqSKEe2kM-KYJuv8_BuEwqj6zAa8M68
 
|width=600
 
|width=600
 
|height=750
 
|height=750
Line 13: Line 15:
  
 
== 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:Google Form
|key=po-s58YMwf85Q3UxRzdGOBw
+
|id=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'}-->/viewform?usp=sharing<!--{elseif isset($key)}-->View?docID=<!--{$key|escape:'urlpathinfo'}-->&hgd=1<!--{/if}-->">
 +
</iframe>
 +
</includeonly>

Latest revision as of 12:35, 3 February 2016

does not work on this wiki

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