Changes
Jump to navigation
Jump to search
m
clean up, replaced: {{-}} → {{clear}} (4) using AWB (12084)
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
==Parameters==
{|class=wikitable
|-
! 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.
*<code>m</code> and <code>cdow</code> may be fully spelt out, abbreviated or numeric.
*The numbering for <code>cw</code> and <code>cdow</code> is in accordance with [[ISO 8601]] ([[ISO week date]]: Monday → 1, Tuesday → 2, ... Sunday → 7)
==Output==
===Title===
The calendar title is determined by <code>1</code> (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 <code>m</code>.
*If <code>m</code> is specified, then the year can be specified with <code>y</code>, the default is the current year.
*If <code>m</code> is not specified but <code>1</code> 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 <code>cw</code> and <code>cdow</code>. <code>cw</code> gives the week and <code>cdow</code> the day of the week to be highlighted.
*Together they determine a specific day to be highlighted.
*<code>cw</code> alone will highlight the whole week.
*<code>cdow</code> alone will highlight the given weeek day for the whole month.
==Examples==
===Displaying the current month===
To display the current month use <code><nowiki>{{ISOCALENDAR}}</nowiki></code>.
{{ISOCALENDAR}}
{{clear}}
===Displaying a given month of the current year===
A given month of this year can be specified with <code>1</code> like this <code><nowiki>{{ISOCALENDAR|August}}</nowiki></code>. Alternatively <code>m</code> can be used e.g. <code><nowiki>{{ISOCALENDAR|m=Sep}}</nowiki></code>. Perhaps you want a different title e.g. <code><nowiki>{{ISOCALENDAR|This November|m=11|y=2006}}</nowiki></code>.
{{ISOCALENDAR|August}}
{{ISOCALENDAR|m=Sep}}
{{ISOCALENDAR|This November|m=11}}
{{clear}}
===Displaying a given month of a given year===
A given month and year can be specified with <code>1</code> like this <code><nowiki>{{ISOCALENDAR|May 2006}}</nowiki></code>. Alternatively <code>m</code> and <code>y</code> can be used e.g. <code><nowiki>{{ISOCALENDAR|m=June|y=2006}}</nowiki></code>. Perhaps you want a different title e.g. <code><nowiki>{{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}</nowiki></code>.
{{ISOCALENDAR|May 2006}}
{{ISOCALENDAR|m=June|y=2006}}
{{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}
{{clear}}
===Highlight a week, a day of the week or a day===
You can highlight Saturday of week 3 in January 2021 using <code><nowiki>{{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}</nowiki></code>. You can highlight all of week 6 in February 2021 using <code><nowiki>{{ISOCALENDAR|February 2021|cw=23}}</nowiki></code> You can highlight all Thursdays of March 2021 using<code><nowiki>{{ISOCALENDAR|March 2021|cdow=4}}</nowiki></code>
{{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}
{{ISOCALENDAR|February 2021|cw=6}}
{{ISOCALENDAR|March 2021|cdow=4}}
{{clear}}
===Adjusting the width===
<code><nowiki>{{ISOCALENDAR|s=14}}</nowiki></code> gives
{{ISOCALENDAR|s=14}}
== Sub-templates ==
The main [[Template:ISOCALENDAR]] calls
* [[Template:ISOCALENDAR/month|/month]]
* [[Template:ISOCALENDAR/week|/week]]
* [[Template:ISOCALENDAR/day|/day]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Calendar templates|{{PAGENAME}}]]
[[Category:Date-computing templates|{{PAGENAME}}]]
[[Category:ISO date templates|{{PAGENAME}}]]
</includeonly>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
==Parameters==
{|class=wikitable
|-
! 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.
*<code>m</code> and <code>cdow</code> may be fully spelt out, abbreviated or numeric.
*The numbering for <code>cw</code> and <code>cdow</code> is in accordance with [[ISO 8601]] ([[ISO week date]]: Monday → 1, Tuesday → 2, ... Sunday → 7)
==Output==
===Title===
The calendar title is determined by <code>1</code> (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 <code>m</code>.
*If <code>m</code> is specified, then the year can be specified with <code>y</code>, the default is the current year.
*If <code>m</code> is not specified but <code>1</code> 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 <code>cw</code> and <code>cdow</code>. <code>cw</code> gives the week and <code>cdow</code> the day of the week to be highlighted.
*Together they determine a specific day to be highlighted.
*<code>cw</code> alone will highlight the whole week.
*<code>cdow</code> alone will highlight the given weeek day for the whole month.
==Examples==
===Displaying the current month===
To display the current month use <code><nowiki>{{ISOCALENDAR}}</nowiki></code>.
{{ISOCALENDAR}}
{{clear}}
===Displaying a given month of the current year===
A given month of this year can be specified with <code>1</code> like this <code><nowiki>{{ISOCALENDAR|August}}</nowiki></code>. Alternatively <code>m</code> can be used e.g. <code><nowiki>{{ISOCALENDAR|m=Sep}}</nowiki></code>. Perhaps you want a different title e.g. <code><nowiki>{{ISOCALENDAR|This November|m=11|y=2006}}</nowiki></code>.
{{ISOCALENDAR|August}}
{{ISOCALENDAR|m=Sep}}
{{ISOCALENDAR|This November|m=11}}
{{clear}}
===Displaying a given month of a given year===
A given month and year can be specified with <code>1</code> like this <code><nowiki>{{ISOCALENDAR|May 2006}}</nowiki></code>. Alternatively <code>m</code> and <code>y</code> can be used e.g. <code><nowiki>{{ISOCALENDAR|m=June|y=2006}}</nowiki></code>. Perhaps you want a different title e.g. <code><nowiki>{{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}</nowiki></code>.
{{ISOCALENDAR|May 2006}}
{{ISOCALENDAR|m=June|y=2006}}
{{ISOCALENDAR|Quintilis MMVI|m=5|y=2006}}
{{clear}}
===Highlight a week, a day of the week or a day===
You can highlight Saturday of week 3 in January 2021 using <code><nowiki>{{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}</nowiki></code>. You can highlight all of week 6 in February 2021 using <code><nowiki>{{ISOCALENDAR|February 2021|cw=23}}</nowiki></code> You can highlight all Thursdays of March 2021 using<code><nowiki>{{ISOCALENDAR|March 2021|cdow=4}}</nowiki></code>
{{ISOCALENDAR|January 2021|cw=3|cdow=Sat}}
{{ISOCALENDAR|February 2021|cw=6}}
{{ISOCALENDAR|March 2021|cdow=4}}
{{clear}}
===Adjusting the width===
<code><nowiki>{{ISOCALENDAR|s=14}}</nowiki></code> gives
{{ISOCALENDAR|s=14}}
== Sub-templates ==
The main [[Template:ISOCALENDAR]] calls
* [[Template:ISOCALENDAR/month|/month]]
* [[Template:ISOCALENDAR/week|/week]]
* [[Template:ISOCALENDAR/day|/day]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Calendar templates|{{PAGENAME}}]]
[[Category:Date-computing templates|{{PAGENAME}}]]
[[Category:ISO date templates|{{PAGENAME}}]]
</includeonly>