Difference between revisions of "Template:Calendar"
From Nookipedia, the Animal Crossing wiki
m (Adjusting month header & font size) |
(Adding links to previous months in calendar header, adjusting lineweights) |
||
Line 1: | Line 1: | ||
− | {| style="border: | + | {| style="border:4px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};" |
− | + | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|now - 1 months}}|{{Colorshow|000|← {{#time:F|now - 1 months}}}}]]</small>}} | |
+ | ! colspan=5 style="height:45px;"| <big><big>{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}</big></big> | ||
+ | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|now + 1 months}}|{{Colorshow|000|{{#time:F|now + 1 months}} →}}]]</small>}} | ||
+ | |- | ||
+ | | colspan=7 style="border-bottom: 2px solid #{{ColorPrimary}};" | | ||
|- | |- | ||
! width=100px | Sunday | ! width=100px | Sunday | ||
Line 10: | Line 14: | ||
! width=100px | Saturday | ! width=100px | Saturday | ||
|- | |- | ||
− | | colspan=7 style="padding:0px; border-bottom: | + | | colspan=7 style="padding:0px; border-bottom: 2px solid #{{ColorPrimary}};" | |
+ | |- | ||
+ | | | ||
|- | |- | ||
| height=100px style="padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#if: {{#ifeq: {{#time:l|{{{month|{{CURRENTMONTHNAME}}}}} 1 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 01}} | {{#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}}}}} 1 {{{year|{{LOCALYEAR}}}}}}} | Sunday | | | height=100px style="padding:0px; border:1px solid #{{ColorSecondary}}; background-color:#{{#if: {{#ifeq: {{#time:l|{{{month|{{CURRENTMONTHNAME}}}}} 1 {{{year|{{LOCALYEAR}}}}}}} | Sunday | 01}} | {{#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}}}}} 1 {{{year|{{LOCALYEAR}}}}}}} | Sunday | | ||
Line 1,765: | Line 1,771: | ||
| month = (calendar month to be generated - optional) | | month = (calendar month to be generated - optional) | ||
| year = (corresponding year calendar month is to be generated for - optional) | | year = (corresponding year calendar month is to be generated for - optional) | ||
+ | | link = (true or false, default is true - optional) | ||
| p23 ... p31 = (value to appear in date of previous month - optional) | | p23 ... p31 = (value to appear in date of previous month - optional) | ||
| 01 ... 31 = (value to appear in this month's date - optional) | | 01 ... 31 = (value to appear in this month's date - optional) | ||
Line 1,773: | Line 1,780: | ||
*If no month is entered, the template will generate a calendar for the current month. | *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. | *If no year is entered, the template will generate a calendar for the current year. | ||
+ | *To remove the previous/next calendar links, set link = false | ||
*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 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 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).</noinclude> | *Number parameters prefixed with a "n" (next) are used to enter content into a date cell from a month that is forthcoming (darkened date).</noinclude> |
Revision as of 02:06, December 26, 2016
← October | November 2024 | December → | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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) | link = (true or false, default is true - 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.
- To remove the previous/next calendar links, set link = false
- 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).