Difference between revisions of "Template:GCal"
Jump to navigation
Jump to search
(added 'cal' and 'url' fields; fixed 'host' var usage) |
(added 'by (host)' to 'title' if host given) |
||
Line 1: | Line 1: | ||
<includeonly><span class="plainlinks">[http://www.google.com/calendar/event?action=TEMPLATE&text={{#urlencode:{{{title|(no title)}}}}}&details={{#urlencode:{{{details}}}}}&dates={{#time:Ymd\THis\Z|{{{date}}} {{{sltime}}}}}/{{#time:Ymd\THis\Z|{{{date}}} {{{sltime}}} +{{{dur}}}}}&sprop=host:{{#urlencode:{{{host|(unspecified)}}}}}&sprop=name:{{#urlencode:{{PAGENAME}}}}&sprop=website:{{#urlencode:{{{url|{{FULLPAGENAME}}}}}}}&location={{#urlencode:{{{at}}}}} +Google Calendar]</span></includeonly> | <includeonly><span class="plainlinks">[http://www.google.com/calendar/event?action=TEMPLATE&text={{#urlencode:{{{title|(no title)}}}{{#ifeq:{{{host|*}}}|*|| by {{{host}}}}}}}}}&details={{#urlencode:{{{details}}}}}&dates={{#time:Ymd\THis\Z|{{{date}}} {{{sltime}}}}}/{{#time:Ymd\THis\Z|{{{date}}} {{{sltime}}} +{{{dur}}}}}&sprop=host:{{#urlencode:{{{host|(unspecified)}}}}}&sprop=name:{{#urlencode:{{PAGENAME}}}}&sprop=website:{{#urlencode:{{{url|{{FULLPAGENAME}}}}}}}&location={{#urlencode:{{{at}}}}} +Google Calendar]</span></includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 03:58, 25 September 2008
{{GCal
|cal=
|title=
|details=
|date=
|sltime=
|dur=
|host
|at=
|url=
|}}
Example:
{{GCal
|title=Group Meeting
|details=To discuss all kinds of things
|date=7/13/2008
|sltime=10 PM
|dur=60 min
|host=Nava
|at=Nava's land
|}}