Page MenuHomePhabricator

Introduce {{dayofweek:}} colon function
Closed, ResolvedPublic

Description

Sometimes is necessary to know the day number/name for such date. Sometimes just
what was the first day of such month or year.

The idea is:
{{dayofweek:2006|08|24}} returns 4 (Thursday)
{{dayofweek:2006|08}} returns 2 (Tuesday) (= Aug 1st)
{{dayofweek:2006}} returns 7 (Sunday) (= Jan 1st)
missing parameter has default value 1

Name it different if you'll find proposed name confusing.


Version: unspecified
Severity: enhancement

Details

Reference
bz7115

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:22 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz7115.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

*** This bug has been marked as a duplicate of 7116 ***