ਫਰਮਾ:ISOCALENDAR/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਅਜ਼ਾਦ ਗਿਆਨਕੋਸ਼ ਤੋਂ

Parameters[ਸੋਧੋ]

1 title
y calendar year
m calendar month
s width in percent of each column of day (default is 10)
cw week number to highlight
cdow weekday to highlight

All parameters are optional.

  • m and cdow may be fully spelt out, abbreviated or numeric.
  • The numbering for cw and cdow is in accordance with ISO 8601 (ISO week date: Monday → 1, Tuesday → 2, ... Sunday → 7)

Output[ਸੋਧੋ]

Title[ਸੋਧੋ]

The calendar title is determined by 1 (the first unnamed parameter), the default is the month and year of the calendar displayed.

Month[ਸੋਧੋ]

The month of the calendar displayed is determined by m.

  • If m is specified, then the year can be specified with y, the default is the current year.
  • If m is not specified but 1 is a valid time the month and/or year is set to match the title, the default is the current month and/or year.

Highlighting[ਸੋਧੋ]

By default the current day is highlighted. To highlight (an)other day(s) use cw and cdow. cw gives the week and cdow the day of the week to be highlighted.

  • Together they determine a specific day to be highlighted.
  • cw alone will highlight the whole week.
  • cdow alone will highlight the given weeek day for the whole month.

Examples[ਸੋਧੋ]

Displaying the current month[ਸੋਧੋ]

To display the current month use {{ISOCALENDAR}}.

ਮਈ 2024
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ18 29 30 01 02 03 04 05
ਹ19 06 07 08 09 10 11 12
ਹ20 13 14 15 16 17 18 19
ਹ21 20 21 22 23 24 25 26
ਹ22 27 28 29 30 31 01 02

Displaying a given month of the current year[ਸੋਧੋ]

A given month of this year can be specified with 1 like this {{ISOCALENDAR|August}}. Alternatively m can be used e.g. {{ISOCALENDAR|m=Sep}}. Perhaps you want a different title e.g. {{ISOCALENDAR|This November|m=11|y=2006}}.

August
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ31 29 30 31 01 02 03 04
ਹ32 05 06 07 08 09 10 11
ਹ33 12 13 14 15 16 17 18
ਹ34 19 20 21 22 23 24 25
ਹ35 26 27 28 29 30 31 01
ਸਤੰਬਰ 2024
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ35 26 27 28 29 30 31 01
ਹ36 02 03 04 05 06 07 08
ਹ37 09 10 11 12 13 14 15
ਹ38 16 17 18 19 20 21 22
ਹ39 23 24 25 26 27 28 29
ਹ40 30 01 02 03 04 05 06
This November
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ44 28 29 30 31 01 02 03
ਹ45 04 05 06 07 08 09 10
ਹ46 11 12 13 14 15 16 17
ਹ47 18 19 20 21 22 23 24
ਹ48 25 26 27 28 29 30 01

Displaying a given month of a given year[ਸੋਧੋ]

A given month and year can be specified with 1 like this {{ISOCALENDAR|May 2006}}. Alternatively m and y can be used e.g. {{ISOCALENDAR|m=June|y=2006}}. Perhaps you want a different title e.g. {{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}.

May 2006
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ18 01 02 03 04 05 06 07
ਹ19 08 09 10 11 12 13 14
ਹ20 15 16 17 18 19 20 21
ਹ21 22 23 24 25 26 27 28
ਹ22 29 30 31 01 02 03 04
ਜੂਨ 2006
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ22 29 30 31 01 02 03 04
ਹ23 05 06 07 08 09 10 11
ਹ24 12 13 14 15 16 17 18
ਹ25 19 20 21 22 23 24 25
ਹ26 26 27 28 29 30 01 02
Quintilis MMVI
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ18 01 02 03 04 05 06 07
ਹ19 08 09 10 11 12 13 14
ਹ20 15 16 17 18 19 20 21
ਹ21 22 23 24 25 26 27 28
ਹ22 29 30 31 01 02 03 04

Highlight a week, a day of the week or a day[ਸੋਧੋ]

You can highlight Saturday of week 3 in January 2021 using {{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}. You can highlight all of week 6 in February 2021 using {{ISOCALENDAR|February 2021|cw=23}} You can highlight all Thursdays of March 2021 using{{ISOCALENDAR|March 2021|cdow=4}}

January 2021
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ53 28 29 30 31 01 02 03
ਹ01 04 05 06 07 08 09 10
ਹ02 11 12 13 14 15 16 17
ਹ03 18 19 20 21 22 23 24
ਹ04 25 26 27 28 29 30 31
February 2021
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ05 01 02 03 04 05 06 07
ਹ06 08 09 10 11 12 13 14
ਹ07 15 16 17 18 19 20 21
ਹ08 22 23 24 25 26 27 28
March 2021
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ09 01 02 03 04 05 06 07
ਹ10 08 09 10 11 12 13 14
ਹ11 15 16 17 18 19 20 21
ਹ12 22 23 24 25 26 27 28
ਹ13 29 30 31 01 02 03 04

Adjusting the width[ਸੋਧੋ]

{{ISOCALENDAR|s=14}} gives

ਮਈ 2024
ਹਫ਼ਤਾ ਸੋਮ ਮੰਗਲ ਬੁੱਧ ਵੀਰ ਸ਼ੁੱਕਰ ਸ਼ਨੀ ਐਤ
ਹ18 29 30 01 02 03 04 05
ਹ19 06 07 08 09 10 11 12
ਹ20 13 14 15 16 17 18 19
ਹ21 20 21 22 23 24 25 26
ਹ22 27 28 29 30 31 01 02

Sub-templates[ਸੋਧੋ]

The main Template:ISOCALENDAR calls