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