Difference between revisions of "Template:YCal"
Jump to navigation
Jump to search
(test2) |
m |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[http://calendar.yahoo.com/?v=60&view=d&type=20&DUR={{# | <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= | ||
| | |sltime= | ||
|dur= | |dur= | ||
|host | |host= | ||
|at= | |at= | ||
|}}</nowiki></pre></code></div> | |}}</nowiki></pre></code></div> | ||
<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 | ||
| | |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 | ||
| | |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 08: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
|}}