Difference between revisions of "Template:Calendar"
From Nookipedia, the Animal Crossing wiki
|
|
Line 1,665: |
Line 1,665: |
| {{!-}} | | {{!-}} |
| {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} {{Colorshow|{{ColorSecondary}}|06}} | | {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} {{Colorshow|{{ColorSecondary}}|06}} |
− | {{!)}}}}}}}}}}}}}}}}}}}}}} | + | {{!)}}}}}}}}}}}}}}}}}}}} |
− | {{#ifeq: 1 | 1 | {{#if: {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 30 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 31}}}} |
| + | {{#if: {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 30 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 31}}}} | |
| {{!-}} | | {{!-}} |
| {{!}} height{{=}}100px style{{=}}"padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#switch: {{Season}} | Spring = f6fbf1 | Summer = f2fbfb | Fall = fdfcf9 | Winter = f1f4fd}}; {{roundy|5px}};" {{!}} {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Sunday | | | {{!}} height{{=}}100px style{{=}}"padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#switch: {{Season}} | Spring = f6fbf1 | Summer = f2fbfb | Fall = fdfcf9 | Winter = f1f4fd}}; {{roundy|5px}};" {{!}} {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Sunday | |
Revision as of 11:45, August 19, 2015
April 2024
|
Sunday
|
Monday
|
Tuesday
|
Wednesday
|
Thursday
|
Friday
|
Saturday
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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).