Template:Calendar

Da Wikipedia
Template documentation[view] [edit] [history] [purge]

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

Parameters[muda l codesc]

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/isoMonthStartFal: orar nia coret |float=right |clear=none |titlestyle= |weekstyle= |wknumstyle= |wk5253= |month=Fal: orar nia coret |cur_month=[[Fal: orar nia coret]] |prev_month= |next_month= |6row= |01=[[Fal: orar nia coret 1|01]] |02=[[Fal: orar nia coret 2|02]] |03=[[Fal: orar nia coret 3|03]] |04=[[Fal: orar nia coret 4|04]] |05=[[Fal: orar nia coret 5|05]] |06=[[Fal: orar nia coret 6|06]] |07=[[Fal: orar nia coret 7|07]] |08=[[Fal: orar nia coret 8|08]] |09=[[Fal: orar nia coret 9|09]] |10=[[Fal: orar nia coret 10|10]] |11=[[Fal: orar nia coret 11|11]] |12=[[Fal: orar nia coret 12|12]] |13=[[Fal: orar nia coret 13|13]] |14=[[Fal: orar nia coret 14|14]] |15=[[Fal: orar nia coret 15|15]] |16=[[Fal: orar nia coret 16|16]] |17=[[Fal: orar nia coret 17|17]] |18=[[Fal: orar nia coret 18|18]] |19=[[Fal: orar nia coret 19|19]] |20=[[Fal: orar nia coret 20|20]] |21=[[Fal: orar nia coret 21|21]] |22=[[Fal: orar nia coret 22|22]] |23=[[Fal: orar nia coret 23|23]] |24=[[Fal: orar nia coret 24|24]] |25=[[Fal: orar nia coret 25|25]] |26=[[Fal: orar nia coret 26|26]] |27=[[Fal: orar nia coret 27|27]] |28=[[Fal: orar nia coret 28|28]] |29=Fal tl'espresciun: operadú < nia aspeté. |30=Fal tl'espresciun: operadú < nia aspeté. |31=Fal tl'espresciun: operadú < nia aspeté. |wk01=01|wk02=02|wk03=03|wk04=04|wk05=05|wk06=06|wk07=07|wk08=08|wk09=09 |wk10=10|wk11=11|wk12=12|wk13=13|wk14=14|wk15=15|wk16=16|wk17=17|wk18=18|wk19=19 |wk20=20|wk21=21|wk22=22|wk23=23|wk24=24|wk25=25|wk26=26|wk27=27|wk28=28|wk29=29 |wk30=30|wk31=31|wk32=32|wk33=33|wk34=34|wk35=35|wk36=36|wk37=37|wk38=38|wk39=39 |wk40=40|wk41=41|wk42=42|wk43=43|wk44=44|wk45=45|wk46=46|wk47=47|wk48=48|wk49=49 |wk50=50|wk51=51|wk52=52|wk53=53 |year=2022 |show_year=on |lk=on |EndNote= }}

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 based on this TemplateData.

TemplateData for Calendar

Display a year or month calendar

[Modifica dati del modello]

Parametri template

ParametroDescrizioneTipoStato
Yearyear

the ordinal year number of the calendar

Predefinito
current
Numeroconsigliato
Monthmonth

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

Predefinito
empty
Esempio
current, next, last, 1, January
Stringaconsigliato
Show yearshow_year

whether to display the year number, and where

Predefinito
on
Esempio
with month, off
Booleanofacoltativo
Title texttitle

text in the top bar

Contenutofacoltativo
End noteEndNote

text in the bottom bar

Contenutofacoltativo
Week formatformat

The string to be trimmed and counted

Predefinito
Sun1st
Esempio
iso, Mon1st
Stringafacoltativo
Months per rowcol

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

Predefinito
4
Esempio
2, 3, 12
Numerofacoltativo
Months per columnrow

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

Predefinito
empty
Esempio
3, 4
Numerofacoltativo
Float sidefloat

Horizontally align the calendar

Predefinito
none
Esempio
right, left
Stringafacoltativo
Serial navigationprevnext

Add links to the previous and next months

Esempio
on
Booleanofacoltativo
Background colorcolour

Default for Title and Week background

Esempio
#2E8B57
Stringafacoltativo
Title backgroundtitle_colour

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

Esempio
#2E8B57
Stringafacoltativo
Week backgroundweek_colour

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

Esempio
#2E8B57
Stringafacoltativo
ISO week numbers backgroundwknum_colour

change the colour of the bar listing the ISO week numbers

Esempio
#2E8B57
Stringafacoltativo
Fixed starting week workaroundwk5253

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

Booleanofacoltativo
Month name prefixtxt_pref_m

Text to add before month names

Lineafacoltativo
Month name suffixtxt_suff_m

Text to add after month names

Lineafacoltativo
Linklk

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

Predefinito
off
Esempio
on = dmy, dm, my, dy, d, m, y
Stringafacoltativo
Link prefixlk_pref

Text to add before all links

Lineafacoltativo
Link suffixlk_suff

Text to add after all links

Lineafacoltativo
Day link prefixlk_pref_d

Text to add before links to days

Lineafacoltativo
Day link suffixlk_suff_d

Text to add after links to days

Lineafacoltativo
Month link prefixlk_pref_m

Text to add before links to months

Lineafacoltativo
Month link suffixlk_suff_m

Text to add after links to months

Lineafacoltativo
Next link prefixlk_pref_mnext

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

Lineafacoltativo
Next link suffixlk_suff_mnext

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

Lineafacoltativo
Previous link prefixlk_pref_mprev

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

Lineafacoltativo
Previous link suffixlk_suff_mprev

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

Lineafacoltativo

Examples[muda l codesc]

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

2022
jené
du lu me mi ju sa
01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31  
fauré
du lu me mi ju sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28  
 
merz
du lu me mi ju sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31  
 
auril
du lu me mi ju sa
01 02
03 04 05 06 07 08 09
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
 
mei
du lu me mi ju sa
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31  
 
Juni
du lu me mi ju sa
01 02 03 04
05 06 07 08 09 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30  
 
lugio
du lu me mi ju sa
01 02
03 04 05 06 07 08 09
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31  
agost
du lu me mi ju sa
01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31  
 
setëmber
du lu me mi ju sa
01 02 03
04 05 06 07 08 09 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
 
utober
du lu me mi ju sa
01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31  
nuvëmber
du lu me mi ju sa
01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30  
 
dezëmber
du lu me mi ju sa
01 02 03
04 05 06 07 08 09 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 
2022
jené
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02
{{{wkFal: orar nia coret}}} 03 04 05 06 07 08 09
{{{wkFal: orar nia coret}}} 10 11 12 13 14 15 16
{{{wkFal: orar nia coret}}} 17 18 19 20 21 22 23
{{{wkFal: orar nia coret}}} 24 25 26 27 28 29 30
{{{wkFal: orar nia coret}}} 31  
fauré
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04 05 06
{{{wkFal: orar nia coret}}} 07 08 09 10 11 12 13
{{{wkFal: orar nia coret}}} 14 15 16 17 18 19 20
{{{wkFal: orar nia coret}}} 21 22 23 24 25 26 27
{{{wkFal: orar nia coret}}} 28  
   
merz
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04 05 06
{{{wkFal: orar nia coret}}} 07 08 09 10 11 12 13
{{{wkFal: orar nia coret}}} 14 15 16 17 18 19 20
{{{wkFal: orar nia coret}}} 21 22 23 24 25 26 27
{{{wkFal: orar nia coret}}} 28 29 30 31  
   
auril
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03
{{{wkFal: orar nia coret}}} 04 05 06 07 08 09 10
{{{wkFal: orar nia coret}}} 11 12 13 14 15 16 17
{{{wkFal: orar nia coret}}} 18 19 20 21 22 23 24
{{{wkFal: orar nia coret}}} 25 26 27 28 29 30
   
mei
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01
{{{wkFal: orar nia coret}}} 02 03 04 05 06 07 08
{{{wkFal: orar nia coret}}} 09 10 11 12 13 14 15
{{{wkFal: orar nia coret}}} 16 17 18 19 20 21 22
{{{wkFal: orar nia coret}}} 23 24 25 26 27 28 29
{{{wkFal: orar nia coret}}} 30 31  
Juni
Wk lu me mi ju sa du
22 01 02 03 04 05
23 06 07 08 09 10 11 12
24 13 14 15 16 17 18 19
25 20 21 22 23 24 25 26
26 27 28 29 30  
   
lugio
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03
{{{wkFal: orar nia coret}}} 04 05 06 07 08 09 10
{{{wkFal: orar nia coret}}} 11 12 13 14 15 16 17
{{{wkFal: orar nia coret}}} 18 19 20 21 22 23 24
{{{wkFal: orar nia coret}}} 25 26 27 28 29 30 31
   
agost
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04 05 06 07
{{{wkFal: orar nia coret}}} 08 09 10 11 12 13 14
{{{wkFal: orar nia coret}}} 15 16 17 18 19 20 21
{{{wkFal: orar nia coret}}} 22 23 24 25 26 27 28
{{{wkFal: orar nia coret}}} 29 30 31  
   
setëmber
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04
{{{wkFal: orar nia coret}}} 05 06 07 08 09 10 11
{{{wkFal: orar nia coret}}} 12 13 14 15 16 17 18
{{{wkFal: orar nia coret}}} 19 20 21 22 23 24 25
{{{wkFal: orar nia coret}}} 26 27 28 29 30  
   
utober
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02
{{{wkFal: orar nia coret}}} 03 04 05 06 07 08 09
{{{wkFal: orar nia coret}}} 10 11 12 13 14 15 16
{{{wkFal: orar nia coret}}} 17 18 19 20 21 22 23
{{{wkFal: orar nia coret}}} 24 25 26 27 28 29 30
{{{wkFal: orar nia coret}}} 31  
nuvëmber
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04 05 06
{{{wkFal: orar nia coret}}} 07 08 09 10 11 12 13
{{{wkFal: orar nia coret}}} 14 15 16 17 18 19 20
{{{wkFal: orar nia coret}}} 21 22 23 24 25 26 27
{{{wkFal: orar nia coret}}} 28 29 30  
   
dezëmber
Wk lu me mi ju sa du
{{{wkFal: orar nia coret}}} 01 02 03 04
{{{wkFal: orar nia coret}}} 05 06 07 08 09 10 11
{{{wkFal: orar nia coret}}} 12 13 14 15 16 17 18
{{{wkFal: orar nia coret}}} 19 20 21 22 23 24 25
{{{wkFal: orar nia coret}}} 26 27 28 29 30 31  
   

See also[muda l codesc]

Multiple units of time[muda l codesc]

Type Adjustable Current Last Next
Date and time {{time}} {{Currentdate}} (MDY)
{{Plain now}} (DMY)
{{Now}} (DMY in a complete sentence)
{{Simple now}}
Date only {{Dateonly}}
{{Datedow}}
(Has the day of the week)
{{Date}} (Chose format)
{{DATE}} (prefixed by date=)
{{TODAY}} (DMY)
{{Yesterday}}
{{Day-1}}
{{Tomorrow}}
{{Day+1}}
Time only {{Timeonly}} {{CURRENTTIME}} (12 h format)
{{CURRENTTIME24}} (24 h format)
Banners {{Right now}}
(Blue with time and number of Wikipedia articles)
Timestamp {{Timestamp}}
(Format YYYYMMDDhhmmss)

Single units of time[muda l codesc]

Unit of time Adjustable Current Last Next
SECOND {{CURRENTSECOND}}
MINUTE {{CURRENTMINUTE}}
HOUR Template:Mwl
WEEK Template:Mwl
{{CURRENTWEEKOFMONTH}}
Day of Week {{Dow}} Template:Mwl
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
MONTH {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
Template:Mwl
Template:Mwl
Template:Mwl
{{CURRENTMONTHDAYS}}
{{LASTMONTHNAME}} {{NEXTMONTHNAME}}
Day of Month Template:Mwl
Template:Mwl (zero padded)
YEAR {{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
Template:Mwl
{{LASTYEAR}} {{NEXTYEAR}}
Day of Year {{CURRENTDAYOFYEAR}}
DECADE {{DECADE}} {{CURRENTDECADE}}
CENTURY {{CENTURY}} {{CURRENTCENTURY}}
MILLENNIUM {{MILLENNIUM}}

Date and time templates made for substitution:[muda l codesc]

Month:
{{Lmonth}} produces Template:Lmonth
{{Nmonth}} produces Template:Nmonth
{{LastMonth}} produces Template:LastMonth
{{NextMonth}} produces Template:NextMonth


Individual templates[muda l codesc]

Categories of templates[muda l codesc]