Hi,
you may want to use a construct like that
{{#expr: {{#switch: {{#expr: {{CURRENTMONTH}} - 1 }}
| 0 = 0
| 1 = 31
| 2 = 59
| 3 = 90
| 4 = 120
| 5 = 151
| 6 = 181
| 7 = 212
| 8 = 243
| 9 = 273
| 10 = 304
| 11 = 334
}} + {{CURRENTDAY}} }}
with ParserFunctions[1] installed. This may not work as intended in leap years.
Greets,
Wuzur aka Michael Rosenthal
[1]
http://www.mediawiki.org/wiki/Extension:ParserFunctions
On Wed, Dec 31, 2008 at 10:06 AM, david <dvd(a)enlloc.org> wrote:
Hi, is there a way to obtain the day of the year in
wiki pages?
Like ...
date('z');
... in PHP.
I want a number starting from 0 through 365.
Thanks (and have a happy new year);
dvdgmz
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l