Difference between revisions of "Widget:Google Calendar"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) |
(Added visible example of how to add the macro) |
||
Line 9: | Line 9: | ||
* [http://www.nycresistor.com/ NYCResistor events] | * [http://www.nycresistor.com/ NYCResistor events] | ||
* US Holidays | * US Holidays | ||
<nowiki> | |||
{{#widget:Google Calendar | |||
|id=si8ocqn3duj6f8int3h57jm8qeunplut@import.calendar.google.com | |||
|color=528800 | |||
|id=p2m2av9dhrh4n1ub7jlsc68s7o@group.calendar.google.com | |||
|color=2952A3 | |||
|id=usa@holiday.calendar.google.com | |||
|color=B1440E | |||
|title=TechPresentations, NYCResistor, US Holidays | |||
}}</nowiki> | |||
{{#widget:Google Calendar | {{#widget:Google Calendar | ||
|id=si8ocqn3duj6f8int3h57jm8qeunplut@import.calendar.google.com | |id=si8ocqn3duj6f8int3h57jm8qeunplut@import.calendar.google.com | ||
Line 18: | Line 30: | ||
|title=TechPresentations, NYCResistor, US Holidays | |title=TechPresentations, NYCResistor, US Holidays | ||
}} | }} | ||
</noinclude><includeonly><iframe src="http://www.google.com/calendar/<!--{if isset($app)}-->hosted/<!--{$app|escape:'urlpathinfo'}-->/<!--{/if}-->embed?<!--{if isset($title)}-->title=<!--{$title|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if isset($pvttk)}-->pvttk=<!--{$pvttk|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if is_array($id)}--><!--{foreach from=$id item=i}-->src=<!--{$i|escape:'urlpathinfo'}-->&<!--{/foreach}--><!--{else}-->src=<!--{$id|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if is_array($color)}--><!--{foreach from=$color item=c}-->color=%23<!--{$c|escape:'urlpathinfo'}-->&<!--{/foreach}--><!--{else}-->color=%23<!--{$color|escape:'urlpathinfo'}-->&<!--{/if}-->height=<!--{$height|escape:'urlpathinfo'|default:600}-->&showTitle=<!--{if isset($showtitle) and not $showtitle}-->0<!--{else}-->1<!--{/if}-->&showNav=<!--{if isset($shownav) and not $shownav}-->0<!--{else}-->1<!--{/if}-->&showDate=<!--{if isset($showdate) and not $showdate}-->0<!--{else}-->1<!--{/if}-->&showTabs=<!--{if isset($showtabs) and not $showtabs}-->0<!--{else}-->1<!--{/if}-->&showCalendars=<!--{if isset($showcals) and not $showcals}-->0<!--{else}-->1<!--{/if}-->&showPrint=<!--{if isset($showprint) and not $showprint}-->0<!--{else}-->1<!--{/if}-->&showTz=<!--{if isset($showtz) and not $showtz}-->0<!--{else}-->1<!--{/if}-->&wkst=<!--{$weekstart|escape:'urlpathinfo'|default:1}-->&hl=<!--{$lang|escape:'urlpathinfo'|default:en}-->&mode=<!--{$view|escape:'urlpathinfo'|default:MONTH}-->&<!--{if isset($timezone)}-->ctz=<!--{$timezone|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if isset($bgcolor)}-->bgcolor=%23<!--{$bgcolor|escape:'urlpathinfo'}--><!--{/if}-->" width="<!--{$width|escape:'html'|default:'100%'}-->" height="<!--{$height|escape:'html'|default:600}-->" frameborder="0" scrolling="no"<!--{if isset($border)}--> style="border: solid 1px #777"<!--{/if}--><!--{if isset($style)}--> style="<!--{$style|escape:'html'}-->"<!--{/if}-->></iframe></includeonly> | </noinclude><includeonly><iframe src="http://www.google.com/calendar/<!--{if isset($app)}-->hosted/<!--{$app|escape:'urlpathinfo'}-->/<!--{/if}-->embed?<!--{if isset($title)}-->title=<!--{$title|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if isset($pvttk)}-->pvttk=<!--{$pvttk|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if is_array($id)}--><!--{foreach from=$id item=i}-->src=<!--{$i|escape:'urlpathinfo'}-->&<!--{/foreach}--><!--{else}-->src=<!--{$id|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if is_array($color)}--><!--{foreach from=$color item=c}-->color=%23<!--{$c|escape:'urlpathinfo'}-->&<!--{/foreach}--><!--{else}-->color=%23<!--{$color|escape:'urlpathinfo'}-->&<!--{/if}-->height=<!--{$height|escape:'urlpathinfo'|default:600}-->&showTitle=<!--{if isset($showtitle) and not $showtitle}-->0<!--{else}-->1<!--{/if}-->&showNav=<!--{if isset($shownav) and not $shownav}-->0<!--{else}-->1<!--{/if}-->&showDate=<!--{if isset($showdate) and not $showdate}-->0<!--{else}-->1<!--{/if}-->&showTabs=<!--{if isset($showtabs) and not $showtabs}-->0<!--{else}-->1<!--{/if}-->&showCalendars=<!--{if isset($showcals) and not $showcals}-->0<!--{else}-->1<!--{/if}-->&showPrint=<!--{if isset($showprint) and not $showprint}-->0<!--{else}-->1<!--{/if}-->&showTz=<!--{if isset($showtz) and not $showtz}-->0<!--{else}-->1<!--{/if}-->&wkst=<!--{$weekstart|escape:'urlpathinfo'|default:1}-->&hl=<!--{$lang|escape:'urlpathinfo'|default:en}-->&mode=<!--{$view|escape:'urlpathinfo'|default:MONTH}-->&<!--{if isset($timezone)}-->ctz=<!--{$timezone|escape:'urlpathinfo'}-->&<!--{/if}--><!--{if isset($bgcolor)}-->bgcolor=%23<!--{$bgcolor|escape:'urlpathinfo'}--><!--{/if}-->" width="<!--{$width|escape:'html'|default:'100%'}-->" height="<!--{$height|escape:'html'|default:600}-->" frameborder="0" scrolling="no"<!--{if isset($border)}--> style="border: solid 1px #777"<!--{/if}--><!--{if isset($style)}--> style="<!--{$style|escape:'html'}-->"<!--{/if}-->></iframe></includeonly> |
Revision as of 10:11, 19 January 2011
This widget enables you to add Google Calendar widget to your wiki page.
It was originally created by Sergey Chernyshev for upcoming conference calendar on TechPresentations.org
Sample result
Displaying 3 different calendars:
{{#widget:Google Calendar |id=si8ocqn3duj6f8int3h57jm8qeunplut@import.calendar.google.com |color=528800 |id=p2m2av9dhrh4n1ub7jlsc68s7o@group.calendar.google.com |color=2952A3 |id=usa@holiday.calendar.google.com |color=B1440E |title=TechPresentations, NYCResistor, US Holidays }}