Difference between revisions of "Template:Calendar"
From Nookipedia, the Animal Crossing wiki
|
|
Line 1: |
Line 1: |
| {| style="border:4px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};" | | {| style="border:4px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};" |
− | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|{{{month|now}}} + 11 months}}|{{Colorshow|000|← {{#time:F|{{{month|now}}} + 11 months}}}}]]</small>}} | + | | style="text-align:center; height:55px;"| {{#ifeq: {{{link|}}}|false||[[{{#time:F|{{{month|now}}} + 11 months}}|{{Colorshow|000|← {{#time:F|{{{month|now}}} + 11 months}}}}]]}} |
− | ! colspan=5 style="height:45px;"| <big><big>{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}</big></big> | + | ! colspan=5 style="height:55px; padding:5px 0 0 0;"| <big><big><big>{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}</big></big></big> |
− | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|{{{month|now}}} + 1 months}}|{{Colorshow|000|{{#time:F|{{{month|now}}} + 1 months}} →}}]]</small>}} | + | | style="text-align:center; height:55px;"| {{#ifeq: {{{link|}}}|false||[[{{#time:F|{{{month|now}}} + 1 months}}|{{Colorshow|000|{{#time:F|{{{month|now}}} + 1 months}} →}}]]}} |
| |- | | |- |
| | colspan=7 style="border-bottom: 2px solid #{{ColorPrimary}};" | | | | colspan=7 style="border-bottom: 2px solid #{{ColorPrimary}};" | |
| |- | | |- |
− | ! width=125px | Sunday | + | ! width=125px | <big>Sunday</big> |
− | ! width=125px | Monday | + | ! width=125px | <big>Monday</big> |
− | ! width=125px | Tuesday | + | ! width=125px | <big>Tuesday</big> |
− | ! width=125px | Wednesday | + | ! width=125px | <big>Wednesday</big> |
− | ! width=125px | Thursday | + | ! width=125px | <big>Thursday</big> |
− | ! width=125px | Friday | + | ! width=125px | <big>Friday</big> |
− | ! width=125px | Saturday | + | ! width=125px | <big>Saturday</big> |
| |- | | |- |
| | colspan=7 style="padding:0px; border-bottom: 2px solid #{{ColorPrimary}};" | | | | colspan=7 style="padding:0px; border-bottom: 2px solid #{{ColorPrimary}};" | |
Revision as of 17:58, December 27, 2016
← March
|
April 2024
|
May →
|
|
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).