Difference between revisions of "Template:ISOCALENDAR/doc"
imported>Nsaa (created) |
imported>Nsaa (<code>) |
||
| Line 14: | Line 14: | ||
====Example 1==== | ====Example 1==== | ||
{{evd|CURRENTWEEKDATE}} <br /> <br /> | {{evd|CURRENTWEEKDATE}} <br /> <br /> | ||
| − | <nowiki>{{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}}</nowiki> gives: | + | <code><nowiki>{{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}}</nowiki></code> gives: |
{{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}} | {{ISOCALENDAR|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|y={{CURRENTYEAR}}|m={{CURRENTMONTH}}|cw={{CURRENTISOWEEK}}|cdow={{CURRENTISOWEEKDAY}}}} | ||
| Line 21: | Line 21: | ||
====Example 2==== | ====Example 2==== | ||
{{evd|ISOWEEKDATE|2006|06|10}}<br /> <br /> | {{evd|ISOWEEKDATE|2006|06|10}}<br /> <br /> | ||
| − | <nowiki>{{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}}</nowiki> gives: | + | <code><nowiki>{{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}}</nowiki></code> gives: |
{{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}} | {{ISOCALENDAR|{{monthname|6}} 2006 |y=2006|m=6|s=10|cw=23|cdow=6}} | ||
Revision as of 14:46, 12 July 2008
| 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 = Calendar day (1-31)
- cw = Week number in accordance with ISO 8601 (ISO week date)
- cdow = Weekday (1 = Monday, 7 = Sunday) in accordance with ISO 8601
Example 1
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
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
| 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. |
Usage
See examples below
Parametre
- y = Calendar year
- m = Calendar month (1-12)
- s = Calendar day (1-31)
- cw = Week number in accordance with ISO 8601 (ISO week date)
- cdow = Weekday (1 = Monday, 7 = Sunday) in accordance with ISO 8601
Example 1
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
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
Template loop detected: Template:ISOCALENDAR/doc
Example 4
Template:Xpd3 Template loop detected: Template:ISOCALENDAR/doc
See also
- MediaWiki: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}}
Example 4
| 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. |
Usage
See examples below
Parametre
- y = Calendar year
- m = Calendar month (1-12)
- s = Calendar day (1-31)
- cw = Week number in accordance with ISO 8601 (ISO week date)
- cdow = Weekday (1 = Monday, 7 = Sunday) in accordance with ISO 8601
Example 1
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
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
Template loop detected: Template:ISOCALENDAR/doc
Example 4
Template:Xpd3 Template loop detected: Template:ISOCALENDAR/doc
See also
- MediaWiki: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}}
See also
- MediaWiki: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}}