Difference between revisions of "Template:Calendar"

From Nookipedia, the Animal Crossing wiki
(Some months having extra days really fixed now.)
(Testing fix.)
Line 1,503: Line 1,503:
 
{{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} {{Colorshow|{{ColorSecondary}}|03}}
 
{{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} {{Colorshow|{{ColorSecondary}}|03}}
 
{{!)}}}}}}}}}}}}}}}}}}}}
 
{{!)}}}}}}}}}}}}}}}}}}}}
| height=100px style="padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#if: {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 27 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 27 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 28 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 28 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 29 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 29 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 30 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 31}}}}}}}}}} | {{#switch: {{Season}} | Spring = f6fbf1 | Summer = f2fbfb | Fall = fdfcf9 | Winter = f1f4fd}} | {{#switch: {{Season}} | Spring = d0eab6 | Summer = b8e9e9 | Fall = dcbf81 | Winter = cad4f4}}}}; {{roundy|5px}};" | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 27 {{{year|{{LOCALYEAR}}}}}}} | Thursday |  
+
| height=100px style="padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#if: {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 27 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 27 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 28 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 28 | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 29 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 29}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 29 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 29}} | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 30}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 30}} | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 31}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Thursday | 31}}}}}}}}}}}} | {{#switch: {{Season}} | Spring = f6fbf1 | Summer = f2fbfb | Fall = fdfcf9 | Winter = f1f4fd}} | {{#switch: {{Season}} | Spring = d0eab6 | Summer = b8e9e9 | Fall = dcbf81 | Winter = cad4f4}}}}; {{roundy|5px}};" | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 27 {{{year|{{LOCALYEAR}}}}}}} | Thursday |  
 
{{(!}} width{{=}}100% cellspacing=0 style{{=}}"background-color:transparent;"
 
{{(!}} width{{=}}100% cellspacing=0 style{{=}}"background-color:transparent;"
 
{{!}} style{{=}}"height: 78px; line-height: 15px; padding: 0 0 0 3px; vertical-align:top;" {{!}} {{{27|}}}
 
{{!}} style{{=}}"height: 78px; line-height: 15px; padding: 0 0 0 3px; vertical-align:top;" {{!}} {{{27|}}}

Revision as of 10:50, August 19, 2015

April 2024
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
31
01
02
03
04
05
06
{{{07}}}
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
01
02
03
04


Syntax

{{Calendar
| month = (calendar month to be generated - optional)
| year = (corresponding year calendar month is to be generated for - optional)
| p23 ... p31 = (value to appear in date of previous month - optional)
| 01 ... 31 =  (value to appear in this month's date - optional)
| n01 ... n06 = (value to appear in date of following month - optional)
}}

Notes

  • If no month is entered, the template will generate a calendar for the current month.
  • If no year is entered, the template will generate a calendar for the current year.
  • Number parameters prefixed with a "p" (previous) are used to enter content into a date cell from a month that has passed (darkened date).
  • Number parameters are used to enter content into a date cell for the current month (e.g. entering a value for "01", like "Bob's birthday", will cause that value to appear in the cell associated with the first of the month).
  • Number parameters prefixed with a "n" (next) are used to enter content into a date cell from a month that is forthcoming (darkened date).