Difference between revisions of "Template:GCal"

From Second Life Wiki
Jump to navigation Jump to search
(fixed quotes on new span)
(added 'cal' and 'url' fields; fixed 'host' var usage)
Line 1: Line 1:
<includeonly><span class="plainlinks">[http://www.google.com/calendar/event?action=TEMPLATE&text={{#urlencode:{{{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:{{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)}}}}}&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>
<div style="font-size:140%"><code><pre><nowiki>{{GCal
<div style="font-size:140%"><code><pre><nowiki>{{GCal
|cal=
  |title=
  |title=
  |details=
  |details=
Line 10: Line 11:
  |host
  |host
  |at=
  |at=
|url=
  |}}</nowiki></pre></code></div>
  |}}</nowiki></pre></code></div>



Revision as of 04:55, 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
 |}}

Meeting}}&details={{#urlencode:To discuss all kinds of things}}&dates=20080713T220000Z/20080713T230000Z&sprop=host:{{#urlencode:Nava}}&sprop=name:{{#urlencode:GCal}}&sprop=website:{{#urlencode:Template:GCal}}&location={{#urlencode:Nava's land}} +Google Calendar