Difference between revisions of "Template:Calendar"
From Nookipedia, the Animal Crossing wiki
|
|
Line 1,473: |
Line 1,473: |
| {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} 29 | | {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} 29 |
| {{!)}}}} | | {{!)}}}} |
− | | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 29 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | 30}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | | + | | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | 30}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 30 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | |
| {{(!}} 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;" {{!}} {{{30|}}} | | {{!}} style{{=}}"height: 78px; line-height: 15px; padding: 0 0 0 3px; vertical-align:top;" {{!}} {{{30|}}} |
Line 1,479: |
Line 1,479: |
| {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} 30 | | {{!}} style{{=}}"padding:2px 5px 0 0; line-height: 12px; vertical-align: bottom; text-align: right;" {{!}} 30 |
| {{!)}}}} | | {{!)}}}} |
− | | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 29 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | 31}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | | + | | {{#ifeq: {{#expr: {{#time:t|{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}}} >= {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | 31}}}} | 1 | {{#ifeq: {{#time:l|{{{month|{{LOCALMONTHNAME}}}}} 31 {{{year|{{LOCALYEAR}}}}}}} | Wednesday | |
| {{(!}} 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;" {{!}} {{{31|}}} | | {{!}} style{{=}}"height: 78px; line-height: 15px; padding: 0 0 0 3px; vertical-align:top;" {{!}} {{{31|}}} |
Revision as of 22:29, August 18, 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).