Difference between revisions of "Template:GCal"
Jump to navigation
Jump to search
(added 'cal' and 'url' fields; fixed 'host' var usage) |
(added some missing template params; cleaned up documentation a bit) |
||
(4 intermediate revisions by the same user not shown) | |||
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> | ||
Line 6: | Line 6: | ||
|title= | |title= | ||
|details= | |details= | ||
|url= | |||
|date= | |date= | ||
|sltime= | |sltime= | ||
|dur= | |dur= | ||
|host | |host= | ||
|at= | |at= | ||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
<div id="box" style="margin-left:20px;margin-right:20px;padding-left:4px"> | |||
''NOTE: the follow parameters are optional'' | |||
* <code>cal</code> | |||
* <code>url</code> | |||
</div> | |||
== Examples == | |||
<div style="font-size:140%"><code><pre><nowiki>{{GCal | <div style="font-size:140%"><code><pre><nowiki>{{GCal | ||
|title=Group Meeting | |title=Group Meeting | ||
Line 21: | Line 27: | ||
|sltime=10 PM | |sltime=10 PM | ||
|dur=60 min | |dur=60 min | ||
|host=Nava | |host=Nava Muni | ||
|at=Nava's land | |at=Nava's land | ||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
Line 30: | Line 36: | ||
|sltime=10 PM | |sltime=10 PM | ||
|dur=60 min | |dur=60 min | ||
|host=Nava | |host=Nava Muni | ||
|at=Nava's land | |at=Nava's land | ||
|}} | |}} | ||
</noinclude> | </noinclude> |
Latest revision as of 03:31, 26 September 2008
{{GCal
|cal=
|title=
|details=
|url=
|date=
|sltime=
|dur=
|host=
|at=
|}}
NOTE: the follow parameters are optional
cal
url
Examples
{{GCal
|title=Group Meeting
|details=To discuss all kinds of things
|date=7/13/2008
|sltime=10 PM
|dur=60 min
|host=Nava Muni
|at=Nava's land
|}}