Changes
Changed the headings from <nowiki>; heading <nowiki>:</nowiki></nowiki> to use Headings, which are editable by section
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template returns the name of the weekday whose number is in parameter. Alternatively, the English weekday name or abbreviation (with any letter case) can be given.
=== Syntax ===
: <tt><nowiki>{{</nowiki>WEEKDAYNAME|</tt>''day''<tt>}}</tt>
* The ''day'' value can be any numeric expression and is interpreted modulo 7 (extra leading zeroes and decimals are ignored), so it accepts any valid Julian day timestamp.
=== Example with a timestamp ===
: <tt><nowiki>{{WEEKDAYNAME|{{JULIANDAY|2000|01|01}}}}</nowiki></tt> returns {{WEEKDAYNAME|{{JULIANDAY|2000|01|01}}}}.
=== Examples for all standard English week day names ===
: <tt><nowiki>{{WEEKDAYNAME|MONDAY}}</nowiki></tt> returns {{WEEKDAYNAME|MONDAY}}
: <tt><nowiki>{{WEEKDAYNAME|TUESDAY}}</nowiki></tt> returns {{WEEKDAYNAME|TUESDAY}}
: <tt><nowiki>{{WEEKDAYNAME|WEDNESDAY}}</nowiki></tt> returns {{WEEKDAYNAME|WEDNESDAY}}
: <tt><nowiki>{{WEEKDAYNAME|THURSDAY}}</nowiki></tt> returns {{WEEKDAYNAME|THURSDAY}}
: <tt><nowiki>{{WEEKDAYNAME|FRIDAY}}</nowiki></tt> returns {{WEEKDAYNAME|FRIDAY}}
: <tt><nowiki>{{WEEKDAYNAME|SATURDAY}}</nowiki></tt> returns {{WEEKDAYNAME|SATURDAY}}
: <tt><nowiki>{{WEEKDAYNAME|SUNDAY}}</nowiki></tt> returns {{WEEKDAYNAME|SUNDAY}}
=== Examples for all abbreviated English week day names ===
: <tt><nowiki>{{WEEKDAYNAME|mon}}</nowiki></tt> returns {{WEEKDAYNAME|mon}}
: <tt><nowiki>{{WEEKDAYNAME|tue}}</nowiki></tt> returns {{WEEKDAYNAME|tue}}
: <tt><nowiki>{{WEEKDAYNAME|wed}}</nowiki></tt> returns {{WEEKDAYNAME|wed}}
: <tt><nowiki>{{WEEKDAYNAME|thu}}</nowiki></tt> returns {{WEEKDAYNAME|thu}}
: <tt><nowiki>{{WEEKDAYNAME|fri}}</nowiki></tt> returns {{WEEKDAYNAME|fri}}
: <tt><nowiki>{{WEEKDAYNAME|sat}}</nowiki></tt> returns {{WEEKDAYNAME|sat}}
: <tt><nowiki>{{WEEKDAYNAME|sun}}</nowiki></tt> returns {{WEEKDAYNAME|sun}}
=== Examples for all standard week day numbers ===
: <tt><nowiki>{{WEEKDAYNAME|0}}</nowiki></tt> returns {{WEEKDAYNAME|0}}
: <tt><nowiki>{{WEEKDAYNAME|1}}</nowiki></tt> returns {{WEEKDAYNAME|1}}
: <tt><nowiki>{{WEEKDAYNAME|2}}</nowiki></tt> returns {{WEEKDAYNAME|2}}
: <tt><nowiki>{{WEEKDAYNAME|3}}</nowiki></tt> returns {{WEEKDAYNAME|3}}
: <tt><nowiki>{{WEEKDAYNAME|4}}</nowiki></tt> returns {{WEEKDAYNAME|4}}
: <tt><nowiki>{{WEEKDAYNAME|5}}</nowiki></tt> returns {{WEEKDAYNAME|5}}
: <tt><nowiki>{{WEEKDAYNAME|6}}</nowiki></tt> returns {{WEEKDAYNAME|6}}
=== Examples for week day numbers with extra leading zero ===
: <tt><nowiki>{{WEEKDAYNAME|00}}</nowiki></tt> returns {{WEEKDAYNAME|00}}
: <tt><nowiki>{{WEEKDAYNAME|01}}</nowiki></tt> returns {{WEEKDAYNAME|01}}
: <tt><nowiki>{{WEEKDAYNAME|02}}</nowiki></tt> returns {{WEEKDAYNAME|02}}
: <tt><nowiki>{{WEEKDAYNAME|03}}</nowiki></tt> returns {{WEEKDAYNAME|03}}
: <tt><nowiki>{{WEEKDAYNAME|04}}</nowiki></tt> returns {{WEEKDAYNAME|04}}
: <tt><nowiki>{{WEEKDAYNAME|05}}</nowiki></tt> returns {{WEEKDAYNAME|05}}
: <tt><nowiki>{{WEEKDAYNAME|06}}</nowiki></tt> returns {{WEEKDAYNAME|06}}
=== Examples for week day number cyclic underflows and overflows, from computed values ===
: <tt><nowiki>{{WEEKDAYNAME|-701}}</nowiki></tt> returns {{WEEKDAYNAME|-701}}
: <tt><nowiki>{{WEEKDAYNAME|-700}}</nowiki></tt> returns {{WEEKDAYNAME|-700}}
: <tt><nowiki>{{WEEKDAYNAME|-699}}</nowiki></tt> returns {{WEEKDAYNAME|-699}}
: <tt><nowiki>{{WEEKDAYNAME|-7}}</nowiki></tt> returns {{WEEKDAYNAME|-7}}
: <tt><nowiki>{{WEEKDAYNAME|-6}}</nowiki></tt> returns {{WEEKDAYNAME|-6}}
: <tt><nowiki>{{WEEKDAYNAME|-5}}</nowiki></tt> returns {{WEEKDAYNAME|-5}}
: <tt><nowiki>{{WEEKDAYNAME|-4}}</nowiki></tt> returns {{WEEKDAYNAME|-4}}
: <tt><nowiki>{{WEEKDAYNAME|-3}}</nowiki></tt> returns {{WEEKDAYNAME|-3}}
: <tt><nowiki>{{WEEKDAYNAME|-2}}</nowiki></tt> returns {{WEEKDAYNAME|-2}}
: <tt><nowiki>{{WEEKDAYNAME|-1}}</nowiki></tt> returns {{WEEKDAYNAME|-1}}
: <tt><nowiki>{{WEEKDAYNAME|7}}</nowiki></tt> returns {{WEEKDAYNAME|7}}
: <tt><nowiki>{{WEEKDAYNAME|8}}</nowiki></tt> returns {{WEEKDAYNAME|8}}
: <tt><nowiki>{{WEEKDAYNAME|9}}</nowiki></tt> returns {{WEEKDAYNAME|9}}
: <tt><nowiki>{{WEEKDAYNAME|10}}</nowiki></tt> returns {{WEEKDAYNAME|10}}
: <tt><nowiki>{{WEEKDAYNAME|13}}</nowiki></tt> returns {{WEEKDAYNAME|13}}
: <tt><nowiki>{{WEEKDAYNAME|14}}</nowiki></tt> returns {{WEEKDAYNAME|14}}
: <tt><nowiki>{{WEEKDAYNAME|15}}</nowiki></tt> returns {{WEEKDAYNAME|15}}
: <tt><nowiki>{{WEEKDAYNAME|700}}</nowiki></tt> returns {{WEEKDAYNAME|700}}
: <tt><nowiki>{{WEEKDAYNAME|701}}</nowiki></tt> returns {{WEEKDAYNAME|701}}
: <tt><nowiki>{{WEEKDAYNAME|707}}</nowiki></tt> returns {{WEEKDAYNAME|707}}
=== See also ===
{{Calendar, clock, date and time computing templates}}
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template returns the name of the weekday whose number is in parameter. Alternatively, the English weekday name or abbreviation (with any letter case) can be given.
=== Syntax ===
: <tt><nowiki>{{</nowiki>WEEKDAYNAME|</tt>''day''<tt>}}</tt>
* The ''day'' value can be any numeric expression and is interpreted modulo 7 (extra leading zeroes and decimals are ignored), so it accepts any valid Julian day timestamp.
=== Example with a timestamp ===
: <tt><nowiki>{{WEEKDAYNAME|{{JULIANDAY|2000|01|01}}}}</nowiki></tt> returns {{WEEKDAYNAME|{{JULIANDAY|2000|01|01}}}}.
=== Examples for all standard English week day names ===
: <tt><nowiki>{{WEEKDAYNAME|MONDAY}}</nowiki></tt> returns {{WEEKDAYNAME|MONDAY}}
: <tt><nowiki>{{WEEKDAYNAME|TUESDAY}}</nowiki></tt> returns {{WEEKDAYNAME|TUESDAY}}
: <tt><nowiki>{{WEEKDAYNAME|WEDNESDAY}}</nowiki></tt> returns {{WEEKDAYNAME|WEDNESDAY}}
: <tt><nowiki>{{WEEKDAYNAME|THURSDAY}}</nowiki></tt> returns {{WEEKDAYNAME|THURSDAY}}
: <tt><nowiki>{{WEEKDAYNAME|FRIDAY}}</nowiki></tt> returns {{WEEKDAYNAME|FRIDAY}}
: <tt><nowiki>{{WEEKDAYNAME|SATURDAY}}</nowiki></tt> returns {{WEEKDAYNAME|SATURDAY}}
: <tt><nowiki>{{WEEKDAYNAME|SUNDAY}}</nowiki></tt> returns {{WEEKDAYNAME|SUNDAY}}
=== Examples for all abbreviated English week day names ===
: <tt><nowiki>{{WEEKDAYNAME|mon}}</nowiki></tt> returns {{WEEKDAYNAME|mon}}
: <tt><nowiki>{{WEEKDAYNAME|tue}}</nowiki></tt> returns {{WEEKDAYNAME|tue}}
: <tt><nowiki>{{WEEKDAYNAME|wed}}</nowiki></tt> returns {{WEEKDAYNAME|wed}}
: <tt><nowiki>{{WEEKDAYNAME|thu}}</nowiki></tt> returns {{WEEKDAYNAME|thu}}
: <tt><nowiki>{{WEEKDAYNAME|fri}}</nowiki></tt> returns {{WEEKDAYNAME|fri}}
: <tt><nowiki>{{WEEKDAYNAME|sat}}</nowiki></tt> returns {{WEEKDAYNAME|sat}}
: <tt><nowiki>{{WEEKDAYNAME|sun}}</nowiki></tt> returns {{WEEKDAYNAME|sun}}
=== Examples for all standard week day numbers ===
: <tt><nowiki>{{WEEKDAYNAME|0}}</nowiki></tt> returns {{WEEKDAYNAME|0}}
: <tt><nowiki>{{WEEKDAYNAME|1}}</nowiki></tt> returns {{WEEKDAYNAME|1}}
: <tt><nowiki>{{WEEKDAYNAME|2}}</nowiki></tt> returns {{WEEKDAYNAME|2}}
: <tt><nowiki>{{WEEKDAYNAME|3}}</nowiki></tt> returns {{WEEKDAYNAME|3}}
: <tt><nowiki>{{WEEKDAYNAME|4}}</nowiki></tt> returns {{WEEKDAYNAME|4}}
: <tt><nowiki>{{WEEKDAYNAME|5}}</nowiki></tt> returns {{WEEKDAYNAME|5}}
: <tt><nowiki>{{WEEKDAYNAME|6}}</nowiki></tt> returns {{WEEKDAYNAME|6}}
=== Examples for week day numbers with extra leading zero ===
: <tt><nowiki>{{WEEKDAYNAME|00}}</nowiki></tt> returns {{WEEKDAYNAME|00}}
: <tt><nowiki>{{WEEKDAYNAME|01}}</nowiki></tt> returns {{WEEKDAYNAME|01}}
: <tt><nowiki>{{WEEKDAYNAME|02}}</nowiki></tt> returns {{WEEKDAYNAME|02}}
: <tt><nowiki>{{WEEKDAYNAME|03}}</nowiki></tt> returns {{WEEKDAYNAME|03}}
: <tt><nowiki>{{WEEKDAYNAME|04}}</nowiki></tt> returns {{WEEKDAYNAME|04}}
: <tt><nowiki>{{WEEKDAYNAME|05}}</nowiki></tt> returns {{WEEKDAYNAME|05}}
: <tt><nowiki>{{WEEKDAYNAME|06}}</nowiki></tt> returns {{WEEKDAYNAME|06}}
=== Examples for week day number cyclic underflows and overflows, from computed values ===
: <tt><nowiki>{{WEEKDAYNAME|-701}}</nowiki></tt> returns {{WEEKDAYNAME|-701}}
: <tt><nowiki>{{WEEKDAYNAME|-700}}</nowiki></tt> returns {{WEEKDAYNAME|-700}}
: <tt><nowiki>{{WEEKDAYNAME|-699}}</nowiki></tt> returns {{WEEKDAYNAME|-699}}
: <tt><nowiki>{{WEEKDAYNAME|-7}}</nowiki></tt> returns {{WEEKDAYNAME|-7}}
: <tt><nowiki>{{WEEKDAYNAME|-6}}</nowiki></tt> returns {{WEEKDAYNAME|-6}}
: <tt><nowiki>{{WEEKDAYNAME|-5}}</nowiki></tt> returns {{WEEKDAYNAME|-5}}
: <tt><nowiki>{{WEEKDAYNAME|-4}}</nowiki></tt> returns {{WEEKDAYNAME|-4}}
: <tt><nowiki>{{WEEKDAYNAME|-3}}</nowiki></tt> returns {{WEEKDAYNAME|-3}}
: <tt><nowiki>{{WEEKDAYNAME|-2}}</nowiki></tt> returns {{WEEKDAYNAME|-2}}
: <tt><nowiki>{{WEEKDAYNAME|-1}}</nowiki></tt> returns {{WEEKDAYNAME|-1}}
: <tt><nowiki>{{WEEKDAYNAME|7}}</nowiki></tt> returns {{WEEKDAYNAME|7}}
: <tt><nowiki>{{WEEKDAYNAME|8}}</nowiki></tt> returns {{WEEKDAYNAME|8}}
: <tt><nowiki>{{WEEKDAYNAME|9}}</nowiki></tt> returns {{WEEKDAYNAME|9}}
: <tt><nowiki>{{WEEKDAYNAME|10}}</nowiki></tt> returns {{WEEKDAYNAME|10}}
: <tt><nowiki>{{WEEKDAYNAME|13}}</nowiki></tt> returns {{WEEKDAYNAME|13}}
: <tt><nowiki>{{WEEKDAYNAME|14}}</nowiki></tt> returns {{WEEKDAYNAME|14}}
: <tt><nowiki>{{WEEKDAYNAME|15}}</nowiki></tt> returns {{WEEKDAYNAME|15}}
: <tt><nowiki>{{WEEKDAYNAME|700}}</nowiki></tt> returns {{WEEKDAYNAME|700}}
: <tt><nowiki>{{WEEKDAYNAME|701}}</nowiki></tt> returns {{WEEKDAYNAME|701}}
: <tt><nowiki>{{WEEKDAYNAME|707}}</nowiki></tt> returns {{WEEKDAYNAME|707}}
=== See also ===
{{Calendar, clock, date and time computing templates}}
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>