साँचा:Calendar/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

This template displays either a yearly or monthly calendar (from 1970-2037).

Parameters

month
To display a single month the parameter month must be defined. This parameter can be a month name or number, the current month use month=current (next and last are also accepted).
year
The parameter year sets the year of the calendar the default being the current year.
format
To start the week on Monday use either format=Mon1st or, to include ISO week numbers, format=iso. The keywords are case-sensitive.

साँचा:calendar

show_year
To display the year use show_year=on. To show the year after the month use show_year=with month.
txt_pref_m
This adds a prefix to the month name.
txt_suff_m
This adds a suffix to the month name.
float
To float the calendar left or right use float=left or float=right.
lk
To link days, months and years use lk=on.
To link days and months use lk=dm.
To link months and years use lk=my.
To link days and years use lk=dy.
To link days only use lk=d.
To link months only use lk=m.
To link years only use lk=y.
lk_pref
This adds a prefix to all links.
lk_pref_d
This adds a prefix to day links.
lk_pref_m
This adds a prefix to month links.
lk_pref_mnext
This adds a prefix to the next month's link.
lk_pref_mprev
This adds a prefix to the previous month's link.
lk_suff
This adds a suffix to all links.
lk_suff_d
This adds a suffix to day links.
lk_suff_m
This adds a suffix to month links.
lk_suff_mnext
This adds a suffix to the next month's link.
lk_suff_mprev
This adds a suffix to the previous month's link.
prevnext
To add links to the previous and next months use prevnext=on.
title_colour
Use this to change the background colour of the title bar with name of the month, and the bottom bar (e.g. title_colour=#2e8b57).
week_colour
Use this to change the colour of the bar listing the days of the week (e.g. week_colour=#2e8b57).
colour
This is shorthand for both of the above.
wknum_colour
Use this to change the background colour of the ISO week numbers, when using format=iso (e.g. wknum_colour=#2e8b57).
wk5253
Use wk5253=on to start the year with week 52/53, when using format=iso with a year calendar. The only use case for this, is when the year is unknown and it starts with a Saturday. See Common year starting on Saturday as an example.
EndNote
This adds text to the bottom bar.
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. click here to see a monthly parameter usage report for this template.

TemplateData for Calendar

साँचा:template other

Display a year or month calendar

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
Yearyear

the ordinal year number of the calendar

डिफ़ॉल्ट
current
संख्यासुझावित
Monthmonth

whether to display a single month instead of a whole year, and which one

डिफ़ॉल्ट
empty
उदाहरण
current, next, last, 1, January
स्ट्रिंगसुझावित
Show yearshow_year

whether to display the year number, and where

डिफ़ॉल्ट
on
उदाहरण
with month, off
बूलियनवैकल्पिक
Title texttitle

text in the top bar

सामग्रीवैकल्पिक
End noteEndNote

text in the bottom bar

सामग्रीवैकल्पिक
Week formatformat

The string to be trimmed and counted

डिफ़ॉल्ट
Sun1st
उदाहरण
iso, Mon1st
स्ट्रिंगवैकल्पिक
Months per rowcol

Display this many months per row (1, 3, 4 or 6 rows)

डिफ़ॉल्ट
4
उदाहरण
2, 3, 12
संख्यावैकल्पिक
Months per columnrow

Display this many months per column (3 or 4 cols). If set, overrides ‘col’ parameter.

डिफ़ॉल्ट
empty
उदाहरण
3, 4
संख्यावैकल्पिक
Float sidefloat

Horizontally align the calendar

डिफ़ॉल्ट
none
उदाहरण
right, left
स्ट्रिंगवैकल्पिक
Serial navigationprevnext

Add links to the previous and next months

उदाहरण
on
बूलियनवैकल्पिक
Background colorcolour

Default for Title and Week background

उदाहरण
#2E8B57
स्ट्रिंगवैकल्पिक
Title backgroundtitle_colour

change the background colour of the title bar with name of the month, and the bottom bar

उदाहरण
#2E8B57
स्ट्रिंगवैकल्पिक
Week backgroundweek_colour

change the colour of the bar listing the days of the week

उदाहरण
#2E8B57
स्ट्रिंगवैकल्पिक
ISO week numbers backgroundwknum_colour

change the colour of the bar listing the ISO week numbers

उदाहरण
#2E8B57
स्ट्रिंगवैकल्पिक
Fixed starting week workaroundwk5253

start the year with week 52/53, when the first day is a Saturday.

बूलियनवैकल्पिक
Month name prefixtxt_pref_m

Text to add before month names

रेखावैकल्पिक
Month name suffixtxt_suff_m

Text to add after month names

रेखावैकल्पिक
Linklk

whether to automatically link days (d), months (m) and years (y)

डिफ़ॉल्ट
off
उदाहरण
on = dmy, dm, my, dy, d, m, y
स्ट्रिंगवैकल्पिक
Link prefixlk_pref

Text to add before all links

रेखावैकल्पिक
Link suffixlk_suff

Text to add after all links

रेखावैकल्पिक
Day link prefixlk_pref_d

Text to add before links to days

रेखावैकल्पिक
Day link suffixlk_suff_d

Text to add after links to days

रेखावैकल्पिक
Month link prefixlk_pref_m

Text to add before links to months

रेखावैकल्पिक
Month link suffixlk_suff_m

Text to add after links to months

रेखावैकल्पिक
Next link prefixlk_pref_mnext

Text to add before the link to the next month (or year)

रेखावैकल्पिक
Next link suffixlk_suff_mnext

Text to add after the link to the next month (or year)

रेखावैकल्पिक
Previous link prefixlk_pref_mprev

Text to add before the link to the previous month (or year)

रेखावैकल्पिक
Previous link suffixlk_suff_mprev

Text to add after the link to the next month (or year)

रेखावैकल्पिक

Examples

{{calendar|lk=on|show_year=on|float=right|month=current}} produces the calendar above. The calendars below are produced by {{calendar}} and {{calendar|prevnext=true|format=iso|zero=0|row=3}}, respectively.

साँचा:calendar

साँचा:calendar

See also

साँचा:Calendar, clock, date and time computing templates