ढाँचा:WEEKDAYNAME/doc

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
Jump to navigation Jump to search

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 शनिबार.
Examples for all standard English week day names:
{{WEEKDAYNAME|MONDAY}} returns सोमबार
{{WEEKDAYNAME|TUESDAY}} returns मङ्गलबार
{{WEEKDAYNAME|WEDNESDAY}} returns बुधबार
{{WEEKDAYNAME|THURSDAY}} returns विहीबार
{{WEEKDAYNAME|FRIDAY}} returns शुक्रबार
{{WEEKDAYNAME|SATURDAY}} returns शनिबार
{{WEEKDAYNAME|SUNDAY}} returns आइतबार
Examples for all abbreviated English week day names:
{{WEEKDAYNAME|mon}} returns सोमबार
{{WEEKDAYNAME|tue}} returns मङ्गलबार
{{WEEKDAYNAME|wed}} returns बुधबार
{{WEEKDAYNAME|thu}} returns विहीबार
{{WEEKDAYNAME|fri}} returns शुक्रबार
{{WEEKDAYNAME|sat}} returns शनिबार
{{WEEKDAYNAME|sun}} returns आइतबार
Examples for all standard week day numbers:
{{WEEKDAYNAME|0}} returns सोमबार
{{WEEKDAYNAME|1}} returns मङ्गलबार
{{WEEKDAYNAME|2}} returns बुधबार
{{WEEKDAYNAME|3}} returns विहीबार
{{WEEKDAYNAME|4}} returns शुक्रबार
{{WEEKDAYNAME|5}} returns शनिबार
{{WEEKDAYNAME|6}} returns आइतबार
Examples for week day numbers with extra leading zero:
{{WEEKDAYNAME|00}} returns सोमबार
{{WEEKDAYNAME|01}} returns मङ्गलबार
{{WEEKDAYNAME|02}} returns बुधबार
{{WEEKDAYNAME|03}} returns विहीबार
{{WEEKDAYNAME|04}} returns शुक्रबार
{{WEEKDAYNAME|05}} returns शनिबार
{{WEEKDAYNAME|06}} returns आइतबार
Examples for week day number cyclic underflows and overflows, from computed values:
{{WEEKDAYNAME|-701}} returns आइतबार
{{WEEKDAYNAME|-700}} returns सोमबार
{{WEEKDAYNAME|-699}} returns मङ्गलबार
{{WEEKDAYNAME|-7}} returns सोमबार
{{WEEKDAYNAME|-6}} returns मङ्गलबार
{{WEEKDAYNAME|-5}} returns बुधबार
{{WEEKDAYNAME|-4}} returns विहीबार
{{WEEKDAYNAME|-3}} returns शुक्रबार
{{WEEKDAYNAME|-2}} returns शनिबार
{{WEEKDAYNAME|-1}} returns आइतबार
{{WEEKDAYNAME|7}} returns सोमबार
{{WEEKDAYNAME|8}} returns मङ्गलबार
{{WEEKDAYNAME|9}} returns बुधबार
{{WEEKDAYNAME|10}} returns विहीबार
{{WEEKDAYNAME|13}} returns आइतबार
{{WEEKDAYNAME|14}} returns सोमबार
{{WEEKDAYNAME|15}} returns मङ्गलबार
{{WEEKDAYNAME|700}} returns सोमबार
{{WEEKDAYNAME|701}} returns मङ्गलबार
{{WEEKDAYNAME|707}} returns सोमबार
See also:
Template:WEEKDAYNUMBER
Template:WEEKDAYABBREV
Template:CURRENTWEEKDAYNAME