Difference between revisions 422941742 and 458537173 on enwiki

{{Documentation subpage}}{{esoteric}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
__NOTOC__
== Usage ==
This template displays an October calendar for a specified year from 1970 to 2037 (it defaults to the current year).
Calls [[Template:Calendar/Sun1stMonthStart{{#time:D|{{CURRENTYEAR}}1001}}]] or one of its sister templates, with the starting day for the calendar calculated using #time.

==Optional parameters==
===Year===
{| class="wikitable"
! style="text-align: left" | Parameter
! style="text-align: left" | Explanation
|- 
|'''year'''
| The four digit year of the specified year to be displayed (e.g.&nbsp;<code>year=2008</code>). Valid years are 1970–2037 (due to technical restrictions regarding [[Unix time]]) . The template currently defaults to <nowiki>{{CURRENTYEAR}}</nowiki>.
|}

===Layout===
The following parameters can be used to change the layout of the calendar:
{| class="wikitable"
! style="text-align: left" | Parameter
! style="text-align: left" | Explanation
|- 
| '''float'''
| Use to float the calendar left or right (e.g.&nbsp;<code>float=left</code> or <code>float=right</code>). It defaults to <code>float=none</code>.
|-
| '''color'''
| Use to change the default background color of the title bar with name of the month, and the bottom bar (e.g.&nbsp;<code>color=#2e8b57</code>).
|-
| '''color2'''
| Use to change the default background color of the bar listing the days of the week (e.g.&nbsp;<code>color2=#2e8b57</code>).
|}

===Parameters to change the displayed links===
The template contains the following default links:
*The Month links to the specified month's respective article.
*The left arrows link to the previous month's respective article.
*The right arrows link to the next month's respective article.
*The days link to each ''day’s'' respective article.
*The bottom bar shows a [[Help:Piped link|piped link]] that points to the specified month's respective article, but displays Roman numerals without looking redundant with the<br />Arabic-numeral expression of the year at the top.

The following parameters can be used to change the links on the calendar:<br>
<small>(they are backward compatible with the ones used on the old <nowiki>{{</nowiki>JanuaryCalendar2008Source}}, etc. templates that were used before #time and the other parserfunctions were implemented)</small>
{| class="wikitable"
! style="text-align: left" | Parameter
! style="text-align: left" | Explanation
|-
| '''1'''
| Adds a prefix to the days links.
|-
| '''1a'''
| Adds a prefix to the links to the current month, previous month and the next month.
|-
| '''2'''
| Adds a prefix to the link label in the piped link displaying the current month.
|-
| '''3'''
| Adds a suffix to the links to the current month, the previous month and the next month.
|-
| '''4'''
| Adds a suffix to the days links.
|-
| '''EndNote'''
| Changes the text in the bottom bar.
|}

==Examples==
<code><nowiki>{{OctoberCalendar}}</nowiki></code>
{{OctoberCalendar}}
----
<code><nowiki>{{OctoberCalendar|year=2001|float=right|color=#ffcccc|color2=#cccccc}}</nowiki></code>
{{OctoberCalendar|year=2001|float=right|color=#ffcccc|color2=#cccccc}}
----
<code><nowiki>{{OctoberCalendar|year=2008|1=Wikipedia:Today's featured article/|1a=Wikipedia:Today's featured article/|2=Featured articles for |3= 2008|4=, 2008|EndNote=<small>An archive of [[Wikipedia:Featured articles|Wikipedia's featured articles]] that appeared on the Main Page.</small>}}</nowiki></code>
{{OctoberCalendar|year=2008|1=Wikipedia:Today's featured article/|1a=Wikipedia:Today's featured article/|2=Featured articles for |3= 2008|4=, 2008|EndNote=<small>An archive of [[Wikipedia:Featured articles|Wikipedia's featured articles]] that appeared on the Main Page.</small>{{Calendar template documentation|month=October}}

<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:October templates|{{PAGENAME}}]]
[[Category:Calendar templates|{{PAGENAME}}]]

[[ca:Plantilla:Octubre]]
[[el:Πρότυπο:ΗμερολόγιοΟκτωβρίου]]
[[es:Plantilla:Octubre]]
[[af:Sjabloon:OktoberKalender]]
[[hi:साँचा:अक्टूबर कैलिन्डर]]
[[pt:Predefinição:Calendário de outubro]]
</includeonly>