Difference between revisions of "Template:ISOCALENDAR/doc"
Jump to navigation
Jump to search
imported>ساجد امجد ساجد |
imported>Jimp |
||
| Line 39: | Line 39: | ||
{{-}} | {{-}} | ||
| − | + | ====Example 5==== | |
| + | <code><nowiki>{{ISOCALENDAR|February 2021|y=2021|m=2}}</nowiki></code> | ||
| + | {{ISOCALENDAR|February 2021|y=2021|m=2}} | ||
| + | |||
| + | {{-}} | ||
| + | |||
=== See also === | === See also === | ||
* [[Meta:Template:Calendar]] | * [[Meta:Template:Calendar]] | ||
Revision as of 23:41, 30 May 2012
| This is a documentation subpage for Template:ISOCALENDAR. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
See examples below
Parametre
- y = Calendar year
- m = Calendar month (1-12)
- s = Width in percent of each column of day (optional, default is 10)
- cw = Week number in accordance with ISO 8601 (ISO week date) (optional)
- cdow = Weekday (1 = Monday, 7 = Sunday) in accordance with ISO 8601 (optional)
Example 1
(for comparison Template:Xpd0)
{{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}} gives:
| Week | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| W01 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
| W02 | 05 | 06 | 07 | 08 | 09 | 10 | 11 |
| W03 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| W04 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| W05 | 26 | 27 | 28 | 29 | 30 | 31 | 01 |
Example 2
(for comparison Template:Xpd3)
{{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}} gives:
| Week | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| W22 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
| W23 | 05 | 06 | 07 | 08 | 09 | 10 | 11 |
| W24 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| W25 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| W26 | 26 | 27 | 28 | 29 | 30 | 01 | 02 |
Example 3
{{ISOCALENDAR|{{monthname|1}} 2007|y=2007|m=1|s=10}}
| Week | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| W01 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
| W02 | 08 | 09 | 10 | 11 | 12 | 13 | 14 |
| W03 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| W04 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| W05 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
Example 4
{{ISOCALENDAR|{{monthname|12}} 2008|y=2008|m=12|s=10|cw=01|cdow=3}}
| Week | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| W49 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
| W50 | 08 | 09 | 10 | 11 | 12 | 13 | 14 |
| W51 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| W52 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| W01 | 29 | 30 | 31 | 01 | 02 | 03 | 04 |
Example 5
{{ISOCALENDAR|February 2021|y=2021|m=2}}
| Week | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| W05 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
| W06 | 08 | 09 | 10 | 11 | 12 | 13 | 14 |
| W07 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| W08 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
See also
- Meta:Template:Calendar
- Template:Calendar
- Template:CURRENTCALENDAR
- Template:CURRENTISOYEAR Template:Xpd0
- Template:CURRENTISOWEEK Template:Xpd0
- Template:CURRENTISOWEEKDAY Template:Xpd0
- Template:CURRENTWEEKDATE Template:Xpd0
- Template:ISOWEEKDATE - Template:Xpd3 The opposite function of {{ISOWEEKDATE2YMD}}
- Template:ISOWEEKDATE2YMD - Template:Xpd3 The opposite function of {{ISOWEEKDATE}}