Difference between revisions of "Widget:Google Gadget"

(Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[http://www.google.com/ig/directory?synd=open Google Gadgets]''' on your wiki page. Created by [http://www.mediawikiwi...")
 
 
Line 1: Line 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
This widget allows you to embed '''[http://www.google.com/ig/directory?synd=open Google Gadgets]''' on your wiki page.
+
==Background==
 +
*This widget allows you to add [http://www.google.com/ig/directory?synd=open Google Gadgets] to your wiki page.
 +
*For information on how to use this widget, see [http://www.mediawikiwidgets.org/Google_Gadget widget description page on MediaWikiWidgets.org].
  
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
+
See [[#Examples|Examples]] below.
  
== Using this widget ==
+
== Parameters ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Google_Gadget widget description page on MediaWikiWidgets.org].
+
To get the parameters, click "Add to your webpage" button on a gadget page and configure gadget settings (on the right side of the wizard), then click on the "Get the code" button.
  
== Copy to your site ==
+
There are a few parameters you should copy from the code generated by the configuration wizard.
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
+
* '''url''' - (required) copy everything after the "?url=" up till "&amp;synd=open" (widget url itself and all up_* url parameters).
 +
* '''title''' - title of the gadget
 +
* '''width''' - widget width (300 is default)
 +
* '''height''' - widget height (265 is default)
  
 +
== Sample result ==
 +
=== Daylight Map ===
 +
To insert this widget, use the following code:
 +
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 +
|url=http://www.daylightmap.com/clouds/cloud_gadget.xml&amp;up_remember_location=1&amp;up_show_daylight=1&amp;up_lat=10&amp;up_lon=-20&amp;up_zoom=1&amp;up_type=S&amp;up_msg_dismissed=0
 +
|title=Clouds
 +
|width=600
 +
|height=300
 +
}}</nowiki>
 +
 +
{{#widget:{{PAGENAME}}
 +
|url=http://www.daylightmap.com/clouds/cloud_gadget.xml&up_remember_location=1&amp;up_show_daylight=1&amp;up_lat=10&amp;up_lon=-20&amp;up_zoom=1&amp;up_type=S&amp;up_msg_dismissed=0
 +
|title=Clouds
 +
|width=600
 +
|height=300
 +
}}
 +
 +
=== Google Custom Search ===
 +
To insert this widget, use the following code:
 +
 +
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 +
|url=http://www.google.com/coop/api/008224879786263662799/cse/dlukhlm8-0m/gadget
 +
|title=Public Domain Search
 +
|width=320
 +
|height=76
 +
}}</nowiki>
 +
 +
{{#widget:Google Gadget
 +
|url=http://www.google.com/coop/api/008224879786263662799/cse/dlukhlm8-0m/gadget
 +
|title=Public Domain Search
 +
|width=320
 +
|height=76
 +
}}
 +
 +
==See Also==
 +
*[[Widgets]]
  
  
 
</noinclude><includeonly><script src="http://www.gmodules.com/ig/ifr?url=<!--{$url|validate:url}-->&amp;synd=open&amp;w=<!--{$width|validate:int|default:300}-->&amp;h=<!--{$height|validate:int|default:265}-->&amp;title=<!--{$title|escape:'urlpathinfo'}-->&amp;lang=all&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></includeonly>
 
</noinclude><includeonly><script src="http://www.gmodules.com/ig/ifr?url=<!--{$url|validate:url}-->&amp;synd=open&amp;w=<!--{$width|validate:int|default:300}-->&amp;h=<!--{$height|validate:int|default:265}-->&amp;title=<!--{$title|escape:'urlpathinfo'}-->&amp;lang=all&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></includeonly>

Latest revision as of 06:35, 22 February 2015

Background

See Examples below.

Parameters

To get the parameters, click "Add to your webpage" button on a gadget page and configure gadget settings (on the right side of the wizard), then click on the "Get the code" button.

There are a few parameters you should copy from the code generated by the configuration wizard.

  • url - (required) copy everything after the "?url=" up till "&synd=open" (widget url itself and all up_* url parameters).
  • title - title of the gadget
  • width - widget width (300 is default)
  • height - widget height (265 is default)

Sample result

Daylight Map

To insert this widget, use the following code:

{{#widget:Google Gadget
|url=http://www.daylightmap.com/clouds/cloud_gadget.xml&up_remember_location=1&up_show_daylight=1&up_lat=10&up_lon=-20&up_zoom=1&up_type=S&up_msg_dismissed=0
|title=Clouds
|width=600
|height=300
}}

Google Custom Search

To insert this widget, use the following code:

{{#widget:Google Gadget
|url=http://www.google.com/coop/api/008224879786263662799/cse/dlukhlm8-0m/gadget
|title=Public Domain Search
|width=320
|height=76
}}

See Also