Difference between revisions of "Template:YCal"
Jump to navigation
Jump to search
(url-encoded the calendar's URL) |
(added 'cal' and 'url' fields; fixed 'host' var usage) |
||
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}}}{{#ifeq:{{{host|*}}}|*|| by {{{host}}}}}}}&ST={{#time:Ymd\THis|{{{date}}} {{{sltime}}} -4 hours}}&DESC={{#urlencode:{{{details}}}}}&URL={{#urlencode:{{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> | ||
<div style="font-size:140%"><code><pre><nowiki>{{YCal | <div style="font-size:140%"><code><pre><nowiki>{{YCal | ||
|cat= | |||
|title= | |title= | ||
|details= | |details= | ||
Line 10: | Line 11: | ||
|host | |host | ||
|at= | |at= | ||
|url= | |||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
Revision as of 03:57, 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
|}}