Template:WEEKDAYNAME/doc

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

Syntax

{{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

{{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

{{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

{{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

{{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

{{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

Multiple units of time

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

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

Parser functions

Individual templates

Categories of templates


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.