Difference between revisions of "Widget:Google Form"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
|height=750 | |height=750 | ||
|border=0 | |border=0 | ||
+ | |topoffset=0 | ||
+ | |leftoffset=0 | ||
}}</nowiki> | }}</nowiki> | ||
== Parameters == | == Parameters == | ||
− | * '''key''' | + | * '''key''' is the hash section on the 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 | ||
+ | * '''border''' is the width of the border in pixels | ||
+ | * '''topoffset''' and '''leftoffset''' are cropping offsets in pixels | ||
− | + | </noinclude><includeonly><div style="width: <!--{$width|escape:'html'|default:300}-->px; height: <!--{$height|escape:'html'|default:400}-->px; border-style: solid; border-width: <!--{$border|escape:'html'|default:0}-->px;overflow: hidden"><iframe src="https://docs.google.com/forms/d/e/<!--{$key|escape:'urlpathinfo'}-->/viewform?embedded=true" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" style="width: <!--{$width+2*$leftoffset|escape:'html'|default:500}-->px; height: <!--{$height+$topoffset|escape:'html'|default:400}-->px; position: relative; left: -<!--{$leftoffset|escape:'html'|default:0}-->px; top: -<!--{$topoffset|escape:'html'|default:0}-->px">Loading...</iframe></div></includeonly> | |
− | </noinclude><includeonly><div style="width: <!--{$width|escape:'html'|default:300}-->px; height: <!--{$height|escape:'html'|default:400}-->px; overflow: hidden"><iframe src="https://docs.google.com/forms/d/e/<!--{$key|escape:'urlpathinfo'}-->/viewform?embedded=true" frameborder=" | ||
− |
Latest revision as of 17:10, 26 August 2016
This widget allows you to add Google Forms to your wiki page.
It was originally created by Sergey Chernyshev for Semantic Communities LLC. Updated by Humberto Gonzalez.
To insert this widget, use the following code:
{{#widget:Google Form |key=po-s58YMwf85Q3UxRzdGOBw |width=600 |height=750 |border=0 |topoffset=0 |leftoffset=0 }}
Parameters
- key is the hash section on the 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
- border is the width of the border in pixels
- topoffset and leftoffset are cropping offsets in pixels