Content added Content deleted
No edit summary |
imported>mutante m (Reverted edits by 89.34.46.50 (Talk); changed back to last version by mutante) |
||
Line 9: | Line 9: | ||
name=YourUserName |
name=YourUserName |
||
view=year |
view=year |
||
format=%name_%year_% |
format=%name_%year_%month_%day |
||
</calendar> |
</calendar> |
||
</pre> |
</pre> |
||
Line 34: | Line 34: | ||
is a name for the calendar and changes the names of the day pages. |
is a name for the calendar and changes the names of the day pages. |
||
"format" |
"format" |
||
defaults to '%name_%year_% |
defaults to '%name_%year_%month_%day' and describes the names |
||
of the day pages. |
of the day pages. |
||
"formattitle" |
"formattitle" |
||
Line 46: | Line 46: | ||
above. examples are: |
above. examples are: |
||
date=" |
date="+1 week" |
||
date="next monday" |
date="next monday" |
||
date=" |
date="+7 days" |
||
"weekstart" |
"weekstart" |
||
week starts on 1=monday ... 7=sunday. default is 1 |
week starts on 1=monday ... 7=sunday. default is 1 |
||
format & formattitle accept these substitutions: |
|||
format |
|||
%name |
|||
%day,%month,%year |
|||
any php date() substitution prefixed with '%', like '%m','%d','%Y' |
|||
from [http://meta.wikimedia.org/wiki/User:Cdamian/calendar User:Cdamian/calendar] |
Latest revision as of 13:30, 10 June 2007
The calendar has been created by calendar extension for mediawiki by [krass.com,(download)
You can also create the same or other calendars on other wiki pages.
example:
<calendar> name=YourUserName view=year format=%name_%year_%month_%day </calendar>
You can also drop the format line because it defaults to the above, the format influences the name of the wiki pages created for each day, if you use a different name, it will become a prefix in wiki page names, therefore not interfering with other calendars. Test this in preview mode.
Calendar tag options[edit]
<calendar> name=krass view=year </calendar>
The parameters work like this:
"view"
can be "week","month","threemonths" and "year" (default).
"name"
is a name for the calendar and changes the names of the day pages.
"format"
defaults to '%name_%year_%month_%day' and describes the names of the day pages.
"formattitle"
formats the titles in today/days/week view
"day","month","year"
you can specify the date of the calendar, it defaults to today. currently this doesn't work with "view=week"
"date"
this takes a php strtotime ( http:://www.php.net/strtotime ) option and overrides the "day","month","year" option above. examples are: date="+1 week" date="next monday" date="+7 days"
"weekstart"
week starts on 1=monday ... 7=sunday. default is 1
format & formattitle accept these substitutions:
%name %day,%month,%year any php date() substitution prefixed with '%', like '%m','%d','%Y'