Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:WEEKDAYNAME/doc

From Wikipedia, the free encyclopedia

This template returns the name of the weekday whose ISO week date day number is in parameter. Alternatively, the English weekday name or abbreviation (with any letter case) can be given.

Usage

[edit]

Syntax

[edit]

{{WEEKDAYNAME|day}}

  • The day value can be any numeric expression and is interpreted modulo 7 (extra leading zeroes and decimals are ignored).

Examples for all standard English week day names

[edit]
{{WEEKDAYNAME|MONDAY}} returns Monday
{{WEEKDAYNAME|TUESDAY}} returns Tuesday
{{WEEKDAYNAME|WEDNESDAY}} returns Wednesday
{{WEEKDAYNAME|THURSDAY}} returns Thursday
{{WEEKDAYNAME|FRIDAY}} returns Friday
{{WEEKDAYNAME|SATURDAY}} returns Saturday
{{WEEKDAYNAME|SUNDAY}} returns Sunday

Examples for all abbreviated English week day names

[edit]
{{WEEKDAYNAME|mon}} returns Monday
{{WEEKDAYNAME|tue}} returns Tuesday
{{WEEKDAYNAME|wed}} returns Wednesday
{{WEEKDAYNAME|thu}} returns Thursday
{{WEEKDAYNAME|fri}} returns Friday
{{WEEKDAYNAME|sat}} returns Saturday
{{WEEKDAYNAME|sun}} returns Sunday

Examples for all standard week day numbers

[edit]
{{WEEKDAYNAME|0}} returns Sunday
{{WEEKDAYNAME|1}} returns Monday
{{WEEKDAYNAME|2}} returns Tuesday
{{WEEKDAYNAME|3}} returns Wednesday
{{WEEKDAYNAME|4}} returns Thursday
{{WEEKDAYNAME|5}} returns Friday
{{WEEKDAYNAME|6}} returns Saturday
{{WEEKDAYNAME|7}} returns Sunday

Examples for week day numbers with extra leading zero

[edit]
{{WEEKDAYNAME|00}} returns Sunday
{{WEEKDAYNAME|01}} returns Monday
{{WEEKDAYNAME|02}} returns Tuesday
{{WEEKDAYNAME|03}} returns Wednesday
{{WEEKDAYNAME|04}} returns Thursday
{{WEEKDAYNAME|05}} returns Friday
{{WEEKDAYNAME|06}} returns Saturday
{{WEEKDAYNAME|07}} returns Sunday

Examples for week day number cyclic underflows and overflows, from computed values

[edit]
{{WEEKDAYNAME|-701}} returns Saturday
{{WEEKDAYNAME|-700}} returns Sunday
{{WEEKDAYNAME|-699}} returns Monday
{{WEEKDAYNAME|-7}} returns Sunday
{{WEEKDAYNAME|-6}} returns Monday
{{WEEKDAYNAME|-5}} returns Tuesday
{{WEEKDAYNAME|-4}} returns Wednesday
{{WEEKDAYNAME|-3}} returns Thursday
{{WEEKDAYNAME|-2}} returns Friday
{{WEEKDAYNAME|-1}} returns Saturday
{{WEEKDAYNAME|-0.0001}} returns Saturday
{{WEEKDAYNAME|0.0001}} returns Sunday
{{WEEKDAYNAME|0.9999}} returns Sunday
{{WEEKDAYNAME|7}} returns Sunday
{{WEEKDAYNAME|8}} returns Monday
{{WEEKDAYNAME|9}} returns Tuesday
{{WEEKDAYNAME|10}} returns Wednesday
{{WEEKDAYNAME|13}} returns Saturday
{{WEEKDAYNAME|14}} returns Sunday
{{WEEKDAYNAME|15}} returns Monday
{{WEEKDAYNAME|700}} returns Sunday
{{WEEKDAYNAME|701}} returns Monday
{{WEEKDAYNAME|707}} returns Sunday

See also

[edit]

Multiple units of time

[edit]
Type Adjustable Current Last Next
Date and time
Date only
Month and year only
Time only
  • {{Timeonly}} (Adjustable to 12 h format)
Banners
  • {{Right now}}
    (Blue with time and number of Wikipedia articles)
Timestamp

Single units of time

[edit]
Unit of time Adjustable Current Last Next
Second
Minute
Hour
Week
Day of Week
Month
Day of Month
Year
Day of Year
Decade
Century
Millenium

Date and time templates made for substitution

[edit]

Parser functions

[edit]

Individual templates

[edit]

Categories of templates

[edit]