Difference between revisions of "Template:YCal"

From Second Life Wiki
Jump to navigation Jump to search
(added an offset of -4 hours to starting time)
($wgAllowExternalImages != true so no image links; added "plainlinks" span to get rid of funny arrow)
Line 1: Line 1:
<includeonly>[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}}}{{#ifeq:{{{host|*}}}|*||  by {{{host}}}}}}}&ST={{#time:Ymd\THis|{{{date}}} {{{sltime}}} -4 hours}}&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}}}{{#ifeq:{{{host|*}}}|*||  by {{{host}}}}}}}&ST={{#time:Ymd\THis|{{{date}}} {{{sltime}}} -4 hours}}&DESC={{#urlencode:{{{details}}}}}&URL={{FULLPAGENAME}}&in_loc={{#urlencode:{{{at}}}}} +Yahoo! Calendar]</span></includeonly>


<noinclude>
<noinclude>

Revision as of 20:04, 8 August 2008


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

Example:

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

Meetingby Nava}}&ST=20080713T180000&DESC={{#urlencode:To discuss all kinds of things}}&URL=Template:YCal&in_loc={{#urlencode:Nava's land}} +Yahoo! Calendar