Difference between revisions of "Template:YCal"

From Second Life Wiki
Jump to navigation Jump to search
(really hacked the duration!)
m
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[http://calendar.yahoo.com/?v=60&view=d&type=20&DUR={{#exr:{{#expr:{{#time:U|{{#time:Ymd|{{{date}}}}}T{{#time:His|{{{zulu}}} +{{{dur}}}}}Z}}-{{#time:U|{{#time:Ymd|{{{date}}}}}T{{{zulu}}}Z}}}}/3600}}{{#expr:{{#expr:{{#time:U|{{#time:Ymd|{{{date}}}}}T{{#time:His|{{{zulu}}} +{{{dur}}}}}Z}}-{{#time:U|{{#time:Ymd|{{{date}}}}}T{{{zulu}}}Z}}}}/60}}&TITLE={{#urlencode:{{{title}}}{{#ifeq:{{{host|*}}}|*||  by {{{host}}}}}}}&ST={{#time:Ymd|{{{date}}}}}T{{#time:His|{{{zulu}}}}}&DESC={{#urlencode:{{{details}}}}}&URL={{FULLPAGENAME}}&in_loc={{#urlencode:{{{at}}}}} +Yahoo! Calendar]</includeonly>
<includeonly><span class="plainlinks">[http://calendar.yahoo.com/?v=60&view=d&type=20&DUR={{padleft:{{#expr:{{#expr:{{#time:U|{{{date}}} {{{sltime}}} +{{{dur}}}}}-{{#time:U|{{{date}}} {{{sltime}}}}}}}/3600}}|2}}{{padleft:{{#expr:{{#expr:{{#time:U|{{{date}}} {{{sltime}}} +{{{dur}}}}}-{{#time:U|{{{date}}} {{{sltime}}}}}}} mod 60}}|2}}&TITLE={{#urlencode:{{{title|(no title)}}} {{#ifeq:{{{host|*}}}|*||  by {{{host}}}}}}}&ST={{#time:Ymd\THis|{{{date}}} {{{sltime}}} -4 hours}}&DESC={{#urlencode:{{{details}}}}}&URL={{#urlencode:{{{url|{{fullurl:{{FULLPAGENAME}}}}}}}}}&in_loc={{#urlencode:{{{at}}}}} +Yahoo! Calendar]</span></includeonly>


<noinclude>
<noinclude>
<div style="font-size:140%"><code><pre><nowiki>{{YCal
<div style="font-size:140%"><code><pre><nowiki>{{YCal
|cal=
  |title=
  |title=
  |details=
  |details=
|url=
  |date=
  |date=
  |zulu=
  |sltime=
  |dur=
  |dur=
  |host
  |host=
  |at=
  |at=
  |}}</nowiki></pre></code></div>
  |}}</nowiki></pre></code></div>


Example:
<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>{{YCal
<div style="font-size:140%"><code><pre><nowiki>{{YCal
  |title=Group Meeting
  |title=Group Meeting
  |details=To discuss all kinds of things
  |details=To discuss all kinds of things
  |date=7/13/2008
  |date=7/13/2008
  |zulu=2200
  |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 26: Line 34:
  |details=To discuss all kinds of things
  |details=To discuss all kinds of things
  |date=7/13/2008
  |date=7/13/2008
  |zulu=2200
  |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 09:58, 13 October 2008


{{YCal
 |cal=
 |title=
 |details=
 |url=
 |date=
 |sltime=
 |dur=
 |host=
 |at=
 |}}

NOTE: the follow parameters are optional

  • cal
  • url

Examples

{{YCal
 |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
 |}}

Meeting by Nava Muni}}&ST=20080713T180000&DESC={{#urlencode:To discuss all kinds of things}}&URL={{#urlencode:https://wiki.secondlife.com/wiki/Template:YCal}}&in_loc={{#urlencode:Nava's land}} +Yahoo! Calendar