Difference between revisions of "Template:YCal"
Jump to navigation
Jump to search
(added 'cal' and 'url' fields; fixed 'host' var usage) |
(added space in title/host) |
||
Line 1: | Line 1: | ||
<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|{{FULLPAGENAME}}}}}}&in_loc={{#urlencode:{{{at}}}}} +Yahoo! Calendar]</span></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|{{FULLPAGENAME}}}}}}&in_loc={{#urlencode:{{{at}}}}} +Yahoo! Calendar]</span></includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 04:02, 25 September 2008
{{YCal
|cat=
|title=
|details=
|date=
|sltime=
|dur=
|host
|at=
|url=
|}}
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
|}}