Difference between revisions of "Template:Calendar/Month"

From Geohashing
imported>Tjtrumpet2323
m (Usage)
imported>Tjtrumpet2323
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{ #ifexpr: {{{archive|0}}} = 1
{{Calendar/Sun1stMonthStart{{#time:D|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 +1 second}}
+
| {{Calendar/MonthArchiveMode|year={{{year|{{CURRENTYEAR}} }}}|month={{{month|{{CURRENTMONTH}} }}} }}
|cur_month=[[{{#time:Y-m|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}}|{{#time:F Y|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}}]]
+
| {{Calendar/MonthSelected|year={{{year|{{CURRENTYEAR}} }}}|month={{{month|{{CURRENTMONTH}} }}} }} }}</includeonly><noinclude>
|prev_month=[[{{#time:Y-m|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 last month}}|<<]]
 
|next_month=[[{{#time:Y-m|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 next month}}|>>]]
 
|01=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}}|1]]
 
|02=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-02}}|2]]
 
|03=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-03}}|3]]
 
|04=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-04}}|4]]
 
|05=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-05}}|5]]
 
|06=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-06}}|6]]
 
|07=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-07}}|7]]
 
|08=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-08}}|8]]
 
|09=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-09}}|9]]
 
|10=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-10}}|10]]
 
|11=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-11}}|11]]
 
|12=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-12}}|12]]
 
|13=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-13}}|13]]
 
|14=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-14}}|14]]
 
|15=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-15}}|15]]
 
|16=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-16}}|16]]
 
|17=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-17}}|17]]
 
|18=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-18}}|18]]
 
|19=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-19}}|19]]
 
|20=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-20}}|20]]
 
|21=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-21}}|21]]
 
|22=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-22}}|22]]
 
|23=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-23}}|23]]
 
|24=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-24}}|24]]
 
|25=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-25}}|25]]
 
|26=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-26}}|26]]
 
|27=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-27}}|27]]
 
|28=[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-28}}|28]]
 
|29={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 29|[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-29}}|29]]}} <!-- Suppress if does not exist -->
 
|30={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 30|[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-30}}|30]]}} <!-- Suppress if does not exist -->
 
|31={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 31|[[{{#time:Y-m-d|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-31}}|31]]}} <!-- Suppress if does not exist -->
 
}}</includeonly><noinclude>
 
 
== Description ==
 
== Description ==
 +
{{intricate}}
 
This template allows the display of any monthly calendar (from 1970-2037).
 
This template allows the display of any monthly calendar (from 1970-2037).
  
 
== Usage ==
 
== Usage ==
<nowiki>{{Calendar/Month}}</nowiki>: Displays the current month's calendar.
+
<code><nowiki>{{Calendar/Month}}</nowiki></code> Displays the current month's calendar.
  
 
'''Parameters:''' The following parameters can be used to display any calendar:
 
'''Parameters:''' The following parameters can be used to display any calendar:
 
*<code>year=''year''</code> (four digit year, e.g. year=2008, valid years are 1970-2037) - default = <code><nowiki>{{CURRENTYEAR}}</nowiki></code>
 
*<code>year=''year''</code> (four digit year, e.g. year=2008, valid years are 1970-2037) - default = <code><nowiki>{{CURRENTYEAR}}</nowiki></code>
 
*<code>month=''month''</code> (Full month name or number, e.g. month=March or month=03) - default = <code><nowiki>{{CURRENTMONTH}}</nowiki></code>
 
*<code>month=''month''</code> (Full month name or number, e.g. month=March or month=03) - default = <code><nowiki>{{CURRENTMONTH}}</nowiki></code>
 +
*<code>archive=1</code> Uses archive mode template which links to section anchor tags on a page, rather than individual date pages, as well as other superficial differences.</code>
  
 
== See also ==
 
== See also ==
[[wikipedia:Template:CalendarCustom|This template on Wikipedia]]
+
[[wikipedia:Template:CalendarCustom|A similar template on Wikipedia]]
 
</noinclude>
 
</noinclude>

Latest revision as of 02:39, 19 June 2008

Description

This template allows the display of any monthly calendar (from 1970-2037).

Usage

{{Calendar/Month}} Displays the current month's calendar.

Parameters: The following parameters can be used to display any calendar:

  • year=year (four digit year, e.g. year=2008, valid years are 1970-2037) - default = {{CURRENTYEAR}}
  • month=month (Full month name or number, e.g. month=March or month=03) - default = {{CURRENTMONTH}}
  • archive=1 Uses archive mode template which links to section anchor tags on a page, rather than individual date pages, as well as other superficial differences.

See also

A similar template on Wikipedia