Difference between revisions of "Widget:Calendar"
(calendar added first attempt for color highlight support) |
(added notes) |
||
Line 8: | Line 8: | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki> | ||
− | |date=march | + | |date=february 26 2011 |
+ | |hl.26 february 2011=blue | ||
+ | |hl.1 march 2011=red | ||
}}</nowiki> | }}</nowiki> | ||
This will give the following result:<br/> | This will give the following result:<br/> | ||
{{#widget:{{PAGENAME}} | {{#widget:{{PAGENAME}} | ||
− | |date=march | + | |date=february 26 2011 |
+ | |hl.26 february 2011=blue | ||
+ | |hl.1 march 2011=red | ||
}}<br/> | }}<br/> | ||
+ | |||
+ | '''Note:''' | ||
+ | * all parameters are optional. If ''date'' is omitted, the current month will be displayed | ||
+ | * you can highlight dates by using the ''hl'' parameter, followed by a dot and the date you want to highlight. Available colors are: red, green, blue, yellow, cyan and purple | ||
== Copy to your site == | == Copy to your site == |
Revision as of 17:23, 25 February 2016
This widget allows you to display a calendar
Created by Xopr
Using this widget
To insert this widget, use the following code:
{{#widget:Calendar |date=february 26 2011 |hl.26 february 2011=blue |hl.1 march 2011=red }}
This will give the following result:
Note:
- all parameters are optional. If date is omitted, the current month will be displayed
- you can highlight dates by using the hl parameter, followed by a dot and the date you want to highlight. Available colors are: red, green, blue, yellow, cyan and purple
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Calendar article.