Jump to content

Template:DOW name

From Meta, a Wikimedia project coordination wiki

Wednesday

This template combined with Template:DOW computes the ISO weekday for a given Gregorian date.

It is especially useful for dates before 19700102, because they are outside the range of #time.

{{DOW name|{{DOW|2007|3|11}}}} gives Sunday.

Compare {{#time:l|2007-3-11}} giving Sunday.

{{DOW name}} gives Wednesday [1]
"{{DOW name|1}}" gives "Monday" [2]
"{{DOW name|3}}" gives "Wednesday" [3]
"{{DOW name|abc}}" gives "wrong parameter value "abc"" [4]

{{DOW name|{{DOW|2006|12|31}}}} gives Sunday.

{{subst:DOW name|1|subst=subst:}} gives the wikitext Monday.
{{subst:DOW name|{{subst:DOW|2006|1|3|subst=subst:}}|subst=subst:}} gives the wikitext Tuesday.