Fyrimynd:WEEKDAYNAME/doc
Appearance
Hetta er ein dokumentatión undirsíða til Fyrimynd:WEEKDAYNAME. Hon inniheldur kunning um nýtsluna, bólkar og um annað innihald, ið ikki er við í uppruna fyrimynd síðuni. |
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:
- {{WEEKDAYNAME|day}}
- 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:
- {{WEEKDAYNAME|{{JULIANDAY|2000|01|01}}}} returns Leygardagur.
- Examples for all standard English week day names:
- {{WEEKDAYNAME|MONDAY}} returns Mánadagur
- {{WEEKDAYNAME|TUESDAY}} returns Týsdagur
- {{WEEKDAYNAME|WEDNESDAY}} returns Mikudagur
- {{WEEKDAYNAME|THURSDAY}} returns Hósdagur
- {{WEEKDAYNAME|FRIDAY}} returns Fríggjadagur
- {{WEEKDAYNAME|SATURDAY}} returns Leygardagur
- {{WEEKDAYNAME|SUNDAY}} returns Sunnudagur
- Examples for all abbreviated English week day names:
- {{WEEKDAYNAME|mon}} returns Mánadagur
- {{WEEKDAYNAME|tue}} returns Týsdagur
- {{WEEKDAYNAME|wed}} returns Mikudagur
- {{WEEKDAYNAME|thu}} returns Hósdagur
- {{WEEKDAYNAME|fri}} returns Fríggjadagur
- {{WEEKDAYNAME|sat}} returns Leygardagur
- {{WEEKDAYNAME|sun}} returns Sunnudagur
- Examples for all standard week day numbers:
- {{WEEKDAYNAME|0}} returns Mánadagur
- {{WEEKDAYNAME|1}} returns Týsdagur
- {{WEEKDAYNAME|2}} returns Mikudagur
- {{WEEKDAYNAME|3}} returns Hósdagur
- {{WEEKDAYNAME|4}} returns Fríggjadagur
- {{WEEKDAYNAME|5}} returns Leygardagur
- {{WEEKDAYNAME|6}} returns Sunnudagur
- Examples for week day numbers with extra leading zero:
- {{WEEKDAYNAME|00}} returns Mánadagur
- {{WEEKDAYNAME|01}} returns Týsdagur
- {{WEEKDAYNAME|02}} returns Mikudagur
- {{WEEKDAYNAME|03}} returns Hósdagur
- {{WEEKDAYNAME|04}} returns Fríggjadagur
- {{WEEKDAYNAME|05}} returns Leygardagur
- {{WEEKDAYNAME|06}} returns Sunnudagur
- Examples for week day number cyclic underflows and overflows, from computed values:
- {{WEEKDAYNAME|-701}} returns Sunnudagur
- {{WEEKDAYNAME|-700}} returns Mánadagur
- {{WEEKDAYNAME|-699}} returns Týsdagur
- {{WEEKDAYNAME|-7}} returns Mánadagur
- {{WEEKDAYNAME|-6}} returns Týsdagur
- {{WEEKDAYNAME|-5}} returns Mikudagur
- {{WEEKDAYNAME|-4}} returns Hósdagur
- {{WEEKDAYNAME|-3}} returns Fríggjadagur
- {{WEEKDAYNAME|-2}} returns Leygardagur
- {{WEEKDAYNAME|-1}} returns Sunnudagur
- {{WEEKDAYNAME|7}} returns Mánadagur
- {{WEEKDAYNAME|8}} returns Týsdagur
- {{WEEKDAYNAME|9}} returns Mikudagur
- {{WEEKDAYNAME|10}} returns Hósdagur
- {{WEEKDAYNAME|13}} returns Sunnudagur
- {{WEEKDAYNAME|14}} returns Mánadagur
- {{WEEKDAYNAME|15}} returns Týsdagur
- {{WEEKDAYNAME|700}} returns Mánadagur
- {{WEEKDAYNAME|701}} returns Týsdagur
- {{WEEKDAYNAME|707}} returns Mánadagur