Difference between revisions of "Template:CURRENTWEEKDAY"

From blackwiki
Jump to navigation Jump to search
imported>Pathoschild
(converted to {{#time:w}})
imported>Verdy p
m (reverting the change from ISO number to US numbering (this has broken some other templates). For US use CURRENTDOW)
Line 1: Line 1:
{{#time:w}}<noinclude>{{tdeprecated|CURRENTWEEKDAY|new={{[[m:ParserFunctions|#time]]:w}}}}
+
{{WEEKDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}<noinclude>
----
+
Returns the ISO week numbering (0=Monday..6=Sunday)
Alias for the [[m:ParserFunction|ParserFunction]] <nowiki>{{#time:w}}</nowiki>; returns the number of the day of the American week (currently {{#time:w}}), from 0 (Sunday) to 6 (Saturday).
+
 
 +
For US numbering use the builtin <nowiki>{{CURRENTDOW}} (0..Sunday..6=Saturday) !
 +
* Now: CURRENTDOW={{CURRENTDOW}}
 +
 
 +
[[Category:Date-computing templates based on current time|{{PAGENAME}}]]
 +
[[fr:Modèle:CURRENTWEEKDAY]]
 
</noinclude>
 
</noinclude>

Revision as of 06:14, 6 December 2008

Template:WEEKDAY Returns the ISO week numbering (0=Monday..6=Sunday)

For US numbering use the builtin <nowiki>3 (0..Sunday..6=Saturday) !

  • Now: CURRENTDOW=3

fr:Modèle:CURRENTWEEKDAY